Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Installing Perl Modules on W2K3 Server x64 without Internet access

by was1984 (Novice)
on Oct 18, 2007 at 14:07 UTC ( [id://645723]=perlquestion: print w/replies, xml ) Need Help??

was1984 has asked for the wisdom of the Perl Monks concerning the following question:

I know I'm going to get a lot of flack for using Windows, but in the real world you don't have a choice sometimes.

So I'm in a super secure environment on this server, and I'm trying to develop an internal website that will use some perl modules, like template toolkit. I'm relatively new to Perl, and I'm really not a great programmer, I just have this project to do so I have to pretend.

  • I can't find a version of nmake that will work with x64.
  • I can't just upload the already made files from another system.
  • I can't access PPM because I have no internet accesss.
What I can do is transfer files to this server from my desktop computer.

Is there anything I can do to successfully install modules? The main module I'm looking to install right now is Template::Toolkit and dependencies, but I'd like a more universal soultion if possible.
  • Comment on Installing Perl Modules on W2K3 Server x64 without Internet access

Replies are listed 'Best First'.
Re: Installing Perl Modules on W2K3 Server x64 without Internet access
by Corion (Patriarch) on Oct 18, 2007 at 14:13 UTC

    See Building a local 'ppm' repository (Windows) for how to create a local PPM repository

    I don't know if there will be a Strawberry Perl build for Win64, but if there is one, I recommend creating your own CPAN mirror using CPAN::Mini. That mirror (barely) fits onto a CD currently and easily on USB media commonly available, so you can take CPAN and Perl with you everywhere.

Re: Installing Perl Modules on W2K3 Server x64 without Internet access
by randyk (Parson) on Oct 18, 2007 at 14:46 UTC
    If you're looking for a solution involving ppm, ActiveState provides zipped archives of the files needed to perform local installs of ppm packages; when unzipped, there's a README file explaining how to install it locally. In the uwinnipeg repository there's also similar zipped files, as well as bundles of selected ppm packages which include all the dependencies needed.
Re: Installing Perl Modules on W2K3 Server x64 without Internet access
by syphilis (Archbishop) on Oct 18, 2007 at 14:50 UTC
    Hi was1984,

    ActiveState have a 64-bit build of perl - so I would think the first thing for you to do is to download and install it (if you haven't already) - http://downloads.activestate.com/ActivePerl/Windows/5.8/ActivePerl-5.8.8.822-MSWin32-x64-280952.zip. (Just run the 'Installer.bat' that's part of that download - or there's also an MSI version you can grab, if you prefer.) Then install (from Microsoft) "Microsoft Platform SDK for Windows Server 2003 R2". That should hopefully give you the compiler and nmake to work with that 64-bit build of perl. (It all works fine for me on my AMD64 box with Vista Business 64). To set up the environment to use that compiler just run C:\your_path_to\Platform_SDK\SetEnv.cmd /XP64 /RETAIL You should then be able to build most modules from CPAN source in the usual way.

    Cheers,
    Rob
    Update: Reading the response from randyk reminded me that, of course, you can also use the 32-bit builds of perl on your 64-bit box if you so wish - in which case the 32-bit PPM repositories are also at your disposal (as Randy pointed out).
      Thank you all for your responses. I determined to use the Platform SDK idea, and it works correctly.
Re: Installing Perl Modules on W2K3 Server x64 without Internet access
by Bloodnok (Vicar) on Oct 18, 2007 at 16:58 UTC
    Hi ,

    Personally, having been recommended it elsewhere, I'd use the Strawberry perl distribution since it satisfies all our requirements e.g. Win2K3 server, self-contained make (dmake) and compiler (gcc).
    Just download the distro, get it across the air gap and run the install - the only drawback, if you can call it that, is the installation directory - which is C:\\StrawberryPerl.

    After that, download any modules not present in the distro, get them across the air gap, unzip and run the standard/recomended build, test & install seqeunce ...

    At last, a user level that best describes my experience :-))

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-26 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found