SVN_服务器的安装

安装了一天,无果,一个编译错误。

编译错误:

/home/lijungan/download/subversion-1.6.13/serf/.libs/libserf-0.so: undefined reference to `BIO_set_flags'
/home/lijungan/download/subversion-1.6.13/serf/.libs/libserf-0.so: undefined reference to `BIO_clear_flags'
/home/lijungan/download/subversion-1.6.13/serf/.libs/libserf-0.so: undefined reference to `BIO_test_flags'
/home/lijungan/download/subversion-1.6.13/serf/.libs/libserf-0.so: undefined reference to `SSL_CTX_set_client_cert_cb'
collect2: ld returned 1 exit status
make_real: *** [subversion/svn/svn] Error 1

--解决方法:换了一个版本1.4.3搞定了,这个版本估计还不稳定或者没有配置好。(后记)

 

留下一些有用的网址,下回再战·

安装步骤和依赖:

http://jlife.iteye.com/blog/480054 有自己的见解

http://www.yoyotown.com/?p=422 这个很写的非常详细(建议先看)

http://blog.csdn.net/gtuu0123/archive/2009/06/13/4266954.aspx 有自己的见解

SVN 命令 来自悠悠堂

 

 

因为httpd装的时候没有加入如下配置,结果得重装。(真烂,不知道有没有更合理的方法)

    --enable-dav \
    --enable-so

重装的时候我用--prefix=xxx换了个名字,结果就报错,居然有一个包好像是libtool居然只认固定的名字 apache2 。我都快无语了。我又重装了一次,按要求名字用apache2,okay。

 

附录1

注意分清楚svn寻找的根目录,根目录下的目录,url地址输入的目录(httpd)之间的关系。

例如附录2中的安装,我把svn的根目录放在了:SVNParentPath /home/lijungan/svn/project

这样,

在url中输入http://lijungan.desktop.amazon.com/svn则搜寻的是/home/lijungan/svn/project目录

在url中输入http://lijungan.desktop.amazon.com/svn/project 搜寻的目录为/home/lijungan/svn/project/project

注意到了吗?这里是个错误!

如果想访问目录projectAAA,应该输入http://lijungan.desktop.amazon.com/svn/projectAAA,这样才可以找到目录/home/lijungan/svn/project/projectAAA

 

附录2一些安装记录

===========================================================

#--------------------------------------------------
#setup apr-util
#--------------------------------------------------
./configure \
    --with-apr=/usr/local/apr/bin/apr-config


#--------------------------------------------------
# Apache httpd server setup
#--------------------------------------------------
./configure \
    --prefix=/usr/local/apache2 \
    --enable-dav \
    --enable-so

make && make istall


#--------------------------------------------------
# sbuversion_1.4
#--------------------------------------------------
./configure \
    --prefix=/usr/local/svn  \
    --with-apxs=/usr/local/apache2/bin/apxs \
    --with-ssl \
    --with-libs=/usr/kerberos \
    --enable-maintainer-mode

make && make install


#--------------------------------------------------
#Test svn and create a svn lib
#--------------------------------------------------
#test
/usr/local/svn/bin/svnserve --version
#create a repository
mkdir -p ~/svn/project/ChinaInvoiceUIConfig
/usr/local/svn/bin/svnadmin create ~/svn/project/ChinaInvoiceUIConfig


#--------------------------------------------------
#import data/project/file
#
#1. check help command for svn
#   /usr/local/svn/bin/svn -h
#   /usr/local/svn/bin/svn -h import
#2. For import command
#   import [source_file_name] file://[local_directory_name]
#--------------------------------------------------
/usr/local/svn/bin/svn import \
    /home/lijungan/workspace/src/ChinaInvoiceUIConfig \
    file:///home/lijungan/svn/project/ChinaInvoiceUIConfig \
    -m "comment sth by June."


#--------------------------------------------------
# configuration httpd with svn
# 1. check httpd.conf include this 2 lines alike
#   LoadModule dav_svn_module     modules/mod_dav_svn.so
#   LoadModule authz_svn_module   modules/mod_authz_svn.so
# 2. check $httpd_home/modules has 2 files alike
#   mod_authz_svn.so  mod_dav_svn.so
#--------------------------------------------------
#lijungang edit here
<Location /svn>
   DAV svn
   SVNParentPath /home/lijungan/svn/project
   AuthzSVNAccessFile /home/lijungan/svn/project/AuthzSVNAccessFile.conf
   AuthType Basic
   AuthName "AuthName:Subversion.Login"
   AuthUserFile /home/lijungan/svn/project/authUserFile.conf
   Require valid-user
</Location>


#--------------------------------------------------
# SVN authority management
# 1. add user
#   
#--------------------------------------------------
#create a passwd file use param '-c' and add a user lijungan111
/usr/local/apache2/bin/htpasswd -c /home/lijungan/svn/project/authUserFile.conf lijungan111
#add another one without param '-c'
/usr/local/apache2/bin/htpasswd /home/lijungan/svn/project/authUserFile.conf lijungan222

#--------------------------------------------------
# 2. grant operation permission  
#  
#--------------------------------------------------
vi /home/lijungan/svn/project/AuthzSVNAccessFile.conf

 

 

你可能感兴趣的:(C++,c,SVN,C#,subversion)