Error from Perl when running git add -p
Andrew DeFaria
Andrew@DeFaria.com
Thu Mar 12 11:12:00 GMT 2015
On 3/11/2015 4:20 PM, James Darnley wrote:
> (Now I need a different message and to remember to uncheck encryption.)
>
> Earlier today I ran setup.exe to update Cygwin and packages. Now when I
> try to use git add -p (one of its iterative modes) I get an error from
> Perl (I assume) that it cannot find Error.pm in @INC
>
> (I should really learn to not update things)
>
> Here's the full output:
>> $ git add -p
>> Can't locate Error.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.14 /usr/lib/perl5/site_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/vendor_perl/5.14/i686-cygwin-threads-64int /usr/lib/perl5/vendor_perl/5.14 /usr/lib/perl5/5.14/i686-cygwin-threads-64int /usr/lib/perl5/5.14 .) at /usr/lib/perl5/vendor_perl/5.14/Git.pm line 103.
>> BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.14/Git.pm line 103.
>> Compilation failed in require at /usr/libexec/git-core/git-add--interactive line 7.
>> BEGIN failed--compilation aborted at /usr/libexec/git-core/git-add--interactive line 7.
>
> I have seen large changes regarding Perl on the cygwin-announce list so
> perhaps it was split off into some other package. I searched for error
> in setup.exe and saw that I do have perl-Error installed.
>
> Can anyone help me try to solve this?
Perl's debugger is your friend! With it you can "use <module>" then do
"f <module>" and find exactly where Perl found it. For me it was:
$ perl -de 0 -MError
Loading DB routines from perl5db.pl version 1.33
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more help.
main::(-e:1): 0
DB<1> f Error
Choosing /usr/lib/perl5/vendor_perl/5.14/Error.pm matching `Error':
1 # Error.pm
--
Andrew DeFaria
http://defaria.com
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list