Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Installing cpan or cpanm modules on a behind-firewall machine with no Internet connection

by Corion (Patriarch)
on Sep 19, 2015 at 10:30 UTC ( [id://1142504]=note: print w/replies, xml ) Need Help??


in reply to Installing cpan or cpanm modules on a behind-firewall machine with no Internet connection

App::cpaminus (respectively http://cpanmin.us) is a self-contained single file, so you can copy it as you like.

For your development environment, I really, really recommend that you have a Perl 5.8.x readily available for testing because 5.8.x is really far behind the times and there are many modules that have problems with the module versions shipped with 5.8. Testing your stuff against 5.8 is important.

For the long term view on deployment, in your case I would look at CPAN::Mini or Carmel or Pinto to maintain your own curated CPAN mirror that gets synchronized from time to time with the mainstream CPAN but is usable from within your network.

  • Comment on Re: Installing cpan or cpanm modules on a behind-firewall machine with no Internet connection

Replies are listed 'Best First'.
Re^2: Installing cpan or cpanm modules on a behind-firewall machine with no Internet connection
by morespinach (Initiate) on Sep 19, 2015 at 11:30 UTC
    Thank you. How can I install 5.8 on my local server? I'm on Mac OSX, or Linux. I already have 5.18 on Mac and 5.16 on my Linux box. Is there a way to have two Perl installs on the same server, or downgrade Perl on a box?

      One method for installing multiple Perl versions on the same system would be to use perlbrew.

      In addition to dasgars comments, leave the system/default perl alone. It belongs to the system maintainer/OS vendor. Changing the system perl means that security upgrades to modules will not work anymore or will break your existing installations. Compile your own version(s) of Perl manually or using perlbrew.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-26 00:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found