Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: cpan installing modules outside of the @INC path

by macrobat (Beadle)
on Apr 29, 2007 at 00:09 UTC ( #612598=note: print w/replies, xml ) Need Help??


in reply to Re: cpan installing modules outside of the @INC path
in thread cpan installing modules outside of the @INC path

Alas, that key is empty.

Still, if I install from the cpan shell, it goes somewhere outside my @INC path. If I then go into the ~/.cpan/build/Some-Module directory and do a

perl Makefile.PL make make test make install
--it goes to the right place.

Replies are listed 'Best First'.
Re^3: cpan installing modules outside of the @INC path
by naikonta (Curate) on Apr 30, 2007 at 07:35 UTC
    Just where does cpan install the module?

    Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

      It installs things into /usr/lib/perl5/site_perl/5.8.6/, but @INC is this:

      /opt/at/perl5lib /usr/local/lib/perl5/5.6.1/i686-linux-thread-multi /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i686-linux-thread-multi /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl .
        The installation dir just looks fine to me. I have more versioned directories from 5.8.3 to 5.8.8. But yours look like come from two different version of Perl. On my machine,
        $ perl -v This is perl, v5.8.8 built for i386-linux-thread-multi
        When I peek at the source of cpan, command line the shebang points to /usr/bin/perl, and,
        $ head `which cpan` #!/usr/bin/perl eval 'exec /usr/bin/perl -S $0 ${1+"$@"}' if 0; # not running under some shell $ /usr/bin/perl -v This is perl, v5.8.8 built for i386-linux-thread-multi
        Both commands gave me the same version of Perl, so the @INC should stay same. Either cpan or manual installation will go to the same installation dir. Could you reproduce those commands on your machine?

        Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://612598]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2022-12-06 07:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?