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
|