ubuntu svn 升级

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值