Linux下 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]# [root@136199 subversion-1.6.2]# ./configure CPPFLAGS="-Izlib/ -Lzlib/" --with-openssl=/usr/bin/openssl --without-serf
    openssl的参数是为了解决找不到openssl的问题
  3. make时报如下错误 /usr/bin/ld: cannot find lz 解决:安装 zlibdevel.i386
    make时报如下错误
    /usr/bin/ld: cannot find lz
    解决:安装 zlib-devel.i386
  4. svn: Unrecognized URL scheme for '
    svn: Unrecognized URL scheme for 'http://svn.alibaba-inc.com/repos/ali_intl/apps'
    这是svn以webdav协议访问的时候需要 neon库,我们需要安装这个,可以在subversion的源代码目录中,将下载的neon展开,并且目录名称命名为neon。
    2、tar -xvzf neon-0.25.5.tar.gz
    3、mv neon-0.25.5 neon
    然后 编译subversion 就可以了。