How can I install package in ActivePerl without Internet connection?
Asked Answered
S

5

9

In ActivePerl, "ppm" installs a package from the Internet, "ppm install x.ppd" installs from a ppd file, but most CPAN packages are distributed as .tar.gz

How do you supply modules to a machine running ActivePerl that doesn't have an Internet connection? ("make" will probably not be available.)

Update: an Internet connection can be used to download files and transfer them to the machine with a USB key, etc.

Slipsheet answered 20/10, 2008 at 16:34 Comment(0)
M
7

I am sure there is an easier way, but I just checked a ppd file and it is just an xml file ...

So you should be able to do the following if you want to install manually on a pc with no connection:

Open the file , ex

http://trouchelle.com/ppm/Acme-LOLCAT.ppd

and download the appropriate file pointed to in the CODEBASE tag, in this case:

http://trouchelle.com/ppm/MSWin32-x86-multi-thread-5.8/Acme-LOLCAT-0.0.4.zip

Put both file on the pc with no connection, CODEBASE HREF="xxx" should be pointing to the zip file (either by putting the file in the same relative subfolder or by fixing the href so it points to the zip file on your disk)

Install from the ppd using

ppm install x.ppd
Mf answered 20/10, 2008 at 17:16 Comment(2)
Having no internet connection is not the same thing as not being about to get the right files. In some situations, for instance, I update a minicpan on a thumb drive and carry that to the computer.Cardholder
(1) The internet connection isn't available on the install machine, it is perfectly possible to use an internet connection to obtain files for transfer to that machine (2) Getting PPD files to start with was the original problem - since most CPAN downloads were .tar.gz so we needed a different siteSlipsheet
O
4

I know it's not an answer to your question, but if possible consider using Strawberry Perl, a CPAN-friendly distribution of Perl for Windows. It has a tidy installer, ships with make, a compiler and a properly configured CPAN shell all ready to go.

And then you can use something like minicpan to create an offline CPAN repository.

Don't be a second class Perl citizen and have to wait for someone else to compile you a ppm, drink straight from the CPAN firehose!

Overlay answered 21/10, 2008 at 0:7 Comment(1)
This is easy to do with ActivePerl too. openkomodo.com/blogs/troyt/ppm-install-mingwBibliotaph
E
2

Since this is a very frequent scenario, I complete the answers here :

As far as ActivePerl 5.14 is concerned you can also download ".tar.gz" files for your platform, or download so-called ".ppmx" files (same format). Save the files and invoke the ppm installer later when offline :

ppm.bat install MIME-Lite-3.028.ppmx
Eiderdown answered 31/5, 2012 at 9:37 Comment(0)
E
1

You might be interested in A guide to installing modules for Win32. It's a bit outdated (it talks about the command-line ppm) but the principles remain the same.

Ezmeralda answered 21/10, 2008 at 8:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.