Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git (1.8.1.2) error when adding interactively

Tags:

git

linux

perl

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.

like image 927
SW. Avatar asked May 30 '13 22:05

SW.


1 Answers

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)

like image 126
paimoe Avatar answered Sep 20 '22 23:09

paimoe