How to install SVN client in CentOS 5.5 64bit.

本文介绍如何将CentOS 5.5上的SVN客户端从默认版本1.4.2升级到1.5或更高版本。具体步骤包括安装apr、apr-util、sqlite、neon和subversion等必要组件。

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

The default SVN's versoin of CentOS 5.5 is 1.4.2 While trying to access SVN Server which version is higher than 1.5 (including 1.5). So we should update the SVN Client to version 1.5 or higher.

At first we should get the necessary files we need.:

- apr-1.3.7.tar.gz
- apr-util-1.3.8.tar.gz
- sqlite-amalgamation-3.6.16.tar.gz
- neon-0.28.4.tar.gz
- subversion-1.6.3.tar.bz2

After all need files are ready. We begin to install they step by step.:

1. install apr
tar zxvf apr-1.3.7.tar.gz
cd apr-1.3.7
./configure -prefix=/usr/local/apr
make
make install
cat /etc/ld.so.conf
echo /usr/local/apr/lib >> /etc/ld.so.conf


2. install apr-util
tar zxvf apr-util-1.3.8.tar.gz
cd apr-util-.1.3.8
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/
make
make install
echo /usr/local/apr-util/lib >> /etc/ld.so.conf
ldconfig -v


3. install sqlite
tar zxvf sqlite-amalgamation-3.6.16.tar.gz
cd sqlite-3.6.16/
./configure --prefix=/usr/local/sqlite
make
make install


4. install neon
Actually you can ingore this setup if you do not need to support http. But if you need to support https, please remember to add '--with-ssl'

tar zxvf neon-0.28.4.tar.gz
cd neon-0.28.4
./configure --prefix=/usr/local/neon --enable-shared --with-ssl
make
make install


5. install subversion
tar -jxvf subversion-1.6.3.tar.bz2
cd subversion-1.6.3
./configure --prefix=/usr/local/svn --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-sqlite=/usr/local/sqlite --with-neon=/usr/local/neon
make
make install


After above 4 steps we can do a verification to verify whether SVN client is installed successful.

/usr/local/svn/bin/svn --version


After that add the svn path into user's environment path. (Edit .bash_profile)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值