When installing apache2 from the source code, the following error occurs: cannot install 'libaprutil-1. la'

Source: Internet
Author: User
When installing apache2 from the source code, the following error occurs: cannot install 'libaprutil-1. la'

How to Learn Apache ......

Use the source code downloaded on http://www.apache.org/to install apache2,
Redhat AS 4
After configure is executed, make
Make install error:

/Bin/sh/usr/local/httpd-2.2.3/srclib/apr/libtool -- mode = install/usr/bin/install-c-m 755 libaprutil-1.la/usr/local/apache2/lib
Libtool: install: error: cannot install 'libaprutil-1. la' to a directory not ending in/usr/local/apache22/lib
Make [2]: *** [install] Error 1

After tossing, find the rule:
./Configure
Make
Make install
Sequence error free

./Configure -- prefix =/app/apache
Make
Make install
An error occurs in the order...

Analysis:
The source code downloaded from the apache website should not have a low-level error that cannot be installed to a non-/usr/local directory.
It must have been neglected. It may have been due to the previous installation of./configure to directly install it to/usr/local/apache2.
The installation file is not "clean"

Solution:
Delete the source code directory and re-download the apache installation package from tar-zxvf. the above problem is solved.

Then google wrote the following sentence:

If some options do not become active after doing a configure; make install, try to do a make clean after configure.

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.