mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-28 14:56:35 +00:00
Fix Install. from source.
This commit is contained in:
parent
8ba1b0b06a
commit
b8a0d14d9a
7 changed files with 24 additions and 54 deletions
|
@ -28,6 +28,8 @@ Topics:
|
|||
File: creating-and-using-a-live-installation-image
|
||||
- Name: Creating Windows virtual machines using virtIO drivers
|
||||
File: creating-windows-virtual-machines-using-virtio-drivers
|
||||
- Name: Installing Software from Source
|
||||
File: installing-software-from-source
|
||||
- Name: (FIX ME!) Third party repositories
|
||||
File: 3rd-party-repos
|
||||
- Name: (FIX ME!) Anaconda
|
||||
|
@ -76,8 +78,6 @@ Topics:
|
|||
File: openh264
|
||||
- Name: (FIX ME!) PackageKit Items Not Found
|
||||
File: packagekit-not-found
|
||||
- Name: (FIX ME!) Package management system
|
||||
File: package-management
|
||||
- Name: (FIX ME!) PostgreSQL
|
||||
File: postgresql
|
||||
- Name: (FIX ME!) How to use qemu
|
||||
|
|
|
@ -1,33 +1,13 @@
|
|||
:md: ./modules
|
||||
|
||||
= Installing Software from Source
|
||||
[[installing-software-from-source]]
|
||||
= Installing Software from Source
|
||||
|
||||
The following section contains guidelines and best practices for installing software form source on Fedora.
|
||||
The instructions below are not prescriptive, but following them minimizes the risk of errors occurring during installation.
|
||||
|
||||
// include package management concept
|
||||
include::{md}/concept_fedora-package-management.adoc[leveloffset=2]
|
||||
include::modules/con_fedora-package-management.adoc[leveloffset=+1]
|
||||
|
||||
//proc: setting up a development and compilation environment
|
||||
// - this includes installing missing dev packages using DNF
|
||||
include::{md}/proc_setting-up-your-local-dev-and-compilation-environment.adoc[leveloffset=2]
|
||||
include::modules/proc_setting-up-your-local-dev-and-compilation-environment.adoc[leveloffset=+1]
|
||||
|
||||
// proc: downloading the application source code
|
||||
include::{md}/proc_downloading-source-code.adoc[leveloffset=2]
|
||||
include::modules/proc_downloading-source-code.adoc[leveloffset=+1]
|
||||
|
||||
include::{md}/proc_compiling_your_application_from_source.adoc[leveloffset=2]
|
||||
|
||||
// proc: installing the software using make
|
||||
|
||||
|
||||
////
|
||||
Fedora defaualt install is to /usr/local/
|
||||
|
||||
When make complains about missing devel packages, it is preferable to use dnf to install those packages as opposed to (the way make recommends) compiling those packages.
|
||||
|
||||
|
||||
for troubleshooting red the debug output
|
||||
|
||||
Development Tools dnf group
|
||||
////
|
||||
include::modules/proc_compiling_your_application_from_source.adoc[leveloffset=+1]
|
||||
|
|
4
en-US/modules/con_fedora-package-management.adoc
Normal file
4
en-US/modules/con_fedora-package-management.adoc
Normal file
|
@ -0,0 +1,4 @@
|
|||
[[package-management-system]]
|
||||
= Package management system
|
||||
|
||||
Fedora is a distribution that uses a package management system. This system is based on the http://rpm.org[RPM Package Manager], with several higher-level tools built on top of it, most notably https://www.freedesktop.org/software/PackageKit/[PackageKit] (the default package management tool) and the link:Yum[yum] (command line tool). As of Fedora 22, yum has been replaced by link:Dnf[dnf]. The Gnome Package Manager is a graphical package manager.
|
|
@ -1,12 +0,0 @@
|
|||
[[package-management-system]]
|
||||
= Package management system
|
||||
|
||||
Fedora is a distribution that uses a package management system. This
|
||||
system is based on the http://rpm.org[RPM Package Manager], with
|
||||
several higher-level tools built on top of it, most notably
|
||||
https://www.freedesktop.org/software/PackageKit/[PackageKit] (the default
|
||||
GUI package management tool) and the link:Yum[yum] (command line tool).
|
||||
As of Fedora 22, yum has
|
||||
been replaced by link:Dnf[ dnf].
|
||||
The Gnome Package Manager is another
|
||||
GUI package manager.
|
|
@ -1,18 +1,18 @@
|
|||
[[compiling-your-application-from-source]]
|
||||
= Compiling Your Application
|
||||
|
||||
// Note: It is preferable to use DNF to using source install. DNF can track what packages you have installed on your system. It facilitates updates and makes it easier to completely remove your files from your system
|
||||
NOTE: It is preferable to use DNF to using source installattion. DNF can track what packages you have installed on your system. It facilitates updates and makes it easier to completely remove your files from your system
|
||||
|
||||
. Navigate to the directory containing your source:
|
||||
+
|
||||
[bash,subs="attributes+"]
|
||||
[subs="+quotes"]
|
||||
----
|
||||
cd <your_source_dir>
|
||||
cd _<your_source_dir>_
|
||||
----
|
||||
+
|
||||
. Run the following command to compile and install your application:
|
||||
+
|
||||
[bash,subs="attributes+"]
|
||||
[subs="+quotes"]
|
||||
----
|
||||
./configure && make && make install
|
||||
----
|
||||
|
|
|
@ -2,23 +2,21 @@
|
|||
|
||||
. Navigate to the directory where you want to save the source:
|
||||
+
|
||||
[bash,subs="attributes+"]
|
||||
[subs="+quotes"]
|
||||
----
|
||||
cd <directory_name>
|
||||
cd _<directory_name>_
|
||||
----
|
||||
+
|
||||
. Download the TAR file containing the source code you want to install from:
|
||||
+
|
||||
[bash,subs="attributes+"]
|
||||
[subs="+quotes"]
|
||||
----
|
||||
wget <source_location_URL>
|
||||
wget _<source_location_URL>_
|
||||
----
|
||||
+
|
||||
. Extract the tarball file contents to the current working directory:
|
||||
+
|
||||
[bash,subs="attributes+"]
|
||||
[subs="+quotes"]
|
||||
----
|
||||
tar -xf <source_tar_filename>
|
||||
tar -xf _<source_tar_filename>_
|
||||
----
|
||||
|
||||
You can perform the same actions using the GUI.
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
= Setting up a Development and Compiling Environment
|
||||
|
||||
Install packages form the _C Development Tools and Libraries_ group:
|
||||
+
|
||||
[bash,subs="attributes+"]
|
||||
|
||||
[subs="+quotes"]
|
||||
----
|
||||
sudo dnf group install @c-development
|
||||
# dnf group install @c-development
|
||||
----
|
||||
|
|
Loading…
Reference in a new issue