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