Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Package-Stash CPAN distribution.

Report information
The Basics
Id: 74025
Status: rejected
Priority: 0/
Queue: Package-Stash

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.33
Fixed in: (no value)



Subject: Package::Stash::XS is not a module name at Package/Stash.pm line 40

I'm not really sure what is going on here.

 

 perl -MPackage::Stash::XS -e 1
 

^ fine

perl -MPackage::Stash -e 1
Package::Stash::XS is not a module name at /home/kent/perl5_local/lib/perl5/Package/Stash.pm line 40.
BEGIN failed--compilation aborted at /home/kent/perl5_local/lib/perl5/Package/Stash.pm line 46.
Compilation failed in require.
BEGIN failed--compilation aborted.
 

What.

 

$ perl -MPackage::Stash::XS -e 'Package::Stash::XS->new()'
Usage: Package::Stash::XS::new(class, package_name) at -e line 1.

$ perl -MPackage::Stash::XS -e 'Package::Stash::XS->new( "Package::Stash::XS" )'
Package::Stash::XS is not a module name at -e line 1.
 

Umm.

 

https://gist.github.com/1619127   # perl -V 

Ugh. Further probing reveals its a nasty local::lib interaction.

 

I have a local::lib for use when I'm /not/ using a perlbrewed perl , and a series of perlbrew libs. ( Via perlbrew lib create )

( and I only do this because I can't use system perl with "perlbrew lib create" : (  ) 

eval $(                                                                                                                                                                                                                                        
  perl -Mlocal::lib="${HOME}/perl5_local"                                                                                                                                                                                                      
);                                                                                                                                                                                                                                             
source ~/perl5/perlbrew/etc/bashrc

 

Was my combination, which seems to have lead to bizzare and surprising side effects.  ( Like List::Utils segfaulting ) 

So I guess its a problem really with perlbrew itself, but I'll leave this up to your discretion if you think I'm wrong or want more information to make better diagnostics.

This doesn't seem to happen when things are installed properly, so I think I'll just close this.