Merge branch 'installing-software-from-source' into 'master'
Create assembly on Installing software from source See merge request !12
This commit is contained in:
commit
3d06297b01
5 changed files with 95 additions and 0 deletions
33
en-US/installing-software-from-source.adoc
Normal file
33
en-US/installing-software-from-source.adoc
Normal file
|
@ -0,0 +1,33 @@
|
|||
:md: ./modules
|
||||
|
||||
= 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]
|
||||
|
||||
//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]
|
||||
|
||||
// proc: downloading the application source code
|
||||
include::{md}/proc_downloading-source-code.adoc[leveloffset=2]
|
||||
|
||||
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
|
||||
////
|
12
en-US/modules/concept_fedora-package-management.adoc
Normal file
12
en-US/modules/concept_fedora-package-management.adoc
Normal file
|
@ -0,0 +1,12 @@
|
|||
[[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.
|
|
@ -0,0 +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
|
||||
|
||||
. Navigate to the directory containing your source:
|
||||
+
|
||||
[bash,subs="attributes+"]
|
||||
----
|
||||
cd <your_source_dir>
|
||||
----
|
||||
+
|
||||
. Run the following command to compile and install your application:
|
||||
+
|
||||
[bash,subs="attributes+"]
|
||||
----
|
||||
./configure && make && make install
|
||||
----
|
24
en-US/modules/proc_downloading-source-code.adoc
Normal file
24
en-US/modules/proc_downloading-source-code.adoc
Normal file
|
@ -0,0 +1,24 @@
|
|||
= Downloading the Source Code
|
||||
|
||||
. Navigate to the directory where you want to save the source:
|
||||
+
|
||||
[bash,subs="attributes+"]
|
||||
----
|
||||
cd <directory_name>
|
||||
----
|
||||
+
|
||||
. Download the TAR file containing the source code you want to install from:
|
||||
+
|
||||
[bash,subs="attributes+"]
|
||||
----
|
||||
wget <source_location_URL>
|
||||
----
|
||||
+
|
||||
. Extract the tarball file contents to the current working directory:
|
||||
+
|
||||
[bash,subs="attributes+"]
|
||||
----
|
||||
tar -xf <source_tar_filename>
|
||||
----
|
||||
|
||||
You can perform the same actions using the GUI.
|
|
@ -0,0 +1,8 @@
|
|||
= Setting up a Development and Compiling Environment
|
||||
|
||||
Install packages form the _C Development Tools and Libraries_ group:
|
||||
+
|
||||
[bash,subs="attributes+"]
|
||||
----
|
||||
sudo dnf group install @c-development
|
||||
----
|
Loading…
Add table
Add a link
Reference in a new issue