mkyes has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying to load the CVSSupport module wich has dependices on the XML::Parser Library which in turn has a dependency on Expat. I've compiled Expat on my solaris box, ran the unit tests for Expat and XML::Parser and all seems to be well. I've even wrote a routine that tells me which packages are installed and it claims that XML::Parser is installed. When I try and install the CVSSupport routines there is a line in the Makefile.PL that says

WriteMakefile( 'NAME' => 'CVSSupport', 'PREREQ_PM' => {'XML::Parser' => 0}, 'VERSION_FROM' => 'CVSSupport.pm', 'EXE_FILES' => 'cvs_harness', 'cvssupport_setup' , 'dist' => { 'COMPRESS' => 'gzip', 'SUFFIX' => '.gz' },

and this line claims that XML::Parser is not installed. when I force the make it then makes the complaint about

"Can't locate loadable object for module XML::Parser::Expat in @INC"

Any help would be appreciated.

Btw I'm running on Solaris 8 using gcc 3.1

Thanks,

Mark

  • Comment on Can't locate loadable object for module XML::Parser::Expat in @INC

Replies are listed 'Best First'.
Re: Can't locate loadable object for module XML::Parser::Expat in @INC
by chromatic (Archbishop) on Aug 23, 2002 at 14:44 UTC

    It doesn't sound as if XML::Parser is installed. I would use one of two approaches to verify that it is:

    perldoc -l XML::Parser perl -MXML::Parser -e 'print $XML::Parser::VERSION'

    Can you post your routine?

Re: Can't locate loadable object for module XML::Parser::Expat in @INC
by sauoq (Abbot) on Aug 23, 2002 at 15:33 UTC
    It's a guess but you might want to try running ldconfig or setting your LD_LIBRARY_PATH envariable to include the path where you installed expat.
    -sauoq
    "My two cents aren't worth a dime.";
    
Re: Can't locate loadable object for module XML::Parser::Expat in @INC
by gwhite (Friar) on Aug 23, 2002 at 17:56 UTC
    Are you using the perl that came with Solaris (bad)? or did you compile a new one using gcc(you need to)? Are all your pieces pointing to the correct perl?

    g_White

      I'm using the perl that came with solaris. I've just downloaded perl from sunfreeware. is that a better installation?