Linux下SVN服务器的搭建
rm -f /usr/local/lib/libsvn*
rm -f /usr/local/lib/libapr*
rm -f /usr/local/lib/libexpat*
rm -f /usr/local/lib/libneon*
下载最新的svn压缩包http://subversion.tigris.org/downloads/subversion-1.6.11.tar.gz
# tar -zxvf subversion-1.6.11.tar.gz
# cd subversion-1.6.11
# make
# make install
//配置subversion安装
#./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache2/bin/apxs
--with-apr=/usr/local/apache2 --with-apr-util=/usr/local/apache2 --with-ssl --enable-shared
在以上编译过程中可能会出现 configure: error: Subversion requires SQLite
可以http://www.sqlite.org/sqlite-amalgamation-3.6.23.1.tar.gz 可以下载到最新的Sqlite版本
# tar -zxvf sqlite-amalgamation-3.6.23.1.tar.gz
# cp sqlite-3.6.23.1/sqlite3.c (svn目录)/sqlite-amalgamation/sqlite3.c
# cd sqlite-3.6.23.1
# ./configure
# make
# make install
可能会出现 /usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
make: *** [subversion/svn/svn] Error 1
有错误提示可以知道,这应该和缺少expat库有关,因此还需要把expat库的相关东西安装好。可以在 http://www.linuxfromscratch.org/blfs/view/stable/general/expat.html页面找到相应的下载链接。
# wget http://downloads.sourceforge.net/expat/expat-2.0.1.tar.gz
# tar -zxvf expat-2.0.1.tar.gz
# cd expat-2.0.1
# ./configure
# make && make install
ok,svn安装完成
相关文章:Linux下SVN服务器的配置



