centOS 安装svn 客户端


centOS 安装svn 客户端

一。下载svn

下载地址:http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=260&expandFolder=74

选择subversion-1.6.1.tar.gz 和 subversion-deps-1.6.1.tar.gz

将该下载包拷贝到/usr/local/下(随意了,找个地方就好)



二。安装

cd /usr/local/

tar zxvf subversion-1.6.1.tar.gz

tar zxvf subversion-deps-1.6.1.tar.gz #会自动解压到subversion-1.6.1下
cd subversion-1.6.1



按照一些网络资料的介绍,执行如下命令即可完成安装

./configure

make

make install


接下来我把我遇到的错误提示和解决方法说明如下:

./configure

#错误提示1#

configure: error: We require OpenSSL; try --with-openssl

解决方法:

错误提示需要安装openssl,所以我就安装了一个openssl,安装方法如下:

cd /usr/local

wget http://www.openssl.org/source/openssl-1.0.0a.tar.gz

tar -zxvf openssl-1.0.0a.tar.gz

cd openssl-1.0.0a

./config
./config -t
make depend
make
make test
make install



安装之后会在/usr/local下生成一个ssl目录

设置环境变量,在/etc/profile的PATH中增加如下内容:

PATH=/usr/local/ssl/bin:/sbin/:$PATH:/usr/sbin
export PATH



ok,错误提示1解决。



重新执行./configure --with-openssl=/usr/local/ssl #这里加上--with-openssl参数

#错误提示2#

configure: error: subversion requires zlib


解决方法:

cd /usr/local

在网上 下载包  zlib-1.2.5.tar.gz 到/usr/local
tar -xvzf zlib-1.2.5.tar.gz
cd zlib-1.2.5
./configure
make
make install



cd /usr/local

ln -s zlib-1.2.5 zlib



ok,错误提示2解决。



重新执行./configure --with-openssl=/usr/local/ssl --with-zlib=/usr/local/zlib



接着执行如下命令:

make

make install



ok,svn安装完成。



三。验证

svn --version

root@localhost svn]# svn --version
svn, version 1.6.1 (r37116)
compiled Jun 17 2010, 14:59:48

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- handles 'http' scheme
- handles 'https' scheme



ok,svn配置完成。

猜你喜欢

转载自t19870923.iteye.com/blog/1756115