Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
November 4, 2005, 1:36 pm
rate this thread
This is kind of a newbie question, which makes me sad, as I've been
using perl and installing modules for nearly two years now. However, it
seems that due to a lack of brain power, I'm missing something basic
I set up a new box with Solaris 10 (x86) and am running in to a lot of
@INC problems when installing modules (using CPAN and the plain
makefiles). I've tried this with Solaris' default perl installation, as
well as the Blastwave.org/CSW perl packages.
For example, when installing the DateTime module, I get these errors:
# /usr/ccs/bin/make test
PERL_DL_NONLAZY=1 /opt/csw/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Failed test 'use DateTime;'
# in t/00load.t at line 6.
# Tried to use 'DateTime'.
# Error: Can't locate loadable object for module DateTime in @INC
(@INC contains: /tmp/DateTime-0.2901/blib/lib
/opt/csw/share/perl/csw /opt/csw/share/perl/csw .) at
/opt/csw/lib/perl/5.8.7/XSLoader.pm line 44
My @INC looks correct. DateTime seems to be looking for a loadable
object (a .so file, I presume), yet I can't seem to find that anywhere.
The initial "make" ran okay:
cp lib/DateTime.pm blib/lib/DateTime.pm
cp lib/DateTimePP.pm blib/lib/DateTimePP.pm
cp lib/DateTime/Duration.pm blib/lib/DateTime/Duration.pm
cp lib/DateTimePPExtra.pm blib/lib/DateTimePPExtra.pm
cp lib/DateTime/Infinite.pm blib/lib/DateTime/Infinite.pm
cp lib/DateTime/LeapSecond.pm blib/lib/DateTime/LeapSecond.pm
.... So i would presume that it would find the loadable objects it needs
in blib, but they don't appear to be there.
I appreciate any guidance you all can provide. I'm kind of beating my
head in over what I know will be a silly thing that I should have
Re: Weird Module Installation Problem on Solaris 10
You're right - DateTime.so should have been compiled from DateTime.xs and
placed in blib where it would have been found. But, as you can see from the
output of 'make', no compilation whatsoever took place. That could be
a) there is something wrong with your perl installation;
b) there is a bug in the DateTime Makefile.PL.
What did 'perl Makefile.PL' report ?
Can you successfully build (eg) Math::FFT from CPAN ? (That would
demonstrate that your perl installation is basically ok wrt building