Linux安装svn

本文详细介绍了在Linux服务器上安装svn的过程,包括从指定地址下载svn版本1.8.19,将其复制到服务器并解压缩,以及编译安装过程中需要的apr、apr-util和serf组件的安装步骤,解决sqlite版本问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.下载svn

下载地址:http://mirrors.cnnic.cn/apache/subversion/
下载版本:subversion-1.8.19

2.复制到linux服务器,解压缩

[svn@localhost ~]$ tar -zxvf subversion-1.8.19.tar.gz
[svn@localhost ~]$ cd subversion-1.8.19

3.编译安装

[svn@localhost subversion-1.8.19]$ ./configure
...
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.下载地址
apr-1.5.2.tar:http://archive.apache.org/dist/apr/apr-1.5.2.tar.gz
2.安装依赖环境
autoconf // 安装autoconf
libtool // 安装libtool
openssl openssl-devel // 安装openssl
3.安装apr
tar xvzf apr-1.5.2.tar.gz // 解压apr-1.5.2.tar.gz
cd apr-1.5.2 // 进入apr-1.5.2目录
./configure
make
make install

apr-util同理

再次编译:

[svn@localhost subversion-1.8.19]$ ./configure --with-apr=/home/svn/apr-1.5.2 --with-apr-util=/home/svn/apr-util-1.6.1
...
An appropriate version of sqlite could not be found.  We recommmend
3.7.15.1, but require at least 3.7.12.
Please either install a newer sqlite on this system

or

get the sqlite 3.7.15.1 amalgamation from:
    http://www.sqlite.org/sqlite-amalgamation-3071501.zip
unpack the archive using unzip and rename the resulting
directory to:
/home/svn/subversion-1.8.19/sqlite-amalgamation

sqlite版本过低导致,在http://www.sqlite.org/sqlite-amalgamation-3071501.zip下载sqlite压缩包,解压缩到/home/svn/subversion-1.8.19/sqlite-amalgamation目录下,重新编译即可

checking was serf enabled... no

An appropriate version of serf could not be found, so libsvn_ra_serf
will not be built.  If you want to build libsvn_ra_serf, please
install serf 1.2.1 or newer.

需安装serf,否则使用svn获取http或https上资源时报错

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值