This is a brief note on how to install a Perl package from a local package file, under MS Windows. Your problem is that you want to install using Perl Package Manager (PPM), but you're behind a recalcitrant firewall put in place by your paranoid IT staff!
At the time of writing, many packages (for Windows) could be found at:
http://ppm.ActiveState.com/PPMPackages/5.6plus/MSWin32-x86-multi-thread/
If you don't have the relevant PPD file for the package, you're in the poopy doo. Find one, or make one, using the following example:
<?xml version="1.0" encoding="UTF-8"?> <SOFTPKG NAME="Bit-Vector" VERSION="6,3,0,0"> <TITLE>Bit-Vector</TITLE> <ABSTRACT>Blah</ABSTRACT> <AUTHOR>A Sometwit</AUTHOR> <IMPLEMENTATION> <CODEBASE HREF="file:///d|/downloads/cpan/Bit-Vector-6.3.tar.gz"></CODEBASE> <INSTALL></INSTALL> <UNINSTALL></UNINSTALL> </IMPLEMENTATION> </SOFTPKG>
The key line is the CODEBASE one, which must describe your local path. Note the obscure syntax --- "d|" instead of "d:", and the three slashes after "file:" The above example would be saved under the name "BitVector.ppd" --- don't do this in word, use a real text editor that won't mutilate the file, like WinEdt or simple old MS DOS Edit!
Open up a DOS box, and change to the directory containing the .ppd file for the package you wish to install. Then run PPM from within DOS.
Within PPM, type in:
set repository anyoldname ./This is required to access local directory. Instead of "anyoldname" you can simply type in e.g. "a" (without the quotes). The "./" says "access the local directory". You can check for the success of the last statement by simply typing in:
setThen type in:
install package-namewhere the package name is e.g. Bit-Vector. And you're away (lots of lines should be written to the screen; otherwise be concerned that you have the wrong .tar.gz file).
Most of the relevant files should be written to directories with path names like:
\Perl\site\lib\what\ \Perl\site\lib\what\ever\ \Perl\site\lib\auto\what\ever\For example, with Bit-Vector, the folders on my computer are:
\Perl\site\lib\Bit\ \Perl\site\lib\Bit\Vector\ \Perl\site\lib\auto\Bit\Vector\
Good luck.
Date of First Publication: 2004/04/7 | Date of Last Update: 2006/10/24 | Web page author: Click here |