svn 安装

linux下编译安装svn

下载源代码

wget http://subversion.tigris.org/downloads/subversion-1.6.9.tar.gz

并解压进入

./configure

.................

configure: error: Subversion requires SQLite
wget http://www.sqlite.org/sqlite-amalgamation-3.6.22.tar.gz
tar -zxvf sqlite-amalgamation-3.6.22.tar.gz
cd subversion-1.6.9
mkdir sqlite-amalgamation
cp ../sqlite-3.6.22/sqlite3.c ./sqlite-amalgamation/
./configure

make
/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
yum install expat
find / -name libexpat*
找到一个新的so
cp /lib/libexpat.so.0.5.0 /usr/lib/libexpat.so
make
make install

svn checkout https://svn....
svn: Unrecognized URL scheme for 'https://svn......'

svn --version
svn, version 1.6.9 (r901367)
   compiled Feb 23 2010, 05:14:41

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_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_dev模块

 

在configure时,发现下边信息:
configure: checking neon library
checking neon library version... cat: /opt/download/subversion-1.6.9/neon/.version: No such file or directory

You have a neon/ subdir containing version ,
but Subversion needs neon 0.29.0.

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.29.0 on this system

or

get neon 0.29.0 from:
    http://www.webdav.org/neon/neon-0.29.0.tar.gz
unpack the archive using tar/gunzip and rename the resulting
directory from ./neon-0.29.0/
安照这个提示进行操作后

安装成功

 

checkout 代码:
svn checkout https://svn01..............
svn: SSL is not supported

./configure  --with-ssl
。。。
checking for library containing RSA_new... not found
configure: error: could not find library containing RSA_new
configure failed for neon

yum install openssl-devel

./configure --with-ssl   ok
make

/opt/download/subversion-1.6.9/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `ne__ntlm_destroy_context'
/opt/download/subversion-1.6.9/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `ne__ntlm_create_context'
/opt/download/subversion-1.6.9/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `ne__ntlm_authenticate'
/opt/download/subversion-1.6.9/subversion/libsvn_ra_neon/.libs/libsvn_ra_neon-1.so: undefined reference to `ne__ntlm_getRequestToken'
collect2: ld returned 1 exit status
make: *** [subversion/svn/svn] Error 1

 

这个信息很奇怪,查看了源代码,也没发现怎么办。一怒之下,将subversion-1.6.9删掉,重新做了一遍,发现这次就没有这样的错误了。

 

./configure --with-ssl

make

make install

 

运行svn --version,显示

svn, version 1.6.9 (r901367)
   compiled Feb 23 2010, 16:40:35

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
  - handles 'https' 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_neon,现在https也支持了。

 

 

svn checkout 后, svn 会记住用户的信息,如果要更改,可以删去

当前 os 用户 / .subversion/auth/svn.simple 里边的信息,也可以更改里边的文件

或者
svn --username abcd info svn://182.160.10.23/vcxz
将改成用户 abcd

 

Windows 下是存放在

Documents and Settings\user\Application Data\Subversion\auth\svn.simple

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值