Try using the CPAN shell to do your install.
>perl -MCPAN -e shell
will open it up for you.
Something like:
cpan> info /Spreadsheet::WriteExcel/
will get you information on the package(s) available.
cpan> install Module.pm
will install it.
When you first run CPAN it will configure your your environment. One quesion it will ask is whether it should ask about dependencies or whether it should simply follow them. As the foreman said when pointing to the line of shovels, "Take your pick."
It will really make your life much simpler if you get into the habit of using the CPAN module. See section 12.17 Perl Cookbook for examples of how to run it or look at the documentation.
Finally, if you're using a different library depository than the standard perl site specific one, make sure to put your directory at the front of the $PERL5LIB environment variable, perhaps in your start up shell. Make sure the variable is set before running the makes or you'll error out. Try looking into Perl Cookbook, section 12.7 for possible suggestions.
MadraghRua yet another biologist hacking perl.... | [reply] |
I tried doing the "perl -MCPAN -e shell" command
you suggested but it asks for something that we
do not have on our system.
It was ncftpget.
The prompt for this won't let me by it unless I
type something.
| [reply] |
| [reply] |
Try export PERL5LIB=$HOME/perllib before running perl on the Makefile.PL (or the equivalent for csh if that's your shell).
---
print map { my ($m)=1<<hex($_)&11?' ':'';
$m.=substr('AHJPacehklnorstu',hex($_),1) }
split //,'2fde0abe76c36c914586c';
| [reply] [d/l] [select] |
+ export PERL5LIB=/home/erickn/perllib
+ echo /home/erickn/perllib
/home/erickn/perllib
+ perl Makefile.PL LIB=/home/erickn/perllib
Writing Makefile for File::Temp
+ make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.00503/sun4-solaris -I/usr/local/lib/perl5/5.00
503 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/mktemp............File::Spec version 0.8 required--this is only version 0.6 at blib/lib/File/Temp.pm line 124.
BEGIN failed--compilation aborted at blib/lib/File/Temp.pm line 124.
BEGIN failed--compilation aborted at t/mktemp.t line 12.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-9
Failed 9/9 tests, 0.00% okay
t/posix.............File::Spec version 0.8 required--this is only version 0.6 at blib/lib/File/Temp.pm line 124.
BEGIN failed--compilation aborted at blib/lib/File/Temp.pm line 124.
BEGIN failed--compilation aborted at t/posix.t line 8.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-7
Failed 7/7 tests, 0.00% okay
t/security..........File::Spec version 0.8 required--this is only version 0.6 at blib/lib/File/Temp.pm line 124.
BEGIN failed--compilation aborted at blib/lib/File/Temp.pm line 124.
BEGIN failed--compilation aborted at t/security.t line 20.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-13
Failed 13/13 tests, 0.00% okay
t/tempfile..........File::Spec version 0.8 required--this is only version 0.6 at blib/lib/File/Temp.pm line 124.
BEGIN failed--compilation aborted at blib/lib/File/Temp.pm line 124.
BEGIN failed--compilation aborted at t/tempfile.t line 35.
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-20
Failed 20/20 tests, 0.00% okay
Failed Test Status Wstat Total Fail Failed List of failed
-------------------------------------------------------------------------------
t/mktemp.t 255 65280 9 9 100.00% 1-9
t/posix.t 255 65280 7 7 100.00% 1-7
t/security.t 255 65280 13 13 100.00% 1-13
t/tempfile.t 255 65280 20 20 100.00% 1-20
Failed 4/4 test scripts, 0.00% okay. 49/49 subtests failed, 0.00% okay.
*** Error code 2
make: Fatal error: Command failed for target `test_dynamic'
just to make sure I did a test to see what version of File::Spec was installed in /home/erickn/perllib
so, I ran the following program...
use lib "/home/erickn/perllib";
use File::Spec;
print "$File::Spec::VERSION\n";
and it returned
0.82
| [reply] |
Just for giggles, are you using the base perl in a FreeBSD ~4.6 server?
I had the same/similiar problem with p5-SpamAssassin and p5-File-Spec. Current p5-File-Spec was installed via ports, but it still wasn't seen.
The problem turned out to ge that the base perl's @INC was compiled so it would check the base patchs first, then the site_perl paths next. I other works, base perl modules were found first. site_perl modules were never found it they also existed in the base paths.
Shortly thereof, perl was patched and a recompile fixed the @IN path order.
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/43557
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/39337
| [reply] |
Check out my recent post on FindBin and File::Spec for some observations.
http://www.perlmonks.com/index.pl?node_id=225965 | [reply] |