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