linux svn 1.8.9 安装,subversion-1.8.9源码安装,让其支持http/https更新

因项目需要用到svn,通过yum源安装的版本较低且涉及安全漏洞问题,故用源码编译安装,并让其支持http/https链接更新

软件包为:

apr-1.5.1

apr-util-1.5.3

expat-2.1.0

zlib-1.2.8

httpd-2.2.27scons-2.3.0-1.noarch.rpm+serf-1.3.3 (支持http/https的模块)sqlite-autoconf-3080500+sqlite-amalgamation-3080500+subversion-1.8.9

#!/bin/bash

# Create Subversion Environment & Create Subversion User/Group

groupadd -r svn && useradd -r -g svn -s /sbin/nologin -M svn

# Install Arp-1.5.1

cd /opt/svn && tar xf apr-1.5.1.tar.gz && cd apr-1.5.1 && ./configure --prefix=/usr/local/apr && make && make install

# Install Arp-util-1.5.3

cd /opt/svn && tar xf apr-util-1.5.3.tar.gz && cd apr-util-1.5.3 && ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr && make && make install

# Install Expat-2.1.0

cd /opt/svn && tar xf expat-2.1.0.tar.gz && cd expat-2.1.0 && ./configure --prefix=/usr/local/expat && make && make install

# Install Zlib-1.2.8

cd /opt/svn && tar xf zlib-1.2.8.tar.gz && cd zlib-1.2.8 && ./configure --shared && make && make install

# Install Httpd-2.2.27 & Refresh System Dynamic Library

cd /opt/svn && tar xf httpd-2.2.27.tar.gz && cd httpd-2.2.27 && ./configure --prefix=/usr/local/apache --enable-dav --enable-dav-fs --enable-so --enable-modules=so --enable-maintainer-mode --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-included-apr && make && make install && echo "/usr/local/lib" >> /etc/ld.so.conf && ldconfig

# Install Scons-2.3.0-1 & Serf-1.3.3

cd /opt/svn && rpm -ivh scons-2.3.0-1.noarch.rpm && tar xf serf-1.3.3.tar.bz2 && cd serf-1.3.3 && scons PREFIX=/usr/local/serf APR=/usr/local/apache/bin/apr-1-config APU=/usr/local/apache/bin/apu-1-config install

# Install Sqlite-autoconf-3080500

cd /opt/svn && tar xf sqlite-autoconf-3080500.tar.gz && cd sqlite-autoconf-3080500 && ./configure --prefix=/usr/local/sqlite && make && make install

# Install Sqlite-amalgamation-3080500

cd /opt/svn && mkdir -p /opt/svn/subversion-1.8.9/sqlite-amalgamation/ && unzip sqlite-amalgamation-3080500.zip && cd sqlite-amalgamation-3080500 && \cp -a ./ sqlite3.c /opt/svn/subversion-1.8.9/sqlite-amalgamation/

# Install Subversion-1.8.9 & Refresh System Dynamic Library

cd /opt/svn && tar xf subversion-1.8.9.tar.gz && cd subversion-1.8.9 && ./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-sqlite=/usr/local/sqlite --with-zlib --enable-maintainer-mode --with-serf=/usr/local/serf && make && make install && echo "/usr/local/serf/lib" >> /etc/ld.so.conf && echo "/usr/local/subversion/lib" >> /etc/ld.so.conf && ldconfig && ln -s /usr/local/subversion/bin/svn /usr/bin/svn

98ba1e5e08028b6d3604a1d38986b1e3.png

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值