git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: running git from non-standard location on Mac

From
JFJames French <james.french@naturalmotion.com>
Date
Feb 21, 2013, 11:48 UTC
Message-ID
<1CE1BECC0915A6448EAE5D7080EDA905052078CA55@oxexc1>
In-Reply-To
<20130221143525.726f06827351376b59a02f4b@domain007.com>
-----Original Message-----
From: Konstantin Khomoutov [mailto:flatworm@users.sourceforge.net] 
Sent: 21 February 2013 10:35
To: James French
Cc: git@vger.kernel.org
Subject: Re: running git from non-standard location on Mac

On Thu, 21 Feb 2013 09:48:36 +0000 James French <James.French@naturalmotion.com> wrote:

Show 10 quoted lines
> I wonder if someone could help me. I installed git on a Mac and then I 
> copied the install somewhere else (which I do want to do, trust me).  
> I'm now having trouble with git svn. I'm getting "Can't locate 
> Git/SVN.pm in @INC..."
> 
> I've added the bin folder to PATH. What else do I need to do? Do I 
> need to use -exec-path=/MyPathToGit/libexec/git-core? How do I change 
> the content of @INC?
> 
> Apologies if this is a dumb question, I'm not much of a unix man.
`git svn` is implemented in Perl (which is supposedly bundled with your Git package, but I'm not sure), and "SVN.pm" is a Perl module (a library written in Perl, ".pm" stands for "Perl Module").

@INC is an internal variable used by Perl to locate its modules. Its contents is partially inferred from the Perl's installation location and partially from the environment.

This [1] should help you get started with affecting @INC.
1. http://stackoverflow.com/a/2526809/720999
Thanks for the help guys. I got it working using --exec-path and PERL5LIB environment variable. But Matthieu is right, I should build it from source to do it properly.
Previous: Matthieu Moy
Message 4 of 4 in “running git from non-standard location on Mac”
  1. James FrenchFeb 21, 2013
  2. Konstantin KhomoutovFeb 21, 2013
  3. Matthieu MoyFeb 21, 2013
  4. James FrenchFeb 21, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.