Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^4: Proper CPAN Installation

by Anonymous Monk
on Sep 22, 2015 at 22:45 UTC ( [id://1142766]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Proper CPAN Installation
in thread Proper CPAN Installation

syphilis: ... *all* perls it builds use the same .cpan location.... jeffa: Nope! ...

Try it, its very possible, it works with cpan/cpanp/cpanm

Replies are listed 'Best First'.
Re^5: Proper CPAN Installation ( sharing sources\authors\id )
by Anonymous Monk on Sep 22, 2015 at 23:31 UTC

    For example with cpanp its by default

    cpanplus\01mailrc.txt.gz cpanplus\02packages.details.txt.gz cpanplus\03modlist.data.gz cpanplus\db.sql cpanplus\5.16.1\build\ack-2.08\t\swamp\Makefile.PL cpanplus\authors\id\R\RU\RURBAN\CHECKSUMS cpanplus\authors\id\R\RU\RURBAN\Compress-Bzip2-2.17.tar.gz cpanplus\install-logs\ack-1.96-1371720568.log

    the sources are shared, the build directories are not

    You can change location from "$HOME" with PERL5_CPANPLUS_HOME


    With cpanm its similar , to keep it from downloading source files over and over again (default) just tell it to cache them

    export PERL_CPANM_OPT="--cascade-search --save-dists=$HOME/.cpanm/cach +e --mirror=$HOME/.cpanm/cache --mirror=http://search.cpan.org/CPAN"

    With cpan its also very similar, $HOME by default ... can use https://metacpan.org/pod/cpan#CPAN_OPTS to use -j alternate/configfile ... here is what installing CGI using 3 different perls looks like

    .cpan\FTPstats.yml .cpan\histfile .cpan\Metadata .cpan\build\CGI-4.21-0lIz7E.yml .cpan\build\CGI-4.21-f0xo4H.yml .cpan\build\CGI-4.21-v1xWJv.yml .cpan\build\CGI-4.21-0lIz7E\Changes .cpan\build\CGI-4.21-f0xo4H\Changes .cpan\build\CGI-4.21-v1xWJv\Changes .cpan\CPAN\MyConfig.pm .cpan\sources\MIRRORED.BY .cpan\sources\authors\01mailrc.txt.gz .cpan\sources\authors\id\L\LE\LEEJO\CGI-4.21.tar.gz .cpan\sources\authors\id\L\LE\LEEJO\CHECKSUMS .cpan\sources\modules\02packages.details.txt.gz .cpan\sources\modules\03modlist.data.gz

    You don't need perlbrew for any of this, and its not exactly a secret

    I don't use cpanp or cpan anymore, I mostly use cpanm with the default settings (no caching)

      That is a terrible "solution" to what is not even a problem.

        That is a terrible "solution" to what is not even a problem.

        Then it shouldn't bother you?

Re^5: Proper CPAN Installation
by Anonymous Monk on Sep 22, 2015 at 23:05 UTC
    Here's a better idea: post the proof that you can.

      Here's a better idea: post the proof that you can.

      Its all very documented, but I'm already working on the "proof"

        Its all very documented, but I'm already working on the "proof"

        This touches on the very reason that I take no interest in perlbrew.
        I avoid it so that I don't have to invest hours trying to work out how to get it to do the things I want it to do.
        Given that I can achieve my desired results easily, quickly and simply without resorting to perlbrew, I see no point in learning how to jump through its hoops.

        The only thing that's likely to lead me to using perlbrew would be that perl sources are altered in such a way that it becomes difficult for one to build perl *unless* perlbrew is being used.

        And I don't discount that possibility. We've already seen how the advent of cpan/cpanm and friends has made it very difficult to install modules the old (manual) way - by enabling authors to create ridiculously long pre-requisite chains for their modules.
        For example, take a look at the dependency chains for current Inlne::C and Math::GMP on a fresh install of perl-5.22 - and imagine trying to do all that by hand.
        I've actually stopped installing Math::GMP - so appalled am I by having to wait 20 minutes for it to install all of its superfluities.

        Anyway ... I digress ... yet again :-)

        Cheers,
        Rob
        I am sure you are. How's that going?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-24 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found