Linux compilation cannot find the APR problem solution

Source: Internet
Author: User

Linux uses Apr when compiling in many places
If you can't find the APR, you'll get an error.

Configure:WARNING:APR not found
The Apache Portable Runtime (APR) library cannot be found.
Please install APR on this system and configure Subversion
With the APPROPRIATE–WITH-APR option.

Your probably need to does something similar with the Apache
Portable Runtime Utility (aprutil) library and then configure
Subversion with both the–with-apr and–with-apr-util options.

Apr is a more disgusting thing, because with the APR installed directly with yum install APR, it is often not found when other things need APR environment, although it has been installed.

In this case, we can only specify their position by the following two parameters, but the first thing to do is to install APR and Apr-until

The code is as follows Copy Code
--with-apr
--with-apr-util

Apr and Apr-util website Download address:

http://apr.apache.org/download.cgi

The order of installation is to install the APR and then install Apr-util, because the Apr-util requires an APR environment
First install Apr specify install to/USR/LOCAL/APR

The code is as follows Copy Code

wget http://mirrors.cnnic.cn/apache/apr/apr-1.4.8.tar.gz
Tar zxvf apr-1.4.8.tar.gz
CD apr-1.4.8
./configure--PREFIX=/USR/LOCAL/APR
Make & make Install

Then install Apr-util to specify the installation to/usr/local/apr-util

The code is as follows Copy Code

wget http://mirrors.cnnic.cn/apache/apr/apr-util-1.5.2.tar.gz
Tar zxvf apr-util-1.5.2.tar.gz
CD apr-util-1.5.2
./configure--prefix=/usr/local/apr-util--WITH-APR=/USR/LOCAL/APR
Make & make Install

We can install other programs through the steps above, such as specifying APR and Apr-util when you compile and install SVN.
Specify the SVN location/usr/local/subversion also specify the APR and Apr-util locations, the following code

  code is as follows copy code
wget http:// mirror.esocc.com/apache/subversion/subversion-1.8.3.tar.gz
CD subversion-1.8.3.tar.gz
./configure--prefix =/usr/local/subversion--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util
Make & make install

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.