Attempting a git add -i
resulted in the following error:
Can't locate Error.pm in @INC (@INC contains: /usr/share/perl/5.14.2
/etc/perl
/usr/local/lib/perl/5.14.2
/usr/local/share/perl/5.14.2
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.14
/usr/share/perl/5.14
/usr/local/lib/site_perl
.) at /usr/share/perl5/Git.pm line 101.
BEGIN failed--compilation aborted at /usr/share/perl5/Git.pm line 101.
Compilation failed in require at /usr/lib/git-core/git-add--interactive line 7.
BEGIN failed--compilation aborted at /usr/lib/git-core/git-add--interactive line 7.
I had no issues at all adding files manually or during any other git operation, either perl wasn't finding the right version of Error.pm
or it didn't come with my git package.
I haven't tried to do an interactive add in quite some time so I couldn't say when this started.
The accepted answer didn't work in my situation, however this command did:
sudo perl -MCPAN -e 'install Error'
From here. Running on CentOS release 5.9 (Final)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With