Redhat provides the format of the installation package in. rpm format, if you need to customize the installation directory and the corresponding features, you need to use the source package for installation, the use of source package installation requires the following several procedures
First download the source installation package from the official website, the name is generally. tar.gz,.tgz,.tar.bz2 format, after the download is complete, unzip, into the extracted directory
Install and develop the appropriate toolkit, such as the "Development tools" group, gcc,gcc-c++
Use the./configure--help command to view usage usage
Make && make install
Setting environment variables
You can add path= $PATH in/etc/profile before the export PATH line:/usr/local/apache/bin Here, for example, Apache
Load the appropriate library file
cd/etc/ld.so.conf.d/create a new. conf file, write a row of the executable's directory in the. conf file, run
LDCONFIG-V display of Loaded library files
Header file path
The default search path is/usr/include, using the soft link command,
Ln-s/usr/local/apache/include/usr/include/apache
To modify the path of the man file, add a row to Mandatory_manpath in vim/etc/man_db.conf
Mandatory_manpath/path/to/man
Linux Source Package installation process