[MacPorts] #28797: irssi @0.8.15_1+perl error running perl scripts

MacPorts noreply at macports.org
Tue Mar 15 15:25:04 PDT 2011


#28797: irssi @0.8.15_1+perl error running perl scripts
--------------------------------+-------------------------------------------
 Reporter:  ae.retro@…          |       Owner:  macports-tickets@…                   
     Type:  defect              |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  1.9.2                                
 Keywords:                      |        Port:  irssi                                
--------------------------------+-------------------------------------------
 Attempting to load any perl script from within a fresh, successful port
 install of irssi-0.8.15 results in the following error:

 {{{
 BEGIN failed--compilation aborted at (eval 18) line 1.

 -!- Irssi: Error in script sysinfo277_irssi:
 Can't locate Irssi.pm in @INC (@INC contains: /Users/ech/.irssi/scripts
 /opt/local/share/irssi/scripts
           /opt/local/lib/perl5/5.12.3//darwin-multi-2level
 /opt/local/lib/perl5/5.12.3/ /opt/local/lib/perl5/site_perl/5.12.3/darwin-
 multi-2level
           /opt/local/lib/perl5/site_perl/5.12.3
 /opt/local/lib/perl5/vendor_perl/5.12.3/darwin-multi-2level
 /opt/local/lib/perl5/vendor_perl/5.12.3
           /opt/local/lib/perl5/5.12.3/darwin-multi-2level
 /opt/local/lib/perl5/5.12.3 /opt/local/lib/perl5/site_perl
 /opt/local/lib/perl5/vendor_perl .) at
           (eval 19) line 1.
 }}}

 After discovering that the install places that file, along with a handful
 of others, in the following location:

 {{{
   /opt/local/lib/perl5/darwin/darwin-multi-2level/Irssi.pm
 }}}

 I was able to work around this error by adding the appropriate path to the
 PERL5LIB environment variable:

 {{{
 export PERL5LIB="/opt/local/lib/perl5/darwin/darwin-multi-2level/"
 }}}

 Once irssi is run after setting this, it is able to load and run perl
 scripts without further complaint.

 I have not checked if this also affects the irssi-devel port.

 For reference, I am using xcode 3.2.6 and these are my machine's
 particulars:
 {{{
 $ uname -a
 Darwin rmc.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17
 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386 i386 MacBookPro5,5 Darwin
 }}}

 Thanks to vermouth, tmr, roxton, and others on freenode #irssi for helping
 troubleshoot this.

-- 
Ticket URL: <https://trac.macports.org/ticket/28797>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list