Opened 14 years ago
Closed 13 years ago
#28797 closed defect (invalid)
irssi @0.8.15_1+perl error running perl scripts
Reported by: | ae.retro@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.9.2 |
Keywords: | Cc: | ||
Port: | irssi |
Description
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.
Change History (2)
comment:1 Changed 14 years ago by ae.retro@…
comment:2 Changed 13 years ago by jmroot (Joshua Root)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
After further poking around, it appears user error is to blame for this one. I originally neglected to mention that, for whatever reason, I had set my perl_use_lib setting to "/opt/local/lib/perl5/5.12.3/" Moving my ~/.irssi/config to a different location and causing a new config to be generated, I found that my perl scripts now load successfully and that perl_use_lib is set to "/opt/local/lib/perl5/darwin/darwin-multi-2level/".
Please feel free to close this ticket.