码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS7安装SVN1.9.12

时间:2019-10-27 18:58:48      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:卸载   path   module   安装svn   版本   nbsp   sql   apache   soft   

  • 检查卸载原有的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

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

 

CentOS7安装SVN1.9.12

标签:卸载   path   module   安装svn   版本   nbsp   sql   apache   soft   

原文地址:https://www.cnblogs.com/MWCloud/p/11748123.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!