RedHat Linux source package installation process

Source: Internet
Author: User

RedHat Linux source package installation process

The installation package format provided by RedHat Linux is. rpm. If you need to customize the installation directory and related functions, you need to use the source package for installation. The following steps are required to use the source package for installation:

1. Download the source code installation package from the official network, which is in the format of .tar.gz,.tgz,.tar.bz2. decompress the package after downloading the package and enter the decompressed directory.

2. Install and develop the corresponding toolkit, such as the "development Tools" group, gcc, and gcc-c ++.

3. Run the./configure -- help Command to view usage instructions.

4. make & make install

5. Set Environment Variables

You can add PATH = $ PATH:/usr/local/apache/bin before the export PATH in/etc/profile. Here, apache is used as an example.

6. Load the corresponding Library File

Cd/etc/ld. so. conf. d/create a. conf file, write a line of the directory of the library file in the. conf file, and run

Ldconfig-v displays the loaded Library File

7. header file path

The default search path is/usr/include. Use the soft link command,

Ln-s/usr/local/apache/include/usr/include/apache

8. Modify the path of the man file. Add a line to MANDATORY_MANPATH in vim/etc/man_db.conf.

MANDATORY_MANPATH/path/to/man

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.