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

Re: running git from non-standard location on Mac

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Feb 21, 2013, 10:53 UTC
Message-ID
<vpq8v6ix7jc.fsf@grenoble-inp.fr>
In-Reply-To
<20130221143525.726f06827351376b59a02f4b@domain007.com>
Konstantin Khomoutov <flatworm@users.sourceforge.net> writes:
> This [1] should help you get started with affecting @INC.

In the particular case of Git, the Makefile hardcodes the path to the Git library. The script git-svn in Git's exec-path should start with:

use lib (split(/:/, $ENV{GITPERLLIB} || "/some/hardcoded/path/to/perl/5.10.1"));

Setting the $GITPERLLIB environment variable or editing the script to let the hardcoded path point to the place where the Git.pm file is should do it.

But I still have to wonder why you didn't build Git with the right paths in the first place.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Konstantin KhomoutovNext: James French
Message 3 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.