locked_user sundialsvc4 has asked for the wisdom of the Perl Monks concerning the following question:

After using CPAN (on OS/X) to install Probe::Perl, it’s not there.   It appears to have installed into lib/perl5/Probe/Perl.pm (in a directory on the PERL5LIB path), but it seems that nothing in that directory can be USEd.

Okay, so I am sure I futzed-up a CPAN directive someplace.   But, which one?   In other words, what is going to prompt what is looked-for in a library path?

(My brain is empty|full today ... I had to stomach a really rotten Apple for the last three weeks.)   ... but that’s another story ...

Command example:   PERL5LIB=~/Sites/cpan_libraries perl -e 'use IPC::Run3;' (or anything else)
gives:   Can't locate IPC/Run3.pm in @INC (@INC contains: /Users/hi_mom/Sites/cpan_libraries /Library/Perl/Updates/5.10.0 ...

OS/X Snow Leopard; Perl 5.10.0.

Replies are listed 'Best First'.
Re: Installed "xx:yy" (on OS/X) but it's not there
by ikegami (Patriarch) on Apr 15, 2011 at 17:52 UTC

    It appears to have installed into lib/perl5/Probe/Perl.pm (in a directory on the PERL5LIB path), but it seems that nothing in that directory can be USEd.

    If the file is located at /foo/lib/perl5/Probe/Perl.pm, You need to add /foo/lib/perl5 to PERL5LIB. Adding /foo is useless as far as finding this module is concerned.

Re: Installed "xx:yy" (on OS/X) but it's not there
by locked_user sundialsvc4 (Abbot) on Apr 15, 2011 at 18:05 UTC

    (Sorry about being anonymous.   Maybe PerlMonks is having a bad day too.)

    You would think that the name of the environment variable ... woulda ... bena ... widdle ... biddy ... cloo...   :-/

    Caution:   Do not put Perl in motion without brain in gear.

Re: Installed "xx:yy" (on OS/X) but it's not there
by Anonymous Monk on Apr 15, 2011 at 20:48 UTC
    If you are using
    set PERL_MB_OPT=--install_base /home/user/stuff set PERL_MM_OPT=INSTALL_BASE=/home/user/stuff
    then you need
    set PERL5LIB=/home/user/stuff/lib/perl5
Re: Installed "xx:yy" (on OS/X) but it's not there
by Anonymous Monk on Apr 15, 2011 at 18:03 UTC

    Blink...

    Nev - er mind - d - d ...

    (Man, that Apple was really rotten.   My mind is going... I can feel it, Dave ... I can feel it.)

    (As noted, the PERL5LIB setting is needed and it is incorrect.)