Centos 6.2 Subversion 1.7.9 编译安装

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

安装脚本如下:

 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://labs.mop.com/apache-mirror/subversion/subversion-1.7.9.tar.gz"  
 9 wget "http://mirror.bjtu.edu.cn/apache/apr/apr-1.4.6.tar.gz"  
10 wget "http://mirror.bjtu.edu.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.9.tar.gz  
56 cd subversion-1.7.9  
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/

随意保存成 .sh结尾的文件,然后 ./文件名.sh即可

亲测成功,仅作保存

posted @ 2013-04-25 11:56  笨笨の猫  阅读(621)  评论(0编辑  收藏  举报