需要的安装包:
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
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.7.tar.bz2
cd httpd-2.4.7
./configure --prefix=/usr/local/apache --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 xf subversion-1.8.5.tar.bz2
cd subversion-1.8.5
./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache/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
结果显示:
执行svn --verison
[root@host]# svn --version
svn, version 1.8.5 (r1542147)
compiled Jan 20 2014, 17:19:37 on x86_64-unknown-linux-gnu
Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/
The following repository access (RA) modules are available:
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
- using serf 1.3.3
- handles 'http' scheme
- handles 'https' scheme