ubuntu svn 升級

來源:互聯網
上載者:User

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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.