httpd+subversion
httpd下载地址:http://httpd.apache.org/download.cgi
subversion下载地址:http://subversion.tigris.org/
我下载的是subversion-1.6.3.tar.bz2+httpd-2.2.11.tar.gz
1.先安装httpd-2.2.11.tar.gz
wds@:#tarxvjfhttpd-2.2.11.tar.gz
wds@:#cdhttpd-2.2.11
wds@:#./configure--prefix=/data1/apache2--enable-so--enable-maintainer-mode--enable-dav:#make&&makeinstall
wds@:#
2.安装subversion
wds@:#tarxvjfsubversion-1.6.3.tar
wds@:#./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:SubversionrequiresSQLite
可以http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz可以下载到最新的Sqlite版本sqlite-amalgamation-3.6.13.tar.gz安装Sqlite3.6.13tarzxvfsqlite-amalgamation-3.6.13.tar.gz进入文件夹sqlite-amalgamation找到sqlite3.c将其复制到
subversion-1.6.2/sqlite-amalgamation/sqlite3.c如果没有sqlite-amalgamation文件夹就新建一个
wds@:#make&&makeinstall
3.环境配置
mkdir-p/data1/subversion/
svnadmincreate/data1/subversion/bsso
4.配置apache
DAVsvn
SVNParentPath/data1/subversion/bsso
AuthTypeBasic
AuthName"Subversionrepository"
AuthUserFile/data1/subversion/passwd
Requirevalid-user
/data1/apache2/bin/htpasswd-c/data1/subversion/passwdsina_sso