免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3658 | 回复: 5
打印 上一主题 下一主题

[FreeBSD] SVN 报错, google 无果... [已解决] [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-05 16:59 |只看该作者 |倒序浏览
虚拟机下测试的,希望大家路过时顺带帮忙解决一下.

%uname -a
FreeBSD www.hy0kl.org 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25 UTC 2009     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

%pkg_info | grep subversion
py-subversion-1.5.5_1 Python bindings for version control system
subversion-1.5.5_1  Version control system

%whereis svn
svn: /usr/local/bin/svn /usr/local/man/man1/svn.1.gz

%svn checkout http://svn.freebsd.org/base/release/7.2.0/
svn: Unrecognized URL scheme for 'http://svn.freebsd.org/base/release/7.2.0'

%svn --version
svn, version 1.5.5 (r34862)
   compiled Mar 24 2009, 09:32:53

Copyright (C) 2000-2008 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_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

%

[ 本帖最后由 hy0kl 于 2009-5-6 09:06 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2009-05-05 17:10 |只看该作者
http://bbs.iusesvn.com/thread-801-1-1.html  
svn: Unrecognized URL scheme[已经解决,问题分析]

http://www.maycode.com/index.php/hotspot/35-linux/886-svn.html  svn: Unrecognized URL scheme 问题的解决

论坛徽章:
0
3 [报告]
发表于 2009-05-05 17:15 |只看该作者

回复 #2 axlrose 的帖子

阁下说的方法我 google 到了,但我安装 subversion 是用 ports 方法安装的,难道重装的时候再指定那个参数?

顺带把帖子粘过来:

http://bbs.iusesvn.com/thread-801-1-1.html

svn: Unrecognized URL scheme[已经解决,问题分析]
我在执行 SVN CO HTTP:// 的时候,出现了svn: Unrecognized URL scheme的错误:(

首先,大家可以在SVN 官方的FAQ的翻译中找到如下问题说明

Subversion 使用外掛系統來存取檔案庫. 目前有三個這樣的外掛: ra_local 可以存取本地檔案庫, ra_dav 可以透過 WebDAV 存取檔案庫, 而 ra_svn 可以透過 svnserve 伺服器來進行本地或遠端的存取. 當你想要在 Subversion 進行一個作業時, 用戶端會試著依 URL schema 動態載入一個外掛. file:// URL 會試著載入 ra_local, 而 http:// URL 會試著輸入 ra_dav, 以此類推.

你看到的這個錯誤, 表示動態連結器/載入器無法找到要載入的外掛. 這個發生的原因, 通常是因為你以共享程式庫的方式編譯 Subversion, 但是還沒有執行 make install 就要執行它. 另一個可能就是你執行了 make install, 但是程式庫把它存在動態連結器/載入器不認得的地方. 在 Linux 下, 你可以把那個程式庫目錄加進 /etc/ld.so.conf, 然後執行 ldconfig, 讓連結器/載入器可以找到程式庫. 如果你不想這麼作, 或是你沒有 root 存取權限, 你可以在 LD_LIBRARY_PATH 環境變數指定該程式庫目錄.

其次,我们可以执行一下SVN,看看ra_dav 是否加载

svn,版本 1.4.0 (r2122
编译于 Jan  5 2007,16:31:46

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

可使用以下的档案库存取 (RA) 模块:

* ra_svn : 使用svn网络协议访问档案库的模块。
  - handles 'svn' scheme
* ra_local : 访问本地磁盘的档案库模块。

发现我确实没有加载ra_dav 这个模块,不过按照上面的提示解决办法,我已经在 /etc/ld.so.conf 中增界了 /usr/local/svn/lib 这个目录,并且重新陨星了 ldconfg 但似乎这样还是加载不进去,,

接着,我们发现那个模块并没有加载,经过查看configure 的过程,我们发现我们需要安装一个NEON的插件

一定要下载 0.25.5 的,最新版本的不能用

然后把下载下来的东西,COPY 去 SVN的安装目录,这里记住一定要把NEON 的目录名字,从 neon.1.25.5 改成 neon 不然SVN还是不会认的。。

NEON 下载地址: http://www.webdav.org/neon/

最后,发现问题解决

svn, version 1.4.2 (r22196)
   compiled Jan 11 2007, 12:10:11

Copyright (C) 2000-2006 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_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
  - 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

[ 本帖最后由 hy0kl 于 2009-5-5 17:17 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2009-05-05 21:26 |只看该作者
这是偶台式机的 SVN 信息:
这一对比大概发现问题在哪了...

%svn --version
svn, version 1.6.0 (r36650)
   compiled Apr  6 2009, 23:33:25

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
  - handles 'https' 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

%

论坛徽章:
0
5 [报告]
发表于 2009-05-05 21:46 |只看该作者
/var/db/ports/subversion 目录下面的option文件

  1. # This file is auto-generated by 'make config'.
  2. # No user-servicable parts inside!
  3. # Options for subversion-1.6.1
  4. _OPTIONS_READ=subversion-1.6.1
  5. WITH_MOD_DAV_SVN=true
  6. WITH_APACHE2_APR=true
  7. WITHOUT_MOD_DONTDOTHAT=true
  8. WITH_NEON=true
  9. WITH_SERF=true
  10. WITH_SASL=true
  11. WITH_BDB=true
  12. WITH_ASVN=true
  13. WITHOUT_MAINTAINER_DEBUG=true
  14. WITH_SVNSERVE_WRAPPER=true
  15. WITHOUT_STATIC=true
  16. WITHOUT_BOOK=true
复制代码


你试一下再make config 配置一下呢,初步猜测为有的模块未编译

论坛徽章:
0
6 [报告]
发表于 2009-05-06 09:06 |只看该作者
问题解决了,是上次 ports  安装时没选上 NEON 的参数.

谢谢 axlrose 了.

现在的编译参数是:
===> The following configuration options are available for subversion-1.6.1:
     MOD_DAV_SVN=on "mod_dav_svn module for Apache 2.X"
     APACHE2_APR=on "Use APR from Apache 2.X"
     MOD_DONTDOTHAT=off "mod_dontdothat for Apache 2.X"
     NEON=on "WebDAV/Delta-V repo access module (neon)"
     SERF=off "WebDAV/Delta-V repo access module (serf)"
     SASL=off "SASL2 authorization support"
     BDB=on "db4 repository backend"
     ASVN=off "Build and install Archive SVN (asvn)"
     MAINTAINER_DEBUG=off "Build debug version"
     SVNSERVE_WRAPPER=on "Enable svnserve wrapper"
     STATIC=off "Build static version (no shared libs)"
     BOOK=off "Install the Subversion Book"
===> Use 'make config' to modify these settings


可以结帖了...
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP