Re: Installing Modules on a Standalone
by Fletch (Bishop) on Mar 28, 2005 at 13:33 UTC
|
| [reply] [d/l] |
Re: Installing Modules on a Standalone
by ambs (Pilgrim) on Mar 28, 2005 at 13:19 UTC
|
Hi. There are some modules which try to connect to the Internet to download other modules. I don't know if that is the case.
If not, the usual procedure would be download the tarballs for those two modules and try to install them using the usual way:
tar zxvf module.tar.gz
cd module
perl Makefile.PL
make
make install
When you run perl Makefile.PL you can get dependencies missing (in which case you need to download a new tarball) or (if the module tries to connect to the internet) you need to look at the Makefile.PL code and check what it tries to download.
Hope this helps.
| [reply] [d/l] |
|
|
I'm on a Windows machine. Does that make any difference? The most I can do through the command prompt is run DOS shell commands (don't think the TAR command works).
| [reply] |
|
|
Well, yes. I suppose you have the perl command. So, you unrar the file (or unzip, or extract someway), run the perl Makefile.PL. Then you need a make command. I think there are some freely available make commands for DOS. Something like nmake, if I am not wrong.
Hope this helps.
| [reply] |
Re: Installing Modules on a Standalone
by perlfan (Parson) on Mar 28, 2005 at 13:44 UTC
|
You'll have to manually download, transfer the files to the target machine, and install individually. Remember that if you are installing as non-root, you should set the PERL5LIB environmental variable. | [reply] |
Re: Installing Modules on a Standalone
by manav (Scribe) on Mar 28, 2005 at 16:40 UTC
|
On windows means you have ActivePerl version 5.x . Go to the activestate module repository and select the your version of Perl. Next download the zip file for your module and unzip in a temp directory.
The unzipped files will have a README file. Follow the instruction in that file. It would be something like
ppm install Foo-Bar.ppd
| [reply] [d/l] |
Re: Installing Modules on a Standalone
by Old_Gray_Bear (Bishop) on Mar 28, 2005 at 17:40 UTC
|
I just found myself in the same position last week -- a Windows machine with limited access to the Net. I can get to the ActiveState web-site and download the Perl MSI package since port 80 is allowed through the firewall, but the port that ppm() uses was blocked, so I couldn't get any CPAN modules.
I ended up doing a full installation of Perl and all of the needed modules on an external machine, using a flash drive as my installation device. I took the flash drive back into the Lab (after making sure that the Security Powers understood exactly why I was doing this) and copied the flash-drive onto the hard-drive of the Target machine, overlaying the existing Perl installation. The same process will have to be followed when they want to add another module or upgrade the Perl.
The Lab owners are currently in negotiation with the Secutiry group to get the ppm-port allowed, but it is going to be a long slog.
----
I Go Back to Sleep, Now.
OGB
| [reply] |
|
|
SET http_proxy=http://myproxy.example.com:3128
(Obviously use the hostname and port of your proxy). | [reply] [d/l] |