wget https://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-1.5.2.tar.gz
wget https://mirrors.tuna.tsinghua.edu.cn/apache/apr/apr-util-1.5.4.tar.gz
tar zxvf apr-1.5.2.tar.gz
cd apr-1.5.2
./configure --prefix=/usr/local/apr
make && make install
cd ..
tar zxvf apr-util-1.5.4.tar.gz
cd apr-util-1.5.4
./configure --prefix=/usr/local/apr --with-apr=/usr/local/apr
make && make install
2. Zlib
http://www.zlib.net/
下载的当前版本为zlib-1.2.11.tar
解压后执行
./configure
make && make install
3. autoconf 2.59 or newer
yum install autoconf –y
4. libtool 1.4 or newer
yum install libtool -y
5. Apache Serf library 1.3.4 or newer
cd /usr/local/src
wget http://archive.apache.org/dist/serf/serf-1.2.1.tar.bz2
tar jxvf serf-1.2.1.tar.bz2
cd serf-1.2.1
yum install expat expat-devel –y
./configure --prefix=/usr/local/serf --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr
make && make install
6. OpenSSL (OPTIONAL)
yum install openssl –y
7. Berkeley DB 4.X (可选安装)
yuminstall db4 -y
8. Cyrus SASL library (OPTIONAL)
yum -y install cyrus-sasl*
9. dbus
yum install dbus
10. Qt 4 (可选安装)
yum install qt qt-devel
11. GLib 2 (Unix only, OPTIONAL)
yum install glib2 glib2-devel
12. KDELibs 4 (可选安装)
yum install kdelibs kdelibs-devel
13. Python 2.7 or newer (https://www.python.org/)
(可选择安装)
14. SQLite (REQUIRED)
https://www.sqlite.org/download.html
cd /usr/local/src
wget http://www.sqlite.org/2017/sqlite-amalgamation-3180000.zip
unzip sqlite-amalgamation-3180000.zip
先解压好,后面安装Subversion时要用到
五、安装Apache Web Server(2.2.X or newer)
下载源码包
cd /usr/local/src
wget http://mirrors.sohu.com/apache/httpd-2.2.34.tar.gz
tar zxvf httpd-2.2.34.tar.gz
编译&&安装
cd httpd-2.2.34
./configure --prefix=/webapp/apache2 --enable-dav --enable-dav-fs--enable-dav-lock --enable-so --enable-rewrite --enable-modules=all --enable-mods-shared=all --with-mpm=prefork --enable-maintainer-mode --enable-ssl --with-ssl --with-pcre --with-include-apr
make && make install
六、安装Subversion
官网下载地址:http://subversion.apache.org/download.cgi
这里我们下载1.8版
cd /usr/local/src
wget http://mirrors.tuna.tsinghua.edu.cn/apache/subversion/subversion-1.8.18.tar.gz
tar zxvf subversion-1.8.18.tar.gz
把解压好的SQLite复制到subversion目录下
mv sqlite-amalgamation-3180000subversion-1.8.18/sqlite-amalgamation
cd subversion-1.8.18
./configure --prefix=/webapp/subversion --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --enable-mod-activation --with-apache-libexecdir=/webapp/apache2/modules --with-apxs=/webapp/apache2/bin/apxs --with-serf=/usr/local/serf --with-zlib
make && make install 创建版本库:
要创建一个版本库,首先要确定采用哪种数据存储方式。在 Subversion 中,版本库的数据存储有两种方式,一种是在 Berkeley DB 数据库中存放数据;另一种是使用普通文件,采用自定义的格式来储存,称为 FSFS。
两种版本库数据存储对照表