running git from non-standard location on Mac

3 messages, 2 authors, 2016-06-15 · open the first message on its own page

running git from non-standard location on Mac

From: James French <hidden>
Date: 2016-06-15 22:56:13

Hi,

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.

Cheers,
James

Re: running git from non-standard location on Mac

From: Konstantin Khomoutov <hidden>
Date: 2016-06-15 22:56:13

On Thu, 21 Feb 2013 09:48:36 +0000
James French [off-list ref] wrote:
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

RE: running git from non-standard location on Mac

From: James French <hidden>
Date: 2016-06-15 22:56:13


-----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 [off-list ref] wrote:
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help