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