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
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