Source code compilation installation httpd and its common errors

Source: Internet
Author: User

first, The overall steps of compiling and installing

1, Download the source code on the official website, and unzip

2. Switch to its directory

3, implementation./configure

4. Compiling  


second, compile and post-installation configuration common parameters and their description

Configuration in Compile

1) Specify the installation path

--prefix=/usr/local/pacakage_name Specifying the installation path

--sysconfigdir=/etc/package_name specifying the configuration file storage path

2) Specify the enable/disable feature

--enbale-feature

--disable-feature

3) Specify the functions, programs, or files that you depend on

--with-funciton

--without-function

Different programs have different configure scripting features, to get help,./configure--help|less

‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥

Post-Installation configuration:

1. The PATH environment variable that is imported into the binary directory

Editing a configuration file/etc/profile.d/name.sh

2. Import file path

edit/etc/ld.so.conf.d/name.conf Add a new library to a file to have the system regenerate the cache

Ldconfig [-v]

3. Import the header file and create a soft connection

Ln-sv

4. Import the Help manual

edit/etc/man.conf|man_db.conf file, Add Manpath to

5.configure parameters

‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥


Demo (this article uses httpd-2.2.27.tar.gz,centos6.x)

‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥

1) before installation, it is best to prevent errors by installing the development Kit and its Pcre/pcre-devel/zlib/zlib-devel installation

Yum-y Groupinstall "development tools"

Yum-y Install pcre pcre-devel zlib zlib-devel

2) Decompression and Installation

Tar XF httpd-2.2.27.tar.gz

CD httpd-2.2.27

./configure--prefix=/usr/local/httpd2.2.27--sysconfdir=/etc/httpd/

Make && make install

‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥

Demonstrate:

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M01/86/60/wKiom1e9RWuxDT86AABQAspKHXE132.png "title=" 10[e7j _d5hal6q ' md8imfm8.png "alt=" wkiom1e9rwuxdt86aabqaspkhxe132.png "/>

In the case of an appeal step without error, the following is Performed:

650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M01/86/60/wKiom1e9RfDyBnteAAAhxCj8rr8186.png "title="]p4j@c ]x~wgm02 ' at]5iu5x.png "alt=" wkiom1e9rfdybnteaaahxcj8rr8186.png "/>

Soft Connect for this reason because the version number reserved before compiling is convenient for later upgrade

650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M02/86/5F/wKioL1e9R2KTweHNAAAYStTcKe0520.png "title=" J1qqxt2]3r{$) D ' RD37} ') 6.png "alt=" wkiol1e9r2ktwehnaaaysttcke0520.png "/>



‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥‥


III. testing and Importing help, library files, header files, adding to environment variables


1) Start the service test if the installation is successful

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/86/60/wKiom1e9SP_wlPylAABwKKw0szs911.png "style=" float: none; "title=" w]q0xrxoo92 ' 3%bc) cd%k4l.png "alt=" wkiom1e9sp_wlpylaabwkkw0szs911.png "/>

650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M02/86/5F/wKioL1e9SP6i4nVVAABLd0I_4js897.png "title=" [s8c ( Lzmdge9c4$79kddmg1.png "style=" float:none; "alt=" wkiol1e9sp6i4nvvaabld0i_4js897.png "/>

2) Add to environment variable

PATH: $PATH =/usr/local/httpd/bin/

Export PATH


3) Header File Import

[email protected] local]# lsbin etc Games httpd httpd2.2.27 include Lib lib64 libexec Sbin share Src[[email PR otected] local]# pwd/usr/local[[email protected] local]# ln-s/usr/local/httpd/include//usr/include/httpd/[[email protected] local]# ll/usr/include/httpd/total Dosage 0lrwxrwxrwx. 1 root root 25 August 05:22 include,/usr/local/httpd/include/[[email protected] local]#


4) Import Library file

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/86/60/wKioL1e9TamQcjgkAABJ3LpZnY8598.png "title=" 9cyu2] P%z1ejx6ca6{ss ' ka.png "alt=" wkiol1e9tamqcjgkaabj3lpzny8598.png "/>



5) Import Man Handbook

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/86/61/wKiom1e9TlDRRmbTAAAfWklcgNk643.png "title=" 03fw}j }2q~]b73v%dcbvcqo.png "alt=" wkiom1e9tldrrmbtaaafwklcgnk643.png "/>



because of the time of the small series of the previous mistakes are not summarized in the write again can refer To: http://purify.blog.51cto.com/10572011/1789292 address to resolve an appeal error


This article is from the "small ears" blog, please be sure to keep this source http://purify.blog.51cto.com/10572011/1842039

Source code compilation installation httpd and its common errors

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.