SUSE 安装 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

二.安装
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 --without-berkeley-db --prefix=/usr/local/subversion

make

make install

 

#错误提示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

wget  http://zlib.net/zlib-1.2.5.tar.gz
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

完成后屏幕会提示

You don't seem to have Berkeley DB version 4.0.14 or newer
installed and linked to APR-UTIL.  We have created Makefiles which
will build without the Berkeley DB back-end; your repositories will
use FSFS as the default back-end.  You can find the latest version of
Berkeley DB here:
http://www.oracle.com/technology/software/products/berkeley-db/index.html

 make && make install

 

ok,svn安装完成。

建立版本库
svnadmin create /work/svndata

进入/tmp目录下,然后进行checkout操作
svn co svn://192.168.1.111/svntest

查看文件log的历史记录
[root@CentOS_Test_Server svntest]# svn log test

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值