in reply to Module Installs
This is two steps: unzip (to go from Foo.tar.gz to Foo.tar), then untar into the lib directory in your current Perl installation.
This is a few steps too:
The problem I had in the past was that this points to the system's Perl installation, and that's no good for you if you're not root. The trick is you have to either edit the Makefile and change PREFIX to the name of the directory above lib to get the next steps to work.
This is, of course :) obvious to well-seasoned Monks, but it's something I had to tinker with for a while before it worked -- I never came across instructions on how to install modules when you're not root.
(Alternatively you can run perl Makefile.PL with the command line option PREFIX=[your Perl directory here]. I found out about that option later.)
I renamed the directory Spreadsheet-ParseExcel-0.2405 to Spreadsheet and I was able to use the module.
(Of course, after that I ran into run-time memory problems, but that's another story.)
I hope this information is useful to any other Monks that want to install modules on a machine where they're not root -- or even if they are root, but don't want to install something system-wide.
ps This node written Thursday 1015 February 28; please allow a few days for this information to mature before rushing ahead and using it .. no doubt there will be clarifications and corrections.
Update 0830 Monday March 4: Thx to crazyinsomniac for also pointing out the CPAN module CPAN.pm which provides you with an automated way to get modules. Appropriate links are CPAN module page on CPAN and local CPAN manpage.
I was aware of this but wanted to know about the nuts and bolts of the proper method .. but I will probably use CPAN the next time.
--t. alex
"There was supposed to be an earth-shattering kaboom!" --Marvin the Martian
|
|---|