天天看點

SUSE11下編譯Subversion用戶端

請移步https://higoge.github.io/,所有下載下傳資料在那個部落格都能找到。謝謝。 

--------------------------------------------------------------------

    工作需要在SLES11下面編譯svn的用戶端,支援svn://,http://,https://。編譯的有點小郁悶,最終還是通過了。過程記錄在此。

1. apr-1.4.2

下載下傳http://labs.renren.com/apache-mirror/apr/apr-1.4.2.tar.gz

執行

tar xzvf apr-1.4.2.tar.gz

cd apr-1.4.2

./configure

make

make install

2. apr-util-1.3.9

下載下傳http://labs.renren.com/apache-mirror/apr/apr-util-1.3.9.tar.gz

tar xzvf apr-util-1.3.9.tar.gz

cd apr-util-1.3.9

./configure --with-apr=/usr/local/apr/

3. sqlite-amalgamation-3.6.23

下載下傳http://www.sqlite.org/sqlite-amalgamation-3.6.23.1.tar.gz

tar xzvf sqlite-amalgamation-3.6.23.1.tar.gz

cd sqlite-amalgamation-3.6.23.1

4. zlib-1.2.5

下載下傳http://zlib.net/zlib-1.2.5.tar.gz

tar xzvf zlib-1.2.5.tar.gz

cd zlib-1.2.5

5. libxml2-sources-2.7.7

下載下傳http://xmlsoft.org/sources/libxml2-sources-2.7.7.tar.gz

tar xzvf libxml2-sources-2.7.7.tar.gz

cd libxml2-2.7.7

6. openssl-1.0.0a

下載下傳http://www.openssl.org/source/openssl-1.0.0a.tar.gz

tar xzvf openssl-1.0.0a.tar.gz

cd openssl-1.0.0a

./Configure

7. neon-0.29.3

下載下傳http://www.webdav.org/neon/neon-0.29.3.tar.gz

tar xzvf neon-0.29.3.tar.gz

8. subversion-1.6.12

下載下傳http://subversion.tigris.org/downloads/subversion-1.6.12.tar.gz

tar xzvf subversion-1.6.12.tar.gz

mv neon-0.29.3 subversion-1.6.12/neon

cd subversion-1.6.12

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/ssl/lib/pkgconfig && ./configure    --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr/ LDFLAGS=-L/usr/local/apr/lib/ --with-ssl

注:将剛才解壓的neon-0.29.3移動到subversion源碼檔案夾下,并重命名為neon。如果出現make錯誤,提示有些接口找不到,請重新執行7,8兩步。

9. 最終結果如下

# svn --version

svn, version 1.6.12 (r955767)

     compiled Jul    7 2010, 09:05:44

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

    - handles 'https' scheme

* ra_svn : Module for accessing a repository using the svn network protocol.

    - handles 'svn' scheme

* ra_local : Module for accessing a repository on local disk.

    - handles 'file' scheme

下一篇: 多路複用

繼續閱讀