2007fld has asked for the wisdom of the Perl Monks concerning the following question:

I have some CPAN modules installed under /mydir/perl/lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi

But when I added /mydir/perl/lib/perl5/site_perl/5.10.0 in $PERL5LIB, @INC automatically looks for /mydir/perl/lib/perl5/site_perl/5.10.0/x86_64-linux, thus the modules are not found.

What caused the @INC to look for "x86_64-linux" instaed of "x86_64-linux-thread-multi" ?

Thanks a lot!

  • Comment on why @INC looks for lib/5.10.0/x86_64-linux, instead of lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi

Replies are listed 'Best First'.
Re: why @INC looks for lib/5.10.0/x86_64-linux, instead of lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
by ikegami (Patriarch) on Dec 29, 2010 at 22:18 UTC
    Your Perl isn't threaded. It's not gonna look modules built using a threaded Perl since they're not compatible.
      How to get the threaded perl 5.10.0? I only found one perl5.10.0 that is not threaded...

        Try here.

        Beware the duplicitous sign-up page.

        When will they learn that trying to trick people into "signing up" for promotional material does them more harm than good?

        I, for one, am far more likely to respond to a simple: "If you would agree to signing up to receive low-volume, no-obligation, promotional emails, it could greatly enhance our ability to continue producing our 'community edition' Perl".

        In case of doubt, build one yourself with the -Dusethreads configuration option, i.e.

        $ ./Configure -des -Dusethreads -Dprefix=... $ make test

        after having downloaded and unpacked the Perl sources. See also INSTALL.

        Or you could properly install the modules. Seeing as you should do that either way, recompiling your Perl doesn't help you any.
Re: why @INC looks for lib/5.10.0/x86_64-linux, instead of lib/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
by gsiems (Deacon) on Dec 30, 2010 at 01:46 UTC

    Is your perl compiled for multi-threaded? If not then maybe this could help.