Centos 6.2 Subversion 1.7.11 编译安装

CentOS 6.2 SVN 1.7.11 支持HTTP和HTTPS 编译安装

升级1.7.9升级到11版本,没有过多的测试,有问题欢迎反馈

 1 #!/bin/bash  
 2   
 3 yum -y remove subversion  
 4 mkdir -p /dist/{dist,src}  
 5 cd /dist/dist  
 6 /bin/rm -f openssl* subversion*  
 7 wget "http://www.openssl.org/source/openssl-1.0.1e.tar.gz"  
 8 wget "http://mirrors.cnnic.cn/apache/subversion/subversion-1.7.11.tar.gz"  
 9 wget "http://mirrors.cnnic.cn/apache/apr/apr-1.4.6.tar.gz"  
10 wget "http://mirrors.cnnic.cn/apache/apr/apr-util-1.5.2.tar.gz"  
11 wget "http://www.sqlite.org/2013/sqlite-autoconf-3071602.tar.gz"  
12 wget "http://www.webdav.org/neon/neon-0.29.6.tar.gz"  
13   
14 cd /dist/src  
15 rm -rf openssl*  
16 rm -rf subversion*  
17 rm -rf apr*  
18 rm -rf sqlite*  
19 rm -rf neon*  
20   
21 tar xf /dist/dist/openssl-1.0.1e.tar.gz  
22 cd openssl-1.0.1e  
23 ./config --prefix=/usr/local/ssl-1.0.1e shared  
24 ./config -t  
25 make  
26 make install  
27 echo '/usr/local/ssl-1.0.1e/lib' >/etc/ld.so.conf.d/openssl.conf  
28 ldconfig -v  
29 cd /dist/src  
30 tar xf /dist/dist/apr-1.4.6.tar.gz  
31 cd apr-1.4.6/  
32 ./configure --prefix=/usr/local/apr  
33 make  
34 make install  
35 cd /dist/src  
36 tar xf /dist/dist/apr-util-1.5.2.tar.gz  
37 cd apr-util-1.5.2/  
38 ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr  
39 make  
40 make install  
41 cd /dist/src  
42 tar xf /dist/dist/sqlite-autoconf-3071602.tar.gz 
43 cd sqlite-autoconf-3071602  
44 ./configure --prefix=/usr/local/sqlite  
45 make  
46 make install  
47 cd /dist/src  
48 tar xf /dist/dist/neon-0.29.6.tar.gz  
49 cd neon-0.29.6  
50 ./configure --prefix=/usr/local/neon --with-ssl=openssl  
51 make  
52 make install  
53   
54 cd /dist/src  
55 tar xf /dist/dist/subversion-1.7.11.tar.gz  
56 cd subversion-1.7.11  
57 ./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-sqlite=/usr/local/sqlite --with-ssl --without-berkeley-db --with-neon=/usr/local/neon  
58 make   
59 make install   
60   
61 ln -s /usr/local/bin/svn /usr/bin/

 

转载于:https://www.cnblogs.com/gfel/p/3221138.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值