传递给RA层的错误URL:无法识别的URL方案

时间:2018-05-15 07:25:03

标签: git perl svn git-svn

我在RHEL 7.3 x86_64 VM上安装了subversion 1.9。以下是svn版本的输出。

[root@<hostname> ~]# svn --version
svn, version 1.9.7 (r1800392)
   compiled Aug 10 2017, 21:36:06 on x86_64-redhat-linux-gnu

Copyright (C) 2017 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.
  - using serf 1.3.8 (compiled with 1.3.7)
  - handles 'http' scheme
  - handles 'https' scheme

The following authentication credential caches are available:

* Plaintext cache in /root/.subversion
* Gnome Keyring
* GPG-Agent

我安装了git 2.9。下面是git版本的输出。

[root@<hostname> ~]# git --version
git version 2.9.5

导致以下错误的任何git svn操作。

[root@<hostname> codebase]# git svn fetch
Bad URL passed to RA layer: Unrecognized URL scheme for 'http://<IP>:<PORT>/svn/trunk/Automation/UCM' at /usr/local/git/share/perl5/Git/SVN.pm line 144.

以下是perl版本。

[root@<hostname> ~]# perl --version

This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux

Copyright 1987-2013, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

使用命令cpan SVN :: core安装了Alien SVN,并且还安装了subversion perl二进制文件。

用Google搜索,但无法让它发挥作用。试过提到here的解决方案,但没有运气。 有人可以告诉我如何解决这个问题吗?

1 个答案:

答案 0 :(得分:1)

仅当找到cpan SVN :: Core安装时,才使用SERF库(用于HTTP方案处理)。 尝试安装SERF-dev库:

$ sudo apt-get install libserf-dev

然后重新安装(重新生成)SVN :: Core:

$ cpan
...
cpan[1]> install SVN::Core

您应该看到以下configure输出:

configure: serf library configuration via pkg-config
checking for serf-2 library... no
checking for serf-1 library... yes
checking serf library version... 1.3.8
checking serf version is suitable... yes
checking was serf enabled... yes
相关问题