linux安装
http://qwqg.mobibal.com/?p=1151
linux下安装subversion
下载:
wget http://labs.xiaonei.com/apache-mirror/httpd/httpd-2.0.63.tar.gz
wget http://subversion.tigris.org/downloads/subversion-1.6.6.tar.bz2
wget http://apache.etoak.com/apr/apr-1.3.8.tar.gz
wget http://apache.etoak.com/apr/apr-util-1.3.9.tar.gz
wget http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz
wget http://subversion.tigris.org/downloads/subversion-deps-1.6.6.tar.bz2
一.安装apr和apr-util
二.安装apache服务器
三. 安装subversion
四. 配置subversion
五. 配置apache的httpd.conf
六. 验证安装
一、安装apr、apr-util
[root@svn apr-1.3.8]# ./configure -prefix=/usr/local/apr && make && make install
[root@svn apr-util-1.3.9]# ./configure -prefix=/usr/local/apr-util -with-apr=/usr/local/apr && make && make install
二、安装apache
[root@svn httpd-2.2.14]# ./configure -prefix=/usr/local/apache2 -enable-so -enable-dav -with-mpm=worker -with-apr=/usr/local/apr/bin/apr-1-config -with-apr-util=/usr/local/apr-util/bin/apu-1-config && make && make install
三、安装subversion
[root@svn subversion-1.6.6]# ./configure -prefix=/usr/local/subversion -with-apxs=/usr/local/apache2/bin/apxs -with-apr=/usr/local/apr/bin/apr-1-config -with-apr-util=/usr/local/apr-util/bin/apu-1-config -with-ssl -with-zlib -enable-maintainer-mode
安装报错:
checking sqlite library version (via header)… unsupported SQLite version
checking sqlite library version (via pkg-config)… none or unsupported 3.3
no
An appropriate version of sqlite could not be found. We recommmend
3.6.13, but require at least 3.4.0.
Please either install a newer sqlite on this system
or
get the sqlite 3.6.13 amalgamation from:
http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz
unpack the archive using tar/gunzip and copy sqlite3.c from the
resulting directory to:
/root/soft/subversion-1.6.6/sqlite-amalgamation/sqlite3.c
This file also ships as part of the subversion-deps distribution.
configure: error: Subversion requires SQLite
按照以上提示下载sqlite-amalgamation-3.6.13.tar.gz
[root@svn soft]# wget http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz
[root@svn soft]# tar zxvf sqlite-amalgamation-3.6.13.tar.gz
到svn所在目录
[root@svn subversion-1.6.6]# mkdir sqlite-amalgamation
回到sqlite所在目录
[root@svn soft]# cp sqlite-3.6.13/sqlite3.c /root/soft/subversion-1.6.6/sqlite-amalgamation/
再次configure,报错如下:
configure: maintainer-mode: adding GCC warning flags
configure: error: –with-zlib requires an argument.
安装zlib,下载subversion-deps-1.6.6.tar.bz2
[root@svn soft]# wget http://subversion.tigris.org/downloads/subversion-deps-1.6.6.tar.bz2
放在和svn压缩文件在一个目录:
[root@localhost svn]# ll
总计 11840
drwxr-xr-x 10 1000 1000 4096 11-29 13:16 subversion-1.6.17
-rw-r--r-- 1 root root 7531891 10-13 18:03 subversion-1.6.17.tar.gz
-rw-r--r-- 1 root root 4561963 11-29 13:17 subversion-deps-1.6.17.tar.gz
解压出该包
进入
[root@svn soft]# cd subversion-1.6.6/zlib/
[root@svn zlib]# ./configure –shared
[root@svn zlib]# make
在安装openssl(yum install openssl*)
cd subversion-1.6.12
因为apr 和 apr-util 都已经安装了所以在subversion-1.6.12 目录下删除上述两个人文件夹
rm –fr apr
rm –fr apr-util
然后再到、usr/local/下创建svn文件夹
返回之前目录
安装svn
./configure --prefix=/usr/local/svn --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apu-1config --with-ssl --with-zlib --enable-maintainer-mode (注意这步出现错误configure: error: no XML parser was found: expat or libxml 2.x required, 原因是没有安装 neon)
解压的svn 文件里面有neon
cd /u