HostOnNet Blog

git svn error Can’t locate SVN/Core.pm

When i try to clone a svn project to git, i got error

root@server70 [~/lxlabs/git]# git svn clone http://svn.lxcenter.org/svn/hypervm
Can't locate SVN/Core.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8 /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/libexec/git-core/git-svn line 39.
root@server70 [~/lxlabs/git]#

This error is fixed by installing subversion-perl

yum install subversion-perl

Posted in Git

  • Marco

    Thank you!!!

    For other’s that are running into problems like the following, see above:

    In file included from subversion/bindings/swig/perl/libsvn_swig_perl/swigutil_pl.c:38:

  • rve

    thx, I resolved it in Arch linux by
    pacman -S subversion perl

  • Maiko

    in Debian wheezy

    apt-get install libsvn-perl

    I think that it can happpen after the squeeze upgrade.