1.下载svn
下载地址:http://mirrors.cnnic.cn/apache/subversion/
下载版本:subversion-1.8.19
2.复制到linux服务器,解压缩
[svn@localhost ~]$ tar -zxvf subversion-1.8.19.tar.gz
[svn@localhost ~]$ cd subversion-1.8.19
3.编译安装
[svn@localhost subversion-1.8.19]$ ./configure
...
configure: WARNING: APR not found
The Apache Portable Runtime (APR) library cannot be found.
Please install APR on this system and configure Subversion
with the appropriate --with-apr option.
You probably need to do something similar with the Apache
Portable Runtime Utility (APRUTIL) library and then configure
Subversion with both the --with-apr and --with-apr-util options.
configure: error: no suitable APR found
需安装apr
1.下载地址
apr-1.5.2.tar:http://archive.apache.org/dist/apr/apr-1.5.2.tar.gz
2.安装依赖环境
autoconf // 安装autoconf
libtool // 安装libtool
openssl openssl-devel // 安装openssl
3.安装apr
tar xvzf apr-1.5.2.tar.gz // 解压apr-1.5.2.tar.gz
cd apr-1.5.2 // 进入apr-1.5.2目录
./configure
make
make install
apr-util同理
再次编译:
[svn@localhost subversion-1.8.19]$ ./configure --with-apr=/home/svn/apr-1.5.2 --with-apr-util=/home/svn/apr-util-1.6.1
...
An appropriate version of sqlite could not be found. We recommmend
3.7.15.1, but require at least 3.7.12.
Please either install a newer sqlite on this system
or
get the sqlite 3.7.15.1 amalgamation from:
http://www.sqlite.org/sqlite-amalgamation-3071501.zip
unpack the archive using unzip and rename the resulting
directory to:
/home/svn/subversion-1.8.19/sqlite-amalgamation
sqlite版本过低导致,在http://www.sqlite.org/sqlite-amalgamation-3071501.zip下载sqlite压缩包,解压缩到/home/svn/subversion-1.8.19/sqlite-amalgamation目录下,重新编译即可
checking was serf enabled... no
An appropriate version of serf could not be found, so libsvn_ra_serf
will not be built. If you want to build libsvn_ra_serf, please
install serf 1.2.1 or newer.
需安装serf,否则使用svn获取http或https上资源时报错