General steps for installing software from source code on Linux

Source: Internet
Author: User
General steps for installing software from the source code on Linux-Linux general technology-Linux technology and application information. The following is a detailed description. 1. Most of the software on the Linux platform is free of charge. You can download it from the Internet. The downloaded software is generally packaged and compressed, therefore, before installation, You need to copy it to a temporary directory and decompress the package:

Gzip-d .tar.gz (or uncompress. tar. Z)
Tar xvf. tar
Or
Tar xzvf .tar.gz
Note:

The gzip-d command is used for decompression, And the tar xvf command is used for unpacking. The tar xzvf command is used to decompress and decompress the package, and a directory is created under the directory.

2. Go to the directory generated in Step 1:
Cd

3. Most of the software on the Linux platform comes with the source program and needs to be compiled before installation. The general steps for compiling are as follows:

A. Configuration:
./Configure -- prefix = -- localstatedir =
Note: Use the installation directory instead of the data directory.

B. Compile:
Make

4. installation:
Make install

5. Configuration:

A. After installation, the following sub-directories are generally created in the directory:
Executable File directory: bin
Header file directory: include
Library file directory: lib
Help Directory: man

B. Set the environment variables in the/etc/profile file:
PATH = $ PATH:/bin
CPLUS_INCLUDE_PATH = $ CPLUS_INCLUDE_PATH:/include
LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/lib
LIBRARY_PATH = $ LIBRARY_PATH:/lib
MANPATH = $ MANPATH:/man

Export PATH CPLUS_INCLUDE_PATH LD_LIBRARY_PATH LIBRARY_PATH MANPATH

Note: Use the installation directory instead.

6. log out and log on again. The installation is complete.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.