Redhat Linux Source installation process

Source: Internet
Author: User

The source code is the text written in a specific language, such as our common C language. However, the installation of the source code to be configured, compiled a series of complex processes, so why the trouble to install the source code? In fact, this is to allow our system to use the updated features and more features, in addition to more personalized our configuration. Take Apache for example, Red Hat officially gives us a 2.2 version, but the latest version is 2.4, so sometimes we need to install the source code.

Let's briefly talk about the prerequisite environment for source installation:

The source code needs to be compiled into an executable file, and compilation requires a corresponding compilation environment. Our compilation environment is basically available when the four software groups are installed in our system, such as Develepment Tools, develepment libraries, Legacy software, and X soft develepment.

We take the software httpd-2.4 as an example for you to explain, the following start the installation of the source code:

Step one: Disassemble the httpd and put it in the specified directory/USR/LOCAL/SRC

Switch to the location where the source is being disassembled, and enter the corresponding httpd directory in the directory, where some features of the file, such as configure (for generating makefile files), install or Readme (guide us to install). View the install file as shown below

Step two: Generate Makefile Files

But we will not be so easy to install, the installation process we will find a variety of problems, the following we Yi Yilai solve

(1) Generate httpd makefile files

And then we check if the system has an APR installed

We found the APR installed, what's going on? We should first consider the lack of libraries we need in APR, which are often placed in devel, so we install the Apr-devel package.

(2) But after the installation of Apr-devel after the first step and the following error occurred

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.