Linux Source package Management Source Package installation

Source: Internet
Author: User

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

Related Article

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.