温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

CentOS中如何安装subversion

发布时间:2021-07-13 10:35:52 来源:亿速云 阅读:278 作者:Leah 栏目:互联网科技

本篇文章给大家分享的是有关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,小编相信有部分知识点可能是我们日常工作会见到或用到的。希望你能通过这篇文章学到更多知识。更多详情敬请关注亿速云行业资讯频道。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI