Subversion 1.6 & 1.8 installation under LINUX
yum -y remove subversion
RPM 安装:
http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/1.6.16/rhel5/i386/
wget http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/1.6.16/rhel5/i386/neon-0.28.4-1.i386.rpm
wget http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/1.6.16/rhel5/i386/sqlite-3.5.9-2.i386.rpm
wget http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/1.6.16/rhel5/i386/sqlite-devel-3.5.9-2.i386.rpm
wget http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/1.6.16/rhel5/i386/subversion-1.6.16-1.i386.rpm
wget http://the.earth.li/pub/subversion/summersoft.fay.ar.us/pub/subversion/latest/1.6.16/rhel5/i386/mod_dav_svn-1.6.16-1.i386.rpm
rpm -ivh neon-0.28.4-1.i386.rpm
rpm -Uvh sqlite-3.5.9-2.i386.rpm sqlite-devel-3.5.9-2.i386.rpm (安装数据库)
rpm -ivh subversion-1.6.16-1.i386.rpm
rpm -ivh mod_dav_svn-1.6.16-1.i386.rpm (如果需要安装svnserver到apache module)
yum安装:
yum install mod_dav_svn subversion
变异安装
wget http://archive.apache.org/dist/subversion/subversion-1.6.19.tar.gz
wget http://archive.apache.org/dist/subversion/subversion-deps-1.6.19.tar.gz
./configure --with-apxs=/usr/local/apache2/bin/apxs
--with-apr=/usr/local/apache2 --with-apr-util=/usr/local/apache2
--prefix=/usr/local/subversion --with-ssl --enable-maintainer-mode
make&&make install
以上方式编译出来的subversion只支持FTFS格式(文件格式来存储版本库)
----修改path支持直接运行svn------
vi /etc/profile
export PATH=/usr/local/subversion/bin:$PATH
source /etc/profile
-------修改httpd.conf支持subversion server.(省)
htpasswd -bd /svnroot/userpwdfile james 71234aabc
2)安装 subversion 1.8.9
wget http://archive.apache.org/dist/subversion/subversion-1.8.9.tar.gz
1、subversion1.8.5(http://subversion.apache.org/download/)
2、apr 1.5 (http://apr.apache.org/download.cgi)
3、apr-util 1.5.3 (http://apr.apache.org/download.cgi)
4、serf 1.3.3 (https://code.google.com/p/serf/downloads/list)subversion1.8.0之前都是用neon来支持http/https,之后都是用serf来支持的;
5、scons 2.3 (http://downloads.sourceforge.net/project/scons/scons/2.3.0/scons-2.3.0-1.noarch.rpm)注意:这个工具类似于cmake,用来编译serf,注意版本为2.3;
6、sqlite 3.8.2 (http://www.sqlite.org/download.html)
7、httpd 2.4.7 (http://mirrors.cnnic.cn/apache//httpd/httpd-2.4.7.tar.bz2)
安装步骤:
1、安装基本软件包
yum install gcc gcc-++ make pcre-develzlib-devel openssl openssl-devel pcre pcre-devel -y
2、安装scons
rpm -ivh scons-2.3.0-1.noarch.rpm
3、编译apr和apr-util
tar xf apr-1.5.0.tar.gz
cd apr-1.5.0
./configure --prefix=/usr/local/apr
make && make install
tar xf apr-util-1.5.3.tar.gz
cd apr-util-1.5.3
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make && make install
4、编译sqlite(默认路径就行)
tar xf sqlite-autoconf-3080200.tar.gz
cd sqlite-autoconf-3080200
./configure
make && make install
5、编译serf (让svn 支持http/https)
tar xf serf-1.3.3.tar.bz2
cd tar xf serf-1.3.3
scons APR=/usr/local/apr APU=/usr/local/apr-util OPENSSL=/usr/bin PREFIX=/usr/local/serf
scons install
6、编译httpd
tar xf httpd-2.4.9.tar.bz2
cd httpd-2.4.9
./configure --prefix=/usr/local/apache2 --enable-dav --enable-so-nable-rewrite --enable-maintainer-mode --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
make && make install
7、编译subversion
tar xjf subversion-1.8.9.tar.bz2
cd subversion-1.8.9
mkdir sqlite-amalgamation
cp sqlite-autoconf-3080200/sqlite3.c sqlite-amalgamation/
# (拷贝sqlite文件支持db)
./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ --with-openssl --with-serf=/usr/local/serf
make && make install
cp serf-1.3.3/libserf-1.so.1 /usr/local/subversion/lib/
echo "PATH=$PATH/:/usr/local/subversion/bin" >>/etc/profile
source /etc/profile
3)拷贝
# cp /usr/local/subversion/libexec/mod_dav_svn.so /usr/local//apache2/modules
# cp /usr/local/subversion/libexec/mod_authz_svn.so /usr/local/apache2/modules