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

Re: git add -i failed in 2.0.3

From
Torsten Bögershausen <tboegi@web.de>
Date
Jul 29, 2014, 06:37 UTC
Message-ID
<53D74131.40005@web.de>
In-Reply-To
<DB19F40E-912E-42F0-AB63-838BADAF77FB@gmail.com>
On 07/27/2014 05:26 PM, Guang Chen wrote:
> I use brew upgrade git to this version on OSX. And when I use git add -i, it says:

Which version did you use before? Was it installed with brew as well ?

>
> Can't locate Git.pm in @INC (@INC contains: @@@/git/2.0.3/lib/perl5/site_perl /Applications/Xcode.app/Contents/Developer/Library/Perl/5.16/darwin-thread-multi-2level /Library/Developer/CommandLineTools/Library/Perl/5.16/darwin-thread-multi-2level /Users/guangchen/.opam/system/lib/perl5/darwin-thread-multi-2level /Users/guangchen/.opam/system/lib/perl5 /Library/Perl/5.16/darwin-thread-multi-2level /Library/Perl/5.16 /Network/Library/Perl/5.16/darwin-thread-multi-2level /Network/Library/Perl/5.16 /Library/Perl/Updates/5.16.2 /System/Library/Perl/5.16/darwin-thread-multi-2level /System/Library/Perl/5.16 /System/Library/Perl/Extras/5.16/darwin-thread-multi-2level /System/Library/Perl/Extras/5.16 .) at /usr/local/Cellar/git/2.0.3/libexec/git-core/git-add--interactive line 7.
> BEGIN failed--compilation aborted at /usr/local/Cellar/git/2.0.3/libexec/git-core/git-add--interactive line 7.
Do you have Git.pm on your disc, somewhere under /usr/local/Cellar/git ?

Which perl do you have, (may be more than 1?) I tend to have different perl installations under Mac OS, whch needs tweeking in the PATH, to have the "right one" in the PATH before e.g. the one that comes with Mac OS. (Or write a wrapper script that sets up the PATH and then calls git)

What does "type perl" in a command window say?
Previous: Guang ChenNext: Guang Chen
Message 2 of 4 in “git add -i failed in 2.0.3”
  1. Guang ChenJul 27, 2014
  2. Torsten BögershausenJul 29, 2014
  3. Guang ChenJul 29, 2014
  4. Torsten BögershausenJul 29, 2014

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.