sudo apt-get install subversion
ubuntu svn 升級
Step 1: 下載安裝包(兩個)
wget http://subversion.tigris.org/downloads/subversion-deps-1.6.2.tar.gz
wget http://subversion.tigris.org/downloads/subversion-1.6.2.tar.gz
Step 2: 安裝,將上面的2個包拷貝到同一目錄,然後解壓縮
$ tar xvzf subversion-1.6.2.tar.gz;tar xvzf subversion-deps-1.6.2.tar.gz;
Step 3: 編譯安裝
$ cd ~/subversion-1.6.2/
$./configure
$make clean
$make
$make install
Step 4: 測試,看到是1.6.2版本,恭喜svn升級成功!
$ svn --version
svn, version 1.6.2 (r37639)
compiled Jun 11 2009, 01:07:59
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.
- with Cyrus SASL authentication
- 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
問題:
1.
如在make時,報錯 /usr/lib/libexpat.so: could not read symbols: File in wrong format 請...
如在make時,報錯
/usr/lib/libexpat.so: could not read symbols: File in wrong format
請在configure時,帶上參數--with-expat=builtin
2.
checking zlib.h usability ... no checking zlib.h presence ... no checking zlib.h...
checking zlib.h usability ... no
checking zlib.h presence ... no
checking zlib.h... no
configure: error: subversion requires zlib
解決
[root@136199 ~]# cd /usr/ali/subversion-1.6.2
[root@136199 subversion-1.6.2]# cd zlib/
[root@136199 zlib]# ./configure --shared
[root@136199 zlib]# make
[root@136199 zlib]# cd ..
[root@136199 subversion-1.6.2]# ./configure CPPFLAGS="-Izlib/ -Lzlib/" --with-openssl=/usr/bin/openssl --without-serf
openssl的參數是為瞭解決找不到openssl的問題
3.
/usr/bin/ld: cannot find lz
解決:先安裝 zlib,
$wget http://www.zlib.net/zlib-1.2.3.tar.gz
$tar xzvf zlib-1.2.3.tar.gz
$cd zlib-1.2.3
$./configure
$make
$make install
4.
svn: Unrecognized URL scheme for '
svn: Unrecognized URL scheme for 'http://svn.test-inc.com/repos/ali_intl/apps'
這是svn以webdav協議訪問的時候需要 neon庫,我們需要安裝這個,可以在subversion的原始碼目錄中,將下載的neon展開,並且目錄名稱命名為neon。
1、wget http://www.webdav.org/neon/neon-0.25.5.tar.gz
2、tar -xvzf neon-0.25.5.tar.gz
3、mv neon-0.25.5 neon
然後 編譯subversion 就可以了
5.
make時報錯:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
解決方案:
執行
export LOCALDEFS="-DOPENSSL_NO_KRB5"
export C_INCLUDE_PATH="/usr/kerberos/include"
6.
configure時報錯:
checking whether Apache version is compatible with APR version... no
configure: error: Apache version incompatible with APR version
解決方案:
mv /usr/local/apache2 /usr/local/aapache2