标题: subversion编译安装
woiunix
金牌会员
Rank: 6Rank: 6


UID 74428
精华 6
积分 3592
帖子 2690
阅读权限 70
注册 2009-2-23
状态 离线
发表于 2009-5-31 01:02  资料  个人空间  短消息  加为好友 
subversion编译安装

subversion(svn)是很好的版本管理工具,但如果手动编译安装,真的是非常麻烦的事情。
subversion有三个最常用的模块:
* ra_svn : 使用svn网络协议访问档案库的模块。
  - handles ’svn’ scheme
* ra_local : 访问本地磁盘的档案库模块。
* ra_dav : 访问http://档案库模块。
前面两个,是subversion编译的默认模块,ra_dav是大多数人遇到的问题。如果ra_dav没有编译到系统中,当你从http://这样的路径checkout时,会出现这样的错误提示:
svn: Unrecognized URL scheme


那么,如何编译ra_dav呢?你至少需要越过以下几道关卡:
1、ra_dav是由一个叫neon的软件完成的,你需要安装neon。
neon的官方网站:http://www.webdav.org/neon/
2、重新configure subversion
这一步非常重要,稍不小心,就可能会找不到neon,即使你已经安装neon,即使你已经将neon的源代码加压到subversion的目录下,即使你已经把neon-0.28.4改名为neon目录。
configure subversion有一个很不爽的地方就是,当你configure配置了neon,但configure失败的时候,它不会把这个结果在执行完单独列出来,而是在configure的输出过程中显示,让人误以为configure ok,其实,neon并没有被configure进去。
在我编译subversion 1.6.1版本中,neon失败的输出为:

configure: checking neon library

An appropriate version of neon could not be found, so libsvn_ra_neon
will not be built.  If you want to build libsvn_ra_neon, please either
install neon 0.28.4 on this system

or

get neon 0.28.4 from:
    http://www.webdav.org/neon/neon-0.28.4.tar.gz
unpack the archive using tar/gunzip and rename the resulting
directory from ./neon-0.28.4/ to ./neon/


我之前尝试了多种configure的方法,例如:
./configure –prefix=/usr/ –with-apr=/usr/bin/apr-1-config –with-apr-util=/usr/bin/apu-1-cfig –with-neon=/usr/bin/neon-config –with-zlib=/lib –with-apache-libexecdir  –with-apxs=/usr/sbin/apxs
或者把neon解压到当前目录,并改名为neon,configure如下:
./configure –prefix=/usr/ –with-apr=/usr/bin/apr-1-config –with-apr-util=/usr/bin/apu-1-cfig –with-neon=./neon  –with-zlib=/lib –with-apache-libexecdir  –with-apxs=/usr/sbin/apxs
这两种configure方式都会导致neon 无法作为subversion的编译选项,正确的configure方法是–with-neon后不加参数,这个subversion的configure也真是够贱的!
./configure –prefix=/usr/ –with-apr=/usr/bin/apr-1-config –with-apr-util=/usr/bin/apu-1-cfig –with-neon=  –with-zlib=/lib –with-apache-libexecdir  –with-apxs=/usr/sbin/apxs

这一步完成后,make && make install就没有问题了。
安装完成后,使用svn –admin来验证:
# svn –version
svn, version 1.6.1 (r37116)
   compiled Apr 29 2009, 10:56:22

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles ‘http’ scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles ’svn’ scheme
* ra_local : Module for accessing a repository on local disk.
  - handles ‘file’ scheme

顶部
[广告]
woiunix
金牌会员
Rank: 6Rank: 6


UID 74428
精华 6
积分 3592
帖子 2690
阅读权限 70
注册 2009-2-23
状态 离线
发表于 2009-5-31 01:03  资料  个人空间  短消息  加为好友 

顶部
[广告]
ijjt
中级会员
Rank: 3Rank: 3



UID 95514
精华 0
积分 277
帖子 297
阅读权限 30
注册 2009-12-15
状态 离线
发表于 2009-12-17 23:45  资料  个人空间  主页 短消息  加为好友  QQ
呵呵,可是我们的客户端程序总是出问题,现在还没有彻底利用好SVN呢

顶部
[广告]
mayli
新手上路
Rank: 1



UID 102978
精华 0
积分 14
帖子 9
阅读权限 10
注册 2010-6-16
状态 离线
发表于 2010-8-9 09:28  资料  个人空间  短消息  加为好友 
感觉是服务器的问题,总是密码不对呢
我的项目申请过了也svn上不去,移驾google-code了

顶部
 



当前时区 GMT+8, 现在时间是 2010-9-3 17:17

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.030402 second(s), 8 queries

清除 Cookies - 联系我们 - Unix体验中心 - Archiver