linux svn 安装信息,linux 下安装 subversion(svn) 客户端

svn server 为只支持http://协议的windows;

test web server 为as4,现需安装svn客户端方便同步代码

网上找了下都是讲如何安装svn server的,我只需要一个支持http协议的客户端哈,不想装apache。

安装所需软件

apr,apr-util,sqlite,neon,subversion

1.下载软件

wget http://labs.xiaonei.com/apache-mirror/apr/apr-1.3.7.tar.gz

wget http://labs.xiaonei.com/apache-mirror/apr/apr-util-1.3.8.tar.gz

wget http://www.sqlite.org/sqlite-amalgamation-3.6.16.tar.gz

wget http://www.webdav.org/neon/neon-0.28.4.tar.gz

wget http://subversion.tigris.org/downloads/subversion-1.6.3.tar.bz2

2.安装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

3.安装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

4.安装sqlite

tar zxvf sqlite-amalgamation-3.6.16.tar.gz

cd sqlite-3.6.16/

configure –prefix=/usr/local/sqlite

make

make install

5.安装neon

不需要支持http协议可以略掉安装

tar zxvf neon-0.28.4.tar.gz

cd neon-0.28.4

./configure –prefix=/usr/local/neon –enable-shared

make

make install

方式二:解压后重命名为neon,移动至subversion编译目录

但subversion编译时好像找不到neon

报错如下

configure: checking neon library

An appropriate version of neon could not be found, so libsvn_ra_neon

will not be built. If you want to build libsvn_ra_neon, please either

install neon 0.28.4 on this system

or

get neon 0.28.4 from:

http://www.webdav.org/neon/neon-0.28.4.tar.gz

unpack the archive using tar/gunzip and rename the resulting

directory from ./neon-0.28.4/ to ./neon/

no suitable neon found

6.安装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

7.检查测试

安装后应该有三个模块

/usr/local/svn/bin/svn –version

svn,版本 1.6.3 (r38063)

编译于 Jul 30 2009,14:31:41

版权所有 (C) 2000-2009 CollabNet。

Subversion 是开放源代码软件,请参阅 http://subversion.tigris.org/ 站点。

此产品包含由 CollabNet(http://www.Collab.Net/) 开发的软件。

可使用以下的版本库访问模块:

* ra_neon : 通过 WebDAV 协议使用 neon 访问版本库的模块。

– 处理“http”方案

* ra_svn : 使用 svn 网络协议访问版本库的模块。 – 使用 Cyrus SASL 认证

– 处理“svn”方案

* ra_local : 访问本地磁盘的版本库模块。

– 处理“file”方案

导出项目

cd /opt/srv/

/usr/local/svn/bin/svn export –username c1g –password 123456 http://192.168.1.9/pub37

参考:

http://www.9say.com/2009/04/subversion-compile-with-ra-dav/

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值