subversion For Linux 安装

发布: 2007-06-06 18:45

subversion For Linux 安装

安装步骤:
默认安装包如下:

CODE

autoconf-2.59-5
libtool-1.5.6-4


一、下载安装APACHE2
1、下载httpd-2.0.55.tar.gz源码包
该源码包中包含APR和APR-UTIL模块,不需重新下载

CODE

#tar xvzf httd-2.0.55.tar.gz
#cd httpd-2.0.55
//安装APR和APR-UTIL
#cd srclib/apr
#./buildconf
#./configure --prefix=/usr/local/apr
#make && make install
#cd ../apr-util
#./buildconf
#./configure --prefix=/usr/local/apr --with-apr=/usr/local/apr
#make && make install
#cd ../..
#./configure --enable-dav --enable-maintainer-mode --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --with-mpm=worker --enable-track-vars --enable-cgi --enable-modules=so --enable-rewrite
#make && make install


修改httpd.conf文件
加入
CODE

LoadModule php4_module modules/libphp4.so
LoadModule perl_module modules/mod_perl.so

AddType application/x-httpd-php .php .php3 .inc
AddType application/x-httpd-php-source .phps




二、PHP安装

CODE

configure --enable-pic --with-bz2 --with-png --with-freetype-dir --with-gd --enable-gd-native-ttf --with-iconv --with-jpeg-dir=/usr/lib --with-xml --with-zlib --enable-ftp --enable-sockets --with-pear=/usr/share/pear --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs --enable-mbstring=all --prefix=/usr/local/php4 --enable-exif


三、安装subversion

CODE

#./configure --prefix=/usr/local/subversion --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --with-apxs=/usr/local/apache2/bin/apxs
#make && make install
#/usr/local/subversion/bin/svnadmin create /data/svn/root
#chown -R nobody /data/svn


在apache2的httpd.conf中加入以下代码:

CODE

<Location /svn>
DAV svn
SVNPath /data/svn/root
AuthType Basic
AuthName "CSYL Version Control System"
AuthUserFile /data/svn/svn-auth-file
Require valid-user
</Location>


生成密码文件

CODE

#mkdir /data/svn
#chown -R nobody /data/svn
#/usr/local/apache2/bin/htpasswd -c /data/svn/svn-auth-file mills



QUOTE
在安装完后出现以下问题:
svn: PROPFIND request failed on '/svn/repository'
svn:Could not open the requested SVN filesystem
GOOGLE了半天后,终于发现是httpd.conf中的<location>标签中的路径没设好。
<Location /svn>
DAV svn
SVNPath /data/svn/root
</Location>
访问方式:http://blog.guomin.net/svn


==================
<Location /svn>
DAV svn
SVNParentPath D:/repos
</Location>




原文: http://qtchina.tk/?q=node/60

Powered by zexport