{"thread":{"id":"32956","subject":"running git from non-standard location on Mac","startedAt":"2013-02-21T09:48:36Z","lastAt":"2013-02-21T11:48:39Z","messageCount":4,"participants":["James French","Konstantin Khomoutov","Matthieu Moy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"209962","messageId":"1CE1BECC0915A6448EAE5D7080EDA905052078C95E@oxexc1","threadId":"32956","inReplyTo":null,"subject":"running git from non-standard location on Mac","fromName":"James French","fromEmail":"james.french@naturalmotion.com","sentAt":"2013-02-21T09:48:36Z","receivedAt":"2013-02-21T09:48:36Z","isPatch":false,"sender":{"key":"james.french@naturalmotion.com","avatar":null},"body":"Hi,\n\nI 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...\"\n\nI'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?\n\nApologies if this is a dumb question, I'm not much of a unix man.\n\nCheers,\nJames\n"},{"id":"209964","messageId":"20130221143525.726f06827351376b59a02f4b@domain007.com","threadId":"32956","inReplyTo":"1CE1BECC0915A6448EAE5D7080EDA905052078C95E@oxexc1","subject":"Re: running git from non-standard location on Mac","fromName":"Konstantin Khomoutov","fromEmail":"flatworm@users.sourceforge.net","sentAt":"2013-02-21T10:35:25Z","receivedAt":"2013-02-21T10:35:25Z","isPatch":false,"sender":{"key":"flatworm@users.sourceforge.net","avatar":null},"body":"On Thu, 21 Feb 2013 09:48:36 +0000\nJames French <James.French@naturalmotion.com> wrote:\n\n> I wonder if someone could help me. I installed git on a Mac and then\n> I copied the install somewhere else (which I do want to do, trust\n> me).  I'm now having trouble with git svn. I'm getting \"Can't locate\n> Git/SVN.pm in @INC...\"\n> \n> I've added the bin folder to PATH. What else do I need to do? Do I\n> need to use -exec-path=/MyPathToGit/libexec/git-core? How do I change\n> the content of @INC?\n> \n> Apologies if this is a dumb question, I'm not much of a unix man.\n\n`git svn` is implemented in Perl (which is supposedly bundled with your\nGit package, but I'm not sure), and \"SVN.pm\" is a Perl module (a\nlibrary written in Perl, \".pm\" stands for \"Perl Module\").\n\n@INC is an internal variable used by Perl to locate its modules.\nIts contents is partially inferred from the Perl's installation\nlocation and partially from the environment.\n\nThis [1] should help you get started with affecting @INC.\n\n1. http://stackoverflow.com/a/2526809/720999\n"},{"id":"209965","messageId":"vpq8v6ix7jc.fsf@grenoble-inp.fr","threadId":"32956","inReplyTo":"20130221143525.726f06827351376b59a02f4b@domain007.com","subject":"Re: running git from non-standard location on Mac","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2013-02-21T10:53:11Z","receivedAt":"2013-02-21T10:53:11Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Konstantin Khomoutov <flatworm@users.sourceforge.net> writes:\n\n> This [1] should help you get started with affecting @INC.\n\nIn the particular case of Git, the Makefile hardcodes the path to the\nGit library. The script git-svn in Git's exec-path should start with:\n\nuse lib (split(/:/, $ENV{GITPERLLIB} || \"/some/hardcoded/path/to/perl/5.10.1\"));\n\nSetting the $GITPERLLIB environment variable or editing the script to\nlet the hardcoded path point to the place where the Git.pm file is\nshould do it.\n\n\nBut I still have to wonder why you didn't build Git with the right paths\nin the first place.\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"209966","messageId":"1CE1BECC0915A6448EAE5D7080EDA905052078CA55@oxexc1","threadId":"32956","inReplyTo":"20130221143525.726f06827351376b59a02f4b@domain007.com","subject":"RE: running git from non-standard location on Mac","fromName":"James French","fromEmail":"james.french@naturalmotion.com","sentAt":"2013-02-21T11:48:39Z","receivedAt":"2013-02-21T11:48:39Z","isPatch":false,"sender":{"key":"james.french@naturalmotion.com","avatar":null},"body":"\n\n-----Original Message-----\nFrom: Konstantin Khomoutov [mailto:flatworm@users.sourceforge.net] \nSent: 21 February 2013 10:35\nTo: James French\nCc: git@vger.kernel.org\nSubject: Re: running git from non-standard location on Mac\n\nOn Thu, 21 Feb 2013 09:48:36 +0000\nJames French <James.French@naturalmotion.com> wrote:\n\n> I wonder if someone could help me. I installed git on a Mac and then I \n> copied the install somewhere else (which I do want to do, trust me).  \n> I'm now having trouble with git svn. I'm getting \"Can't locate \n> Git/SVN.pm in @INC...\"\n> \n> I've added the bin folder to PATH. What else do I need to do? Do I \n> need to use -exec-path=/MyPathToGit/libexec/git-core? How do I change \n> the content of @INC?\n> \n> Apologies if this is a dumb question, I'm not much of a unix man.\n\n`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\").\n\n@INC is an internal variable used by Perl to locate its modules.\nIts contents is partially inferred from the Perl's installation location and partially from the environment.\n\nThis [1] should help you get started with affecting @INC.\n\n1. http://stackoverflow.com/a/2526809/720999\n\n\n\nThanks 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.\n"}]}