All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: Andrew Keller <andrew@kellerfarm.com>
Cc: Git List <git@vger.kernel.org>
Subject: Re: Installing git-svn on Linux without root
Date: Sat, 04 Feb 2012 03:32:18 -0800 (PST)	[thread overview]
Message-ID: <m3mx8yltq9.fsf@localhost.localdomain> (raw)
In-Reply-To: <35EF289A-1408-4B70-A25F-8194A8884A4D@kellerfarm.com>

Andrew Keller <andrew@kellerfarm.com> writes:

> I am attempting to install git, including the ability to access
> subversion repositories on a Linux machine.  I do not have root
> access on the machine, so I prepended my PATH with a folder in my
> home directory.
> 
> Installing Git worked just fine, but when I try to clone a
> subversion repository, I get:
> 
> $ git svn clone file:///svn --prefix=svn/ --no-metadata --trunk=dba/trunk --branches=dba/branches --tags=dba/tags dba
> Initialized empty Git repository in /home/kelleran/Documents/togit/converted/dba/.git/
> Can't locate SVN/Core.pm in @INC (@INC contains: /homedirs/kelleran/local/lib/perl5/site_perl/5.8.8 /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /homedirs/kelleran/local/libexec/git-core/git-svn line 41.
> 
> Google suggested that the above error could be due to missing perl
> bindings.  So, I installed swig, and followed the instructions for
> installing the perl bindings:
> http://svn.apache.org/repos/asf/subversion/trunk/subversion/bindings/swig/INSTALL
> (I used the alternate build steps, since I had to set the prefix).
> 
> Unfortunately, I still get exactly the same error.  So, I looked to
> see whether or not the missing library was installed:
> 
> $ find ~/local -iname Core.pm
> /homedirs/kelleran/local/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/SVN/Core.pm
> 
> So, the module does exist, but not in a location included by @INC.

>From the above error message it looks like

  /homedirs/kelleran/local/lib/perl5/site_perl/5.8.8

is in @INC, but

  /homedirs/kelleran/local/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/

is not.  Strange.

Do you use local::lib?

> This sounds like a simple misconfiguration during the installation
> on my part, but after reading the manuals and searching the web, I
> was unable to find a parameter that gets git to be able to see the
> perl bindings.

Add missing directory to PATH-like PERL5LIB environment variable
before running git-svn.
 
-- 
Jakub Narebski

  reply	other threads:[~2012-02-04 11:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-04  2:10 Installing git-svn on Linux without root Andrew Keller
2012-02-04 11:32 ` Jakub Narebski [this message]
     [not found]   ` <AD682311-372A-4AED-B575-E77EB862ABD8@kellerfarm.com>
2012-02-05 10:11     ` Jakub Narebski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3mx8yltq9.fsf@localhost.localdomain \
    --to=jnareb@gmail.com \
    --cc=andrew@kellerfarm.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.