Compile apache2 in SuSE el 9

Source: Internet
Author: User
SuSE el 9
Httpd-2.2.4

1
Uninstall apache2 installed during system installation
Rpm-e apache2
Then, a message is displayed, indicating that many dependencies need to be uninstalled first, and then uninstalled first.
Use
Rpm-e apache2 -- nodeps

2
# Tar-zxvf httpd-2.2.4.tar.gz
# Cd httpd-2.2.4
#./Configure -- prefix =/opt/APP/Apache-2.2.2 \
-- Enable-SSL -- enable-so -- disable-Info \
-- Enable-shared = max -- enable-module = most \
-- Enable-expires -- enable-headers \
-- Enable-Rewrite
Configuration error: "cannot use an external APR with the bundled Apr-util"
Solution: Apr, which is a Portable Runtime Library of Apache, originated fromCodeMultiple
Platform, trying to isolate the specific bytes of different operating systems from the operating system-independent code. Result 1 is provided.
Basic API interfaces. For details, refer

Http://fanqiang.chinaunix.net/app/web/2006-02-21/4012.shtmlArticle.

Apache-2.2.0 provides APR and APR-utilSource code 
To install the source code APR/APR-util in the source code of the release, you must manually:
We first compile and install APR 1.2
# Tar xzvf httpd -2.2.0.tar.gz
# Cd httpd-2.2.0
# Cd srclib/APR
#./Configure -- prefix =/usr/local/APR
# Make
# Make install
Compile and install Apr-util 1.2
# CD ../APR-util
#./Configure -- prefix =/usr/local/APR-util -- With-Apr =/usr/local/APR/
# Make
# Make install

Repeat the above./configure to report the error:
" Exports . C: 1653 : Error: redefinition of 'ap _ hack_apr_version_string'
Exports . C: 1022 : Error: previous definition of 'ap _ hack_apr_version_string 'was here
Make [ 2 ]: *** [Exports . Lo] Error 1
Make [ 2 ]: Leaving directory' / USR / Local / SRC / Httpd- 2.2 . 4 / Server'
Make [ 1 ]: *** [All-recursive] Error 1
Make [ 1 ]: Leaving directory' / USR / Local / SRC / Httpd- 2.2 . 4 / Server'
Make: *** [All-recursive] Error 1 "
Solution:
Add "-- with-Permission ded-APR" to configure.

Compiled

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.