CentOS上安装subversion出现的问题记录

Linux发行版:CentOS-5.9-x86_64-bin-DVD-1of2.iso

安装软件:

subversion-1.8.10.tar.gz

apr-1.5.1.tar.gz     apr-util-1.3.9.tar.gz    libtool-1.5.22.tar.gz

 

1. 首先,下载subversion安装包

路径:http://subversion.apache.org/download/#recommended-release

然后,解压缩、编译、安装,出现下面错误信息。

configure: Apache Portable Runtime (APR) library configuration
checking for APR... no
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.

You probably need to do something similar with the Apache
Portable Runtime Utility (APRUTIL) library and then configure
Subversion with both the --with-apr and --with-apr-util options.

configure: error: no suitable APR found

然后,下载 apr-1.5.1.tar.gz ,解压缩后,cd到安装目录,执行./configure,。

出现这个提示:cannot remove `libtoolT’: No such file or directory

解决方案:编辑 configure文件,查找 $RM "$cfgfile" 这个地方,用#注释掉,然后重新编译安装就可以了。

 

2.接着安装apr和apr-util

这是个apache的project,全名是Apache Portable Runtime 我们安装的版本是1.5.1,

下面是下载地址 http://apr.apache.org/

先装apr, 先解压,然后cd到安装目录

./configure
make
make install 

这里configure的时候不指定路径的话默认是安装到/usr/local/

然后安装apr-util 解压同apr 然后 cd到安装目录

./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/

make
make install

完成!

 

转载于:https://my.oschina.net/sanping/blog/314326

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值