httpd下载地址:
subversion下载地址:
我下载的是subversion-1.6.3.tar.bz2+httpd-2.2.11.tar.gz
1.先安装httpd-2.2.11.tar.gz
wds@<10.54.38.18>:# tar xvjf httpd-2.2.11.tar.gz
wds@<10.54.38.18>:# cd httpd-2.2.11
wds@<10.54.38.18>:# ./configure --prefix=/data1/apache2 --enable-so --enable-maintainer-mode --enable-dav <-后边这个别忘记加了要不在装完svn后启动apache会有问题
wds@<10.54.38.18>:# make && make install
wds@<10.54.38.18>:#
2.安装 subversion
wds@<10.54.38.18>:# tar xvjf subversion-1.6.3.tar
wds@<10.54.38.18>:# ./configure --prefix=/data1/subversion --with-apxs=/data1/apache2/bin/apxs --with-apr-util=/data1/apache2/bin/apu-1-config --with-apr=/data1/apache2/bin/apr-1-config
在以上编译过程中可能会出现 configure: error: Subversion requires SQLite
可以 可以下载到最新的Sqlite版本sqlite-amalgamation-3.6.13.tar.gz安装Sqlite3.6.13 tar zxvf sqlite-amalgamation-3.6.13.tar.gz 进入文件夹sqlite-amalgamation找到sqlite3.c将其复制到
subversion-1.6.2/sqlite-amalgamation/sqlite3.c
wds@<10.54.38.18>:# make && make install
3.环境配置
mkdir -p /data1/subversion/
svnadmin create /data1/subversion/bsso
4.配置apache
DAV svn
SVNParentPath /data1/subversion/bsso
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /data1/subversion/passwd
Require valid-user
/data1/apache2/bin/htpasswd -c /data1/subversion/passwd sina_sso
阅读(1503) | 评论(0) | 转发(0) |