The difference between the source package and the RPM package
1. Different mounting positions
RPM Package Default installation path |
/etc/ |
Configuration file Installation Yanzhou |
/usr/bin/ |
Executable Command installation directory |
/usr/lib/ |
function library where the program is stored |
/usr/share/doc/ |
Basic software User manual save location |
/usr/share/man/ |
Help File Save location |
Note: The package installation location can be viewed through the Rpm-q-l package-name command
Source Package Installation Location: generally/usr/local/software name/
RPM Package Installed services can be managed through the System Service Management Command (service) , such as the RPM package installed Apache boot mode is: (1)/etc/rc.d/init.d/httpd start; (2) Service HTTP Start
Because the source package installation service cannot be managed by the Service Management command, the service can only be managed with an absolute path, such as:/usr/local/apache2/bin/apachectl start
Second, the source package installation
1. Install the C language editor
2. Download the source package: http://mirror.bit.edu.cn
3. Unzip the downloaded source package TAR-ZXVF Package-name
4. Go to unzip directory (there are two files in the compressed directory. Install Readme, installation instructions,Readme for software description must see )
5../configure software Configuration and inspection
(1) Define the required function options
(2) Check whether the system environment meets the installation requirements
(3) Write the defined function options and the information of the inspection system environment to the makefile file for subsequent edits
All configurations can be viewed through the ./configure--help
For example:./configure--prefix=/usr/local/apache2 define Package installation directory
6. make compile ( make clean empty compilation file)
7. make install compile
Installation Considerations
(1) Source code save location:/USR/LOCAL/SRC
(2) Software Installation location:/usr/local
(3) How to determine the installation process error: The installation process stopped, and error, warning or no hint
Linux Source package Management Source Package installation