Click here to get back home

Weird Module Installation Problem on Solaris 10

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Weird Module Installation Problem on Solaris 10 colsanders 11-04-2005
Posted by colsanders on November 4, 2005, 8:36 am
Please log in for more thread options


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
yet fundamental.

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
t/00load................
# 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
/tmp/DateTime-0.2901/blib/arch /opt/csw/lib/perl/5.8.7/auto
/opt/csw/lib/perl/5.8.7 /opt/csw/share/perl/5.8.7
/opt/csw/lib/perl/site_perl /opt/csw/share/perl/site_perl
/opt/csw/share/perl/site_perl /opt/csw/lib/perl/csw
/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:

# /usr/ccs/bin/make
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
Manifying blib/man3/DateTime.3perl
Manifying blib/man3/DateTime::Duration.3perl
Manifying blib/man3/DateTime::Infinite.3perl
Manifying blib/man3/DateTime::LeapSecond.3perl

.... 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
thought of.

Thanks!



Posted by Sisyphus on November 5, 2005, 5:45 pm
Please log in for more thread options



.
..
> # /usr/ccs/bin/make
> 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
> Manifying blib/man3/DateTime.3perl
> Manifying blib/man3/DateTime::Duration.3perl
> Manifying blib/man3/DateTime::Infinite.3perl
> Manifying blib/man3/DateTime::LeapSecond.3perl
>
> ... So i would presume that it would find the loadable objects it needs
> in blib, but they don't appear to be there.
>

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
because:
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
extensions.)

Cheers,
Rob




Similar ThreadsPosted
perl-gtk installation failing on Solaris March 20, 2007, 7:28 am
perl cgi session module installation problem June 5, 2006, 11:11 am
Mysql-DBD Perl module Installation Problem in HPUX June 30, 2005, 9:05 am
ISO: deep voodoo debugging tools for tracking down seriously weird module behavior. November 9, 2007, 1:28 pm
XML-Parser-2.34 install problem on Solaris December 7, 2004, 5:18 pm
Crypt:DES make problem on Solaris 9 March 10, 2005, 12:39 pm
Crypt:DES make problem on Solaris 9 March 10, 2005, 12:52 pm
Problem building DBD::Oracle on 64 bit solaris April 13, 2005, 2:51 pm
DBD-Pg installation problem September 20, 2004, 10:34 pm
DBD::RAM installation problem March 2, 2005, 12:17 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap