Subversion 1.8.1编译安装(self)

摘要:
在Subversion 1.8中,http客户端已基于neon被删除。相反,使用self。

Subversion 1.8中http客户端基于neon已经被移除,改用self。如果要支持http方式需要在安装svn前安装serf,安装serf推荐用serf-1.2.1,安装是./configure;serf-1.3.0安装是用scons(yum -y install scons)方式,安装serf-1.3.0后安装可能会报误,Google没找到解决方法,如下报错

checking for serf-2 library... no
checking for serf-1 library... no
checking was serf enabled... no

An appropriate version of serf could not be found, so libsvn_ra_serf
will not be built.  If you want to build libsvn_ra_serf, please
install serf 1.2.1 or newer.

configure: error: Serf was explicitly enabled but an appropriate version was not found.

安装步骤:
本文只基于《LAMP一键安装包》之后进行
1. 安装apr、apr-unit

cd /root/lamp/source
#wget http://archive.apache.org/dist/apr/apr-1.4.8.tar.gz #LAMP中已经下载
#wget http://archive.apache.org/dist/apr/apr-util-1.5.2.tar.gz
tar xzf apr-1.4.8.tar.gz
cd apr-1.4.8
./configure --prefix=/usr/local/apache
make && make install
cd ../

tar xzf apr-util-1.5.2.tar.gz
cd apr-util-1.5.2
./configure --prefix=/usr/local/apache
make && make install
cd ../

  2. 安装serf-1.2.1

yum -y install expat-devel
wget http://serf.googlecode.com/files/serf-1.2.1.tar.bz2 #serf-1.2.1.zip是win版有问题
tar xjf serf-1.2.1.tar.bz2
cd serf-1.2.1
./configure --prefix=/usr/local/serf --with-apr=/usr/local/apache --with-apr-util=/usr/local/apache
make && make install
cd ..

 3. 安装svn

tar xzf subversion-1.8.1.tar.gz
cd subversion-1.8.1
./get-deps.sh
./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache/bin/apxs 
--with-apr=/usr/local/apache --with-apr-util=/usr/local/apache --with-zlib 
--with-openssl --enable-maintainer-mode --with-serf=/usr/local/serf --enable-mod-activation
make && make install
cd ..

 4. 检查是否安装成功
安装成功会在/usr/local/apache/conf/httpd.conf自己加入下面2行

LoadModule dav_svn_module     /usr/local/subversion/libexec/mod_dav_svn.so
LoadModule authz_svn_module   /usr/local/subversion/libexec/mod_authz_svn.so

  检查svn是否支持http方式:

# svn --version
svn, version 1.8.1 (r1503906)
   compiled Aug  2 2013, 11:36:48 on x86_64-unknown-linux-gnu

Copyright (C) 2013 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme

 配置svn请参考:http://blog.linuxeye.com/95.html

原文:http://blog.linuxeye.com/348.html

免责声明:文章转载自《Subversion 1.8.1编译安装(self)》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇js遍历数组时删除元素最终结果不对前端开发调试之代理配置下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

centos LNMP第一部分环境搭建 LAMP LNMP安装先后顺序 php安装 安装nginx 编写nginx启动脚本 懒汉模式 mv /usr/php/{p.conf.default,p.conf} php运行方式SAPI介绍 第二十三节课

centos  LNMP第一部分环境搭建 LAMP安装先后顺序  LNMP安装先后顺序 php安装 安装nginx  编写nginx启动脚本   懒汉模式  mv   /usr/local/php/{p.conf.default,p.conf}  php运行方式SAPI介绍  第二十三节课 推荐搜狐下载地址:http://mirrors.sohu.com/...

svn命令行

svn操作:1.如果本机的默认的LANG环境变量是zh_CN.UTF-8,生成的patch里面包含“版本号”,这样在review board上传patch会因为格式问题导致失败,最好把LANG该为英文, export LANG="en_US.UTF-8"2.svn的patch问题svn diff > trip_refactor01_review.di...

SVN下错误集锦

SVN下错误集锦 一SVN下的文件被locked不能update和commit 最近做项目的时候,遇到这个问题,SVN下的文件被locked不能update和commit。其提示如下: 解决办法:执行“清除”操作后,就可以了。(点击Clean up…即可,之后就可以提交和更新了) 二 SVN还原提交的版本 由于在客户端提交应用程序时的误操作,导致修改了...

Ubuntu安装LAMP环境(PHP5.6) 以及下载安装phpmyadmin

参考路径: http://blog.nciaer.com/?p=133 修改apache(2.4.18)的web路径时, 需要将 /etc/apache2/sites-available/000default.config 和   /etc/apache2/apache2.conf 中的/var/www/html 改成相应路径即可 安装phpmyadmin...

URL访问模式

所谓的URL访问模式(url路由模式),值的就是不同格式的请求的URL。 ①普通模式(get模型) 示例:http://www.tpshop.com/index.php?m=Home&c=Test&a=index&page=10 格式:http://域名/入口文件?m=分组名&c=控制器名称&a=操作方法名称&a...

SVN在windows的安装和使用

第一步 下载SVN服务器端  https://sourceforge.net/projects/win32svn/ 1. 安装 双击刚才下载的文件安装,注意把安装所有功能都勾上  2.查看环境变量,如果没有自动新增对应的环境变量,就需要手动增加环境变量:   将安装目录的bin文件目录复制到环境变量里,用分号隔开 3.检查安装是否成功   配置完环境变量...