git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Torsten Bögershausen" <tboegi@web.de>
To: Guang Chen <cgcgbcbc@gmail.com>, git@vger.kernel.org
Subject: Re: git add -i failed in 2.0.3
Date: Tue, 29 Jul 2014 08:37:37 +0200	[thread overview]
Message-ID: <53D74131.40005@web.de> (raw)
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?

  reply	other threads:[~2014-07-29  6:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-27 15:26 git add -i failed in 2.0.3 Guang Chen
2014-07-29  6:37 ` Torsten Bögershausen [this message]
2014-07-29  6:55   ` Guang Chen
2014-07-29  8:06     ` Torsten Bögershausen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53D74131.40005@web.de \
    --to=tboegi@web.de \
    --cc=cgcgbcbc@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).