Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

local::lib - installed by default

by wmehl (Initiate)
on Mar 11, 2014 at 15:52 UTC ( #1077866=perlmeditation: print w/ replies, xml ) Need Help??

Hello,

I have a humble request - that the mod local::lib be installed by default at part of CPAN, and not as a separate install. FTP and HTTP are supported "out of the box", we are asking the same for local file. This would allow a local repo of CPAN to be used out of the box via filesystem. This may mean that local::lib no longer exists, it is rolled into the base CPAN code.

It is a chicken/egg scenario, in order to install from fileshare, you have to have local::lib installed. This requires going to the net for CPAN install, which in our case is not allowed.

There are work arounds (boot strap, rpm's, etc) but it would be nice to use a local repo native to CPAN out of the box.

The use case, many servers (1000) in a commercial environment. We have no direct access to the internet, and we have to use a vetted source for CPAN on a local fileshare, not public repos via FTP or HTTP. We could bring up a local HTTP repo, but would prefer to use fileshare

Thanks for your time an consideration.

Comment on local::lib - installed by default
Re: local::lib - installed by default
by Corion (Pope) on Mar 11, 2014 at 16:26 UTC

    I might be confused here, but local::lib does not deal with CPAN mirrors. It deals with installed modules.

    If you want to run your own CPAN mirror, using a file:/// URI makes the cpan tool use a fileshare instead of HTTP.

    I think that App::cpanminus (for example) can deal with non-HTTP mirrors as long as they have the usual CPAN structure.

    If you meant something else, I'm sorry that I misunderstood.

      Just canceled my reply. I'm happy that not only I'm confused... ;-)

Re: local::lib - installed by default
by Anonymous Monk on Mar 11, 2014 at 20:33 UTC

    I have a humble request - that the mod local::lib be installed by default at part of CPAN, and not as a separate install. ... It is a chicken/egg scenario, in order to install from fileshare, you have to have local::lib installed. ...

    Well, CPAN isn't maintained by perlmonks ...

    But there really is no need to inline local::lib -- simply read local::lib documentation

    All local::lib does is arrange a few env vars supported by Perl/CPAN/ExtUtils::MakeMaker/Module::Build

    There is no chicken and egg problem, you don't need local::lib installed to set a few env vars

    Also, like Corion says, you don't need local::lib to install modules from a local file share

    All you have to do is update your cpan configuration and set a few env vars

    See CPAN/perlrun ( Re: How do I tell CPAN to use a local lib? () )

Re: local::lib - installed by default
by ikegami (Pope) on Mar 12, 2014 at 15:18 UTC

    The use case, many servers (1000) in a commercial environment. We have no direct access to the internet, and we have to use a vetted source for CPAN on a local fileshare, not public repos via FTP or HTTP. We could bring up a local HTTP repo, but would prefer to use fileshare

    local::lib doesn't help there. It's used to locate installed modules; it's not a means of fetching uninstalled distributions. You want minicpan to create a local CPAN.


    Note: I avoid local::lib because it uses the INSTALL_BASE scheme which causes problems when you upgrade your Perl. PREFIX + LIB is the way to go. Or you can do what I do and install Perl itself locally using perlbrew.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://1077866]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2014-07-23 00:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (130 votes), past polls