CentOS7安装SVN1.9.12
-
检查卸载原有的svn
svn --version # 检查是否原有svn yum remove svn # 卸载原有svn
-
安装依赖:
apr-1.6.5
mkdir /opt/software/svnpackage cd /opt/software/svnpackage wget http://mirror.bit.edu.cn/apache/apr/apr-1.6.5.tar.gz tar -zxvf apr-1.6.5.tar.gz cd apr-1.6.5 ./configure --prefix=/opt/module/svnpackage/apr-1.6.5 make make install
apr-util-1.6.1
cd /opt/software/svnpackage wget https://mirrors.aliyun.com/apache/apr/apr-util-1.6.1.tar.gztar zx apr-util-1.6.1.tar.gz cd apr-util-1.6.1 ./configure --prefix=/opt/module/svnpackage/apr-util-1.6.1 --with-apr=/opt/module/svnpackage/apr-1.6.5/bin/apr-1-config make && make install
sqlite-autoconf-3210000
cd /opt/software/svnpackage wget http://www.sqlite.org/2017/sqlite-autoconf-3210000.tar.gz tar -zxvf sqlite-autoconf-3210000.tar.gz cd sqlite-autoconf-3210000 ./configure --prefix=/opt/module/svnpackage/sqlite make && make install
zlib-1.2.11
cd /opt/software/svnpackage wget http://www.zlib.net/zlib-1.2.11.tar.gz tar -zxvf zlib-1.2.11.tar.gz cd zlib-1.2.11 ./configure --prefix=/opt/module/svnpackage/zlib make && make install
- 安装SVN
subversion-1.9.12
cd /opt/software/svnpackage wget http://mirrors.tuna.tsinghua.edu.cn/apache/subversion/subversion-1.9.7.tar.gz tar -zxvf subversion-1.9.12.tar.gz cd subversion-1.9.12 ./configure --prefix=/opt/module/subversion-1.9.12 --with-apr=/opt/module/svnpackage/apr-1.6.5 --with-apr-util=/opt/module/svnpackage/apr-util-1.6.1 --with-sqlite=/opt/module/svnpackage/sqlite --with-zlib=/opt/module/svnpackage/zlib make && make install
-
环境变量
vi /etc/profile export SVN_HOME=/opt/module/subversion-1.9.12 export PATH=$PATH:$GIT_HOME/bin
-
测试安装版本
svn --version