linux安装subversion

根据上一章配置好的apache。这一章开始安装subversion

安装步骤

1. 下载subversion

到官网http://subversion.apache.org/下载subversion-1.6.12.tar.bz2 和 subversion-deps-1.6.12.tar.bz2 。前者是 svn的源文件,后者是编译时可能需要用到的包。

 

2. 解压这两个文件(这两个自动解压成一个包):

 

tar jxvf subversion-1.6.12.tar.bz2
tar jxvf subversion-deps-1.6.12.tar.bz2

 

 

3. 安装subversion

 

cd subversion-1.6.12
./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-ssl --with-zlib=/usr/local/lib --enable-maintainer-mode
make
make install

注意:可能会出现以下错误:

 

configure: WebDAV support is enabled
checking expat.h usability... no
checking expat.h presence... no
checking for expat.h... no
checking for xml2-config... no
configure: error: no XML parser was found: expat or libxml 2.x required
configure failed for neon

   检查是否安装 expat2 如果没有请在http://sourceforge.net/projects/expat/files/下载最新expat-2.0.1.tar.gz

 

安装expat命令如下:

 

tar zxvf expat-2.0.1.tar.gz
cd expat-2.0.1
./configure
make
make install

  如果还依然出现以下2行错误

 

> checking for xml2-config... no
> configure: error: no XML parser was found: expat or libxml 2.x required

是由于neon没有安装 
cd /usr/local/subversion-1.5.0/neon
./configure --with-ssl
make
make install
 

 

如果安装过程中出现了问题2/3,就安装libssl-dev和libxml2-dev包

sudo apt-get install libssl-dev libxml2-dev
 

 

如果出现以下错误:

 

configure: error: with-zlib requires an argument

那是因为你没有指定路径--with-zlib=/usr/local/lib 其中/usr/local/lib为默认路径

 

 

 

 

./configure LDFLAGS="-L/usr/lib64 -L/lib64" --prefix=/usr/local/subversion --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-ssl --with-zlib=/usr/local/lib -with-openssl=/usr/local/ssl  --with-libs=/usr/local/ssl --enable-maintainer-mod --without-serf

 

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值