Linux[Centos6.3] 下 SVN1.8.9版本支持http和https

操作系統:Centos6.3

SVN版本:1.8.9


昨天編譯安裝的svn是成功了,在eclipse中是可以用了...不過今天在linux上執行 svn checkout http://.... 命令時候報錯了...

svn: E170000: Unrecognized URL scheme for


又重新 svn --version

svn, version 1.8.9 (r1591380)
   compiled Jun  7 2014, 06:14:20 on x86_64-unknown-linux-gnu


Copyright (C) 2014 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/


The following repository access (RA) modules are available:


* 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

發現 dev 模塊根本沒加載進來.....

在svn1.8版本之前按照原來的安裝方法是可以加載到dav的模塊,但是,1.8版本以後,需要serf軟件包支持訪問 http 協議的版本庫,不然就會報錯.   serf需要用scons來編譯安裝,所以先安裝下scons

wgethttp://downloads.sourceforge.net/project/scons/scons/2.3.0/scons-2.3.0-1.noarch.rpm?r=http%3A%2F%2Fwww.scons.org%2F&ts=1387258358&use_mirror=softlayer-ams

rpm -ivh scons-2.3.0-1.noarch.rpm

下載,編譯安裝scons

wget https://serf.googlecode.com/files/serf-1.3.3.tar.bz2

scons PREFIX=/home/rely/serf APR=/home/rely/apr APU=/home/rely/apr-util OPENSSL=/usr/bin

tar -jxvf serf-1.3.3.tar.bz2

cd serf-1.3.3

scons install


重新編譯svn 加上 --with-serf=/home/rely/serf

./configure --prefix=/home/svn/server --with-apxs=/home/apache/bin/apxs --with-apr=/home/rely/apr/bin/apr-1-config --with-apr-util=/home/rely/apr-util/bin/apu-1-config --without-berkeley-db --with-openssl --enable-maintainer-mode --with-sqlite=/home/sqlite --with-zlib=/home/rely/zlib --with-serf=/home/rely/serf

再加一步,把serf源碼包裏的 libserf-1.so.1 複製到svn的安裝目錄下的lib目錄,否則會報錯

svn: error while loading shared libraries: libserf-1.so.1: cannot open shared object file: No such file or directory

cp libserf-1.so.1 /home/svn/server/lib


svn --version 看下信息

svn, version 1.8.9 (r1591380)
   compiled Jun  8 2014, 01:20:36 on x86_64-unknown-linux-gnu


Copyright (C) 2014 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/


The following repository access (RA) modules are available:


* 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
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.3
  - handles 'http' scheme
  - handles 'https' scheme


ok,收工.....

最後測試一遍信息發出來

[root@AY140529181750476004Z test-work]# svn checkout http://localhost/svn/repos/Game2048
Authentication realm: <http://localhost:80> Subversion repository
Password for 'root': **********


Authentication realm: <http://localhost:80> Subversion repository
Username: admin
Password for 'admin': *********




-----------------------------------------------------------------------
ATTENTION!  Your password for authentication realm:


   <http://localhost:80> Subversion repository


can only be stored to disk unencrypted!  You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible.  See the documentation for details.


You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/root/.subversion/servers'.
-----------------------------------------------------------------------
Store password unencrypted (yes/no)? y
A    Game2048/assets
A    Game2048/src
A    Game2048/src/com
A    Game2048/src/com/hzu0530
A    Game2048/src/com/hzu0530/game2048
A    Game2048/src/com/hzu0530/game2048/lib
A    Game2048/project.properties
A    Game2048/proguard-project.txt
A    Game2048/AndroidManifest.xml
A    Game2048/src/com/hzu0530/game2048/MainActivity.java
A    Game2048/src/com/hzu0530/game2048/LoginActivity.java
A    Game2048/src/com/hzu0530/game2048/lib/BaseActivity.java
A    Game2048/src/com/hzu0530/game2048/lib/Constants.java
A    Game2048/src/com/hzu0530/game2048/wedget
A    Game2048/libs
A    Game2048/res
A    Game2048/res/drawable-hdpi
A    Game2048/res/drawable-xxhdpi
A    Game2048/res/anim
A    Game2048/res/menu
A    Game2048/res/values-v11
A    Game2048/res/drawable-ldpi
A    Game2048/res/values-v14
A    Game2048/res/drawable-mdpi
A    Game2048/res/drawable-xhdpi
A    Game2048/res/layout
A    Game2048/res/values
A    Game2048/res/drawable
A    Game2048/src/com/hzu0530/game2048/wedget/GameCard.java
A    Game2048/src/com/hzu0530/game2048/wedget/GameView.java
A    Game2048/libs/android-support-v4.jar
A    Game2048/res/drawable-hdpi/ic_launcher.png
A    Game2048/res/drawable-xxhdpi/ic_launcher.png
A    Game2048/res/menu/activity_main.xml
A    Game2048/res/values-v11/styles.xml
A    Game2048/res/values-v14/styles.xml
A    Game2048/res/drawable-mdpi/ic_launcher.png
A    Game2048/res/drawable-xhdpi/ic_launcher.png
A    Game2048/res/layout/activity_main.xml
A    Game2048/res/values/colors.xml
A    Game2048/res/values/styles.xml
A    Game2048/res/values/strings.xml
A    Game2048/res/drawable/textbackground.xml
A    Game2048/ic_launcher-web.png
Checked out revision 4.


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章