configure: error: no suitable APR found
1.下载所需软件包: wget http://archive.apache.org/dist/apr/apr-1.5.2.tar.gz wget http://archive.apache.org/dist/apr/apr-util-1.5.4.tar.gz wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.39/pcre-8.39.tar.gz
2.
yum remove apr-util-devel apr apr-util-mysql apr-docs apr-devel apr-util apr-util-docs
3.具体步骤如下: a:解决apr not found问题>>>>>> [root@xt test]# tar -zxf apr-1.5.2.tar.gz [root@xt test]# cd apr-1.5.2 # ./configure --prefix=/usr/local/apr # make && make install b:解决APR-util not found问题>>>> [root@xt test]# tar -zxf apr-util-1.5.4.tar.gz [root@xt test]# cd apr-util-1.5.4 # ./configure --prefix=/usr/local/apr-util -with- apr=/usr/local/apr/bin/apr-1-config # make && make install
4.最后编译svn时加上: --with-apr=/usr/local/apr \ --with-apr-util=/usr/local/apr-util/
configure: error: Subversion requires SQLite
5.
wget http://www.sqlite.org/2016/sqlite-amalgamation-3140200.zip
mv sqlite-amalgamation-3071501 subversion-1.9.4/sqlite-amalgamation
configure: error: subversion requires zlib
yum -y install zlib-devel
之后没再报错
ok
============================================ 后续: 拉取svn工程报错:svn: E170000: Unrecognized URL scheme for ‘https。。。’ svn --version 可以看到 * ra_svn : Module for accessing a repository using the svn network protocol. - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme 说明只支持svn和file两种协议 1.8版本之前的需要加neon,1.8版本之后弃用neon而改使用serf yum -y install expat-devel https://archive.apache.org/dist/serf/serf-1.3.9.tar.bz2 http://nchc.dl.sourceforge.net/project/scons/scons/2.4.1/scons-2.4.1.tar.gz 安装scons python setup.py build python setup.py install 安装serf scons APR=/usr/local/apr APU=/usr/local/apr-util LIBDIR=/usr/lib64 PREFIX=/usr/ scons check scons install svn --version 可以看到 * ra_svn : Module for accessing a repository using the svn network protocol. - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme * ra_serf : Module for accessing a repository via WebDAV protocol using serf. - using serf 1.3.9 (compiled with 1.3.9) - handles 'http' scheme - handles 'https' scheme