编译subversion 1.9.4遇到的问题

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







  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值