Centos6.5安装离线安装Subversion

获取Subversion源码

subversion.apache.org/d

安装Subversion依赖

解压下载到的tar.gz

tar -zxvf subversion-1.11.1.tar.gz 

进入解压目录后执行

./configure

若提示错误,缺少apr,则需要去apache官网下载apr( apr.apache.org/download )

安装apr

解压获取到tar.gz,并执行下面命令

./configure --prefix=/usr/local/apr
make install

若报错,可能缺少apr-util,apr-util和刚才下载apr的时候应该是一起,再次去apache官网下载即可( apr.apache.org/download

安装apr-util

注意:安装的时候依赖apr,配置了apr的环境变量也是不好用的,必须在安装的时候指定apr才行

./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
make

若报错`xml/apr_xml.c:35:19: error: expat.h: No such file or directory`

安装expat-devel

yum install expat-devel -y

centos.pkgs.org/6/cento

下载后安装

rpm -ivh expat-devel-2.0.1-13.el6_8.x86_64.rpm

继续安装apr-util

./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
make install

此时能安装成功,配置apr和apr-util的环境变量

安装subversion

在安装过程中出现了一些错误,安装命令以最后安装成功的那条为准

./configure

若缺少SQLite,即上图,在报错中有一段

get the sqlite 3.8.11.1 amalgamation from:
 https://www.sqlite.org/2015/sqlite-amalgamation-3081101.zip
unpack the archive using unzip and rename the resulting
directory to: