简体   繁体   English

SVN 1.6-无效的URL

[英]SVN 1.6 - not a valid URL

Recently I uninstalled SVN 1.7 from mac osx and installed SVN 1.6.23 following the instructions on this page: How do I uninstall subversion on OS X 最近,我按照此页面上的说明从mac osx卸载了SVN 1.7并安装了SVN 1.6.23: 如何在OS X上卸载subversion

'svn --version' runs well and says 1.6.23 is installed. 'svn --version'运行良好,表示已安装1.6.23。

but when I run: 但是当我跑步时:

svn info http://www.domainname.com/svn/path_to_folder

it gives me following error: 它给了我以下错误:

http://www.domainname.com/svn/path_to_folder:  (Not a valid URL)
svn: A problem occurred; see other errors for details

The command works fine on another mac which had SVN 1.6.18 preinstalled. 该命令在另一台预先安装了SVN 1.6.18的Mac上运行良好。 So there is no problem with the server or the commands. 因此,服务器或命令没有问题。 Does anyone know what it could be? 有谁知道这可能是什么?

You don't have any repository access module (RA) that can communicate with repositories using the HTTP protocol. 您没有任何可以使用HTTP协议与存储库进行通信的存储库访问模块(RA)。 If you only have ra_svn and ra_local you can only use svn: or file: URLs: 如果只有ra_svnra_local ,则只能使用svn:file: URL:

* 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.
  - 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

You've apparently compiled your own binaries. 您显然已经编译了自己的二进制文件。 The INSTALL file mentions this: INSTALL文件提到了这一点:

b. Serf library 0.3.0 or newer ( http://code.google.com/p/serf/ ) Serf库0.3.0或更高版本( http://code.google.com/p/serf/

serf is a library for HTTP and WebDAV which is an alternative to Neon for accessing Subversion repositories over http:// and https:// URLs. serf是HTTP和WebDAV的库,它是Neon的替代方案,可以通过http://和https:// URL访问Subversion存储库。 serf is designed as an asynchronous library which can take advantage of HTTP pipelining, so ra_serf may be more efficient than ra_neon and better for HTTP proxy caches. serf被设计为可以利用HTTP流水线处理的异步库,因此ra_serf可能比ra_neon更有效,并且对于HTTP代理缓存更佳。 The serf library can be found at: 可以在以下位置找到农奴库:

  http://code.google.com/p/serf/ 

In order to use ra_serf instead of ra_neon, you must install serf, and run Subversion's ./configure with the argument --with-serf. 为了使用ra_serf代替ra_neon,您必须安装serf,并使用--with-serf参数运行Subversion的./configure。 (To only use ra_serf and not ra_neon, you should also use --without-neon.) If serf is installed in a non-standard place, you should use (要仅使用ra_serf而不是ra_neon,还应该使用--without-neon。)如果serf安装在非标准位置,则应使用

  --with-serf=/path/to/serf/install 

instead. 代替。 If you build with both ra_neon and ra_serf, Subversion will use ra_neon by default; 如果同时使用ra_neon和ra_serf进行构建,则Subversion默认情况下将使用ra_neon。 add "http-library = serf" to the [global] section of your ~/.subversion/servers file to use ra_serf instead. 在〜/ .subversion / servers文件的[global]部分中添加“ http-library = serf”,以改用ra_serf。

For more information on serf and Subversion's ra_serf, see the file subversion/libsvn_ra_serf/README. 有关serf和Subversion的ra_serf的更多信息,请参见文件subversion / libsvn_ra_serf / README。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM