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

分类:CentOS教程 阅读:10020 次

操作系统: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.

把命令大全装进口袋

微信关注