X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; q=dns; s=default; b=u4WjOokVCXFcUv0XNBsILyPFnW4+e+ Hq/d7088mlVNN1x3IF3wtLrC3iyWpTzqMPZqNniKyc1s4BawdvNqDGBAPpHD139J gPN9ZpGCf0xBO4LnE1kUfQwqdk6qy6BEq31eHo4LCdBNT223V0+meOcCZkDAYrAo 8diEfBvTvBIpE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=default; bh=yZ7YvgMa+JKHmllJfLBKzpXBvws=; b=JHBd fc/A579pjRQAEFY2Hc64TeJAI3Y3wbQLkRXCo0ngUcs1KO28y0K/vuUPmHl8cvLF TE8WkA5fH79bJdo/2UE6rKQkc2AeIu8PLq1JKKpQRh2P4kJG/8dVyBJY35Yi0jFn 3YYwA6EgC8P0MUr4Q5HTQ/Yae8+KnCACyQlsENA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_00,FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: plane.gmane.org To: cygwin AT cygwin DOT com From: Andrew DeFaria Subject: Re: Error from Perl when running git add -p Date: Wed, 11 Mar 2015 17:17:22 -0700 Lines: 41 Message-ID: References: <5500CDA7 DOT 9030600 AT gmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 In-Reply-To: <5500CDA7.9030600@gmail.com> X-IsSubscribed: yes 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 " then do "f " 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