Nov 10, 2008

Git

I was having a problem with my git add -i command, here is the error message:

Can't locate Error.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.8.8 /System/Lib....

After playing with it for a while, I finally find that when I use mac port to install the git-core, it failed to copy the Error.pm file to the working directory. Here is how to fix it:

$sudo cp /opt/local/lib/perl5/vendor_perl/5.8.8/Error.pm /opt/local/lib/perl5/site_perl/5.8.8/.

I am hoping this could save someone sometime to find the answer.

1 comment:

Mathieu Baudet said...

This helped me a lot indeed. Thanks!