您的位置:首页 > 其它

企业编译安装SVN服务器脚本以及相应软件包

2014-04-27 14:05 513 查看
已亲自安装2次以上,如有问题请留言交流,谢谢所需软件包 svn_install.tar.gz 百度云盘下载地址: http://pan.baidu.com/s/1bneTDpX
#!/bin/bashyum install gcc gcc-c++ -ymkdir /home/soft -pvtar zxvf svn_install.tar.gz -C /home/soft/#其中svn_install.tar.gz 包含以下软件包:
#apr-1.4.6.tar.gz
#zxvf apr-util-1.4.1.tar.gz
#pcre-8.12.tar.gz
#httpd-2.4.2.tar.gz
#sqlite-amalgamation-3071300.zip
#neon-0.29.6.tar.gz
#subversion-1.7.5.tar.gz#svn需要SQLite支持,下载sqlite-amalgamation-3071300.zip 下载链接#http://www.sqlite.org/download.html
#svn需要neon,用于svn 命令行支持http或者https协议访问svn 下载链接#http://www.webdav.org/neon/###################################################
#安装过程:
yum remove apr-util-devel apr apr-util-mysql apr-docs apr-devel apr-util apr-util-docs -y
yum -y install lrzsz zlib zlib-devel libxml2 libxml2-devel expatcd /home/soft/svn_install/
tar zxvf apr-1.4.6.tar.gz
cd apr-1.4.6#编辑configure 注释掉 $RM “$cfgfile”
sed -i ‘s/^.*$RM “$cfgfile”$/# $RM “$cfgfile”/’ configure./buildconf
yum install autoconf -y
yum install libtool -y
./configure –prefix=/usr/local/apr
make && make installcd ..
tar zxvf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure –prefix=/usr/local/apr –with-apr=/usr/local/apr
make && make installcd ..
tar zxvf pcre-8.12.tar.gz
cd pcre-8.12
./configure
make && make installcd ..
tar zxvf httpd-2.4.2.tar.gz
cd httpd-2.4.2
./configure –prefix=/usr/local/apache –with-apr=/usr/local/apr/bin/apr-1-config –with-apr-util=/usr/local/apr/bin/apu-1-config \
–enable-so –enable-dav –enable-dav-fs –enable-dav-lock –enable-maintainer-mode –enable-rewrite
make && make installcd ..
tar zxvf neon-0.29.6.tar.gz
cd neon-0.29.6
./configure
make && make installcd ..
unzip sqlite-amalgamation-3071300.zip
tar zxvf subversion-1.7.5.tar.gzmkdir -p /home/soft/svn_install/subversion-1.7.5/sqlite-amalgamation
cp sqlite-amalgamation-3071300/sqlite3.c /home/soft/svn_install/subversion-1.7.5/sqlite-amalgamation/
cd subversion-1.7.5
./configure –prefix=/usr/local/subversion –with-apxs=/usr/local/apache/bin/apxs –with-apr=/usr/local/apr/bin/apr-1-config \
–with-apr-util=/usr/local/apr/bin/apu-1-config –with-ssl –with-zlib –enable-maintainer-mode –with-neon=/usr/local
make && make install以上编译安装完毕!

本文出自 “YeaDong” 博客,请务必保留此出处http://yeadong.blog.51cto.com/7238192/1403659
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: