CentOS中如何安装subversion

本篇文章给大家分享的是有关CentOS中如何安装subversion,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。

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

以上就是CentOS中如何安装subversion,小编相信有部分知识点可能是我们日常工作会见到或用到的。希望你能通过这篇文章学到更多知识。更多详情敬请关注行业资讯频道。