{"thread":{"id":"37220","subject":"git add -i failed in 2.0.3","startedAt":"2014-07-27T15:26:17Z","lastAt":"2014-07-29T08:06:58Z","messageCount":4,"participants":["Guang Chen","Torsten Bögershausen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"246762","messageId":"DB19F40E-912E-42F0-AB63-838BADAF77FB@gmail.com","threadId":"37220","inReplyTo":null,"subject":"git add -i failed in 2.0.3","fromName":"Guang Chen","fromEmail":"cgcgbcbc@gmail.com","sentAt":"2014-07-27T15:26:17Z","receivedAt":"2014-07-27T15:26:17Z","isPatch":false,"sender":{"key":"cgcgbcbc@gmail.com","avatar":null},"body":"\nI use brew upgrade git to this version on OSX. And when I use git add -i, it says:\n\nCan'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.\nBEGIN failed--compilation aborted at /usr/local/Cellar/git/2.0.3/libexec/git-core/git-add--interactive line 7.\n"},{"id":"246873","messageId":"53D74131.40005@web.de","threadId":"37220","inReplyTo":"DB19F40E-912E-42F0-AB63-838BADAF77FB@gmail.com","subject":"Re: git add -i failed in 2.0.3","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2014-07-29T06:37:37Z","receivedAt":"2014-07-29T06:37:37Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On 07/27/2014 05:26 PM, Guang Chen wrote:\n> I use brew upgrade git to this version on OSX. And when I use git add -i, it says:\nWhich version did you use before?\nWas it installed with brew as well ?\n>\n> 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.\n> BEGIN failed--compilation aborted at /usr/local/Cellar/git/2.0.3/libexec/git-core/git-add--interactive line 7.\nDo you have Git.pm on your disc, somewhere under /usr/local/Cellar/git ?\n\nWhich perl do you have, (may be more than 1?)\nI tend to have different perl installations under Mac OS, whch needs\ntweeking in the PATH, to have the \"right one\" in the PATH before e.g. the\none that comes with Mac OS.\n(Or write a wrapper script that sets up the PATH and then calls git)\n\nWhat does \"type perl\" in a command window say?\n"},{"id":"246875","messageId":"9A4F68F4-6162-462C-92E4-BD80D1BC1A75@gmail.com","threadId":"37220","inReplyTo":"53D74131.40005@web.de","subject":"Re: git add -i failed in 2.0.3","fromName":"Guang Chen","fromEmail":"cgcgbcbc@gmail.com","sentAt":"2014-07-29T06:55:29Z","receivedAt":"2014-07-29T06:55:29Z","isPatch":false,"sender":{"key":"cgcgbcbc@gmail.com","avatar":null},"body":"I used 1.9.2 before, it was installed with brew as well.\nI didn’t found Git.pm under /usr/local/Cellar/git/, /usr/local/Cellar/git/2.0.3/, and I looked at /usr/local/Cellar/git/1.9.2/, there isn’t a Git.pm either.\n\ntype perl says:\nperl is /usr/bin/perl\n\nAdditionally, perl --version says:\n\nThis is perl 5, version 16, subversion 2 (v5.16.2) built for darwin-thread-multi-2level\n(with 3 registered patches, see perl -V for more detail) \n\nOn Jul 29, 2014, at 14:37, Torsten Bögershausen <tboegi@web.de> wrote:\n\n> On 07/27/2014 05:26 PM, Guang Chen wrote:\n>> I use brew upgrade git to this version on OSX. And when I use git add -i, it says:\n> Which version did you use before?\n> Was it installed with brew as well ?\n>> \n>> 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.\n>> BEGIN failed--compilation aborted at /usr/local/Cellar/git/2.0.3/libexec/git-core/git-add--interactive line 7.\n> Do you have Git.pm on your disc, somewhere under /usr/local/Cellar/git ?\n> \n> Which perl do you have, (may be more than 1?)\n> I tend to have different perl installations under Mac OS, whch needs\n> tweeking in the PATH, to have the \"right one\" in the PATH before e.g. the\n> one that comes with Mac OS.\n> (Or write a wrapper script that sets up the PATH and then calls git)\n> \n> What does \"type perl\" in a command window say?\n> \n"},{"id":"246881","messageId":"53D75622.8070105@web.de","threadId":"37220","inReplyTo":"9A4F68F4-6162-462C-92E4-BD80D1BC1A75@gmail.com","subject":"Re: git add -i failed in 2.0.3","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2014-07-29T08:06:58Z","receivedAt":"2014-07-29T08:06:58Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"[please avoid top-posting]\nOn 07/29/2014 08:55 AM, Guang Chen wrote:\n> I used 1.9.2 before, it was installed with brew as well.\n> I didn’t found Git.pm under /usr/local/Cellar/git/, /usr/local/Cellar/git/2.0.3/, and I looked at /usr/local/Cellar/git/1.9.2/, there isn’t a Git.pm either.\n>\n> type perl says:\n> perl is /usr/bin/perl\n>\n> Additionally, perl --version says:\n>\n> This is perl 5, version 16, subversion 2 (v5.16.2) built for darwin-thread-multi-2level\n> (with 3 registered patches, see perl -V for more detail)\n>\n> On Jul 29, 2014, at 14:37, Torsten Bögershausen <tboegi@web.de> wrote:\n>\n>> On 07/27/2014 05:26 PM, Guang Chen wrote:\n>>> I use brew upgrade git to this version on OSX. And when I use git add -i, it says:\n>> Which version did you use before?\n>> Was it installed with brew as well ?\n>>> 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.\n>>> BEGIN failed--compilation aborted at /usr/local/Cellar/git/2.0.3/libexec/git-core/git-add--interactive line 7.\n>> Do you have Git.pm on your disc, somewhere under /usr/local/Cellar/git ?\n>>\n>> Which perl do you have, (may be more than 1?)\n>> I tend to have different perl installations under Mac OS, whch needs\n>> tweeking in the PATH, to have the \"right one\" in the PATH before e.g. the\n>> one that comes with Mac OS.\n>> (Or write a wrapper script that sets up the PATH and then calls git)\n>>\n>> What does \"type perl\" in a command window say?\n>>\n\nSo git add -i needs perl (which is there) and Git.pm (which isn't there)\nThere doesn't seem to be a Git.pm at all on your disc ?\nI haven't used brew myself, I use to clone git from\ngit://git.kernel.org/pub/scm/git/git.git,\ncheckout the version I want,\nand run \"make install\" which installs git under $HOME/bin,\nand Git.pm under /Users/tb/share/perl/5.14.2/Git.pm\nYou can try that, clone into a directory, run \"make -k\", and see if \nthere is a Git.pm ?\n"}]}