http://subversion.apache.org/download/下载最新版本,老版本在http://archive.apache.org/dist/subversion/
这次下载的是
subversion-1.8.10.tar.gz,下载之后上传到/opt。解压tar -zxvf subversion-1.8.10.tar.gz
尝试编译
cd /opt/subversion-1.8.10
./configure --with-apxs=/opt/apache/bin/apxs --prefix=/usr/local/subversion --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-ssl --with-zlib --enable-maintainer-mode
错误1:
An appropriate version of sqlite could not be found. We recommmend3.7.6.3, but require at least 3.6.18.
去这里http://www.sqlite.org/download.html下载sqlite-amalgamation-3080700.zip
解压后上传到/opt/subversion-1.8.10/sqlite-amalgamation,其中sqlite-amalgamation目录需要自己创建
错误2:
configure: error: subversion requires zlib
去http://zlib.net/下载,http://zlib.net/zlib-1.2.8.tar.gz,上传到/opt
cd /usr/local
tar -xvzf zlib-1.2.8.tar.gz
cd zlib-1.2.8
./configure
make && make install