Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Install Perl Modules, No Internet

by dburke (Novice)
on Nov 17, 2012 at 17:49 UTC ( #1004329=perlquestion: print w/replies, xml ) Need Help??
dburke has asked for the wisdom of the Perl Monks concerning the following question:

So, first off, I'm on Windows 2003 Server. I've been searching for a while now for some way to install perl modules with no internet. People suggested making a mini cpan, but that seems like a lot of work for two modules. I have the source for these modules and I tried to install them in cpan using `cpan .` but it still tries to connect to the internet. Is making a minicpan the only way? How do I make a minicpan mirror with just the modules I want and their dependencies? Thank you for you time.

Replies are listed 'Best First'.
Re: Install Perl Modules, No Internet
by tobyink (Abbot) on Nov 17, 2012 at 18:05 UTC

    You should be able to untar the tarballs, cd to the right directory and then:

    perl Makefile.PL make make test sudo make install
    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
      Thank you for the help, but I forgot to mention that I'm on Windows.
        Then you will have to find some version of make for Windows and install that on your machine: make for Windows.

        I used to have a link to download nmake.exe from the Microsoft site but the link is dead now.


        A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

        My blog: Imperial Deltronics
Re: Install Perl Modules, No Internet
by moritz (Cardinal) on Nov 17, 2012 at 21:43 UTC
    I have the source for these modules and I tried to install them in cpan using `cpan .` but it still tries to connect to the internet.

    Maybe there are missing dependencies, and cpan tries to install them? If that's the case, you can avoid it by installing the dependencies yourself first.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1004329]
Approved by bulk88
[erix]: well, I hope you're right
[Your Mother]: Bill Clinton assaulted and raped repeatedly. Even when it was hinted and finally all but proved, no one cared because his sexism, and racism, and killing was decorous.
[Your Mother]: I think Trump might be better specifically because no one respects him so he won't get his way the way the others did.
[Your Mother]: (I certainly did not vote for him and have been an outspoken critic of his for three decades, by the by.)
[erix]: I'd like Russia threatened a bit more, flattered a bit less
[Your Mother]: The last two regimes killed a million, displaced 10 million, torture prisons, and ruined countries… somehow it's magically bad _now_.
[erix]: what/who are the last two regimes?
[Your Mother]: Bush/Obama. 15 straight years of warfare, torture, etc, etc.
[Your Mother]: All caused by the political fallout of Carter/Reagan when the Afghan chickens came home to roost on 9/11.
[Your Mother]: US foreign policy is toxic and like a broken record.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2017-01-20 01:05 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (173 votes). Check out past polls.