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

Re^3: Compile portable Perl program on Windows to run on UNIX

by DrHyde (Prior)
on Apr 11, 2012 at 09:47 UTC ( #964488=note: print w/replies, xml ) Need Help??

in reply to Re^2: Compile portable Perl program on Windows to run on UNIX
in thread Compile portable Perl program on Windows to run on UNIX

There are links to eleventy million pages explaining how to install modules in your home dir here. Of them all, these days I recommend using local::lib. At least, I do on Unix. No idea how well it works on Windows.

To install without internet access you'll need to get the distribution (the Some-Module-1.234.tar.gz) file or its contents onto the machine. Untar it, then ...

cd Some-Module-1.234 cpan .

Adjust as necessary for other CPAN clients. These days cpanminus is probably the best choice.

Installing dependencies can be a gigantic pain in the arse if you don't have internet access (or you don't have a copy of the CPAN already on the target machine). If you have lots of dependencies, then I suggest that you build another machine similar to the target - same OS, same word length - which could be a virtual machine on your desktop which *does* have internet access, and build all your modules there. Once that's done, copy the results to the target machine and hope for the best.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://964488]
[Discipulus]: good morning monks and nuns!
[Corion]: A good morning Discipulus! ;)

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2018-02-22 08:04 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (288 votes). Check out past polls.