dorko has asked for the wisdom of the Perl Monks concerning the following question:
I'm not having much luck getting XML::Parser to work with expat. I've downloaded and installed expat version 2.0.0:
That seems to have went well, leaving the appropriate files in /home/reliant/shaw/.localPATH=/usr/ccs/bin:$PATH # to add the correct "ar" PATH=/local/gnu/bin:$PATH # add gcc to the path so configure can fin +d it. ./configure --prefix=/home/reliant/shaw/.local /local/gnu/bin/make # run the right make -- the wrong make doe +sn't understand '-phony' /local/gnu/bin/make test /local/gnu/bin/make install
Next, firing up CPAN, I did a get XML::Parser. (PREFIX and LIB are correctly set in MyConfig.PM) I then edited the Makefile.PL to include:
$expat_libpath = '/home/reliant/shaw/.local/lib'; $expat_incpath = '/home/reliant/shaw/.local/include';
Back to CPAN, and make, test, and install seemed to have went well, leaving the various bits and pieces in the expected places.
So then I try and run a CGI script:
and it results in:#!/usr/bin/perl use strict; use warnings; use CGI qw/:standard/; print header; use CGI::Carp qw(fatalsToBrowser); use lib ('/home/reliant/shaw/perlmodules'); use lib ('/home/reliant/shaw/perlmodules/sun4-solaris'); require XML::Simple; require XML::Parser;
Well, I beg do to differ because I've verified that /home/reliant/shaw/perlmodules/sun4-solaris/auto/XML/Parser/Expat/Expat.so exists, and is readable and executable by everyone.Content-type: text/html Software error: Can't load '/home/reliant/shaw/perlmodules/sun4-solaris/auto/XML/Parse +r/Expat/Expat.so' for module XML::Parser::Expat: ld.so.1: perl: fatal +: libgcc_s.so.1: open failed: No such file or directory at /usr/local +/lib/perl5/5.8.0/sun4-solaris/DynaLoader.pm line 229. at /home/reliant/shaw/perlmodules/sun4-solaris/XML/Parser.pm line 14 Compilation failed in require at /home/reliant/shaw/perlmodules/sun4-s +olaris/XML/Parser.pm line 14. BEGIN failed--compilation aborted at /home/reliant/shaw/perlmodules/su +n4-solaris/XML/Parser.pm line 18. For help, please send mail to the webmaster (webct@reliant.ucf.edu), g +iving this error message and the time and date of the error. Content-type: text/html Software error: [Tue Feb 13 12:17:07 2007] brenttest.pl: Can't load '/home/reliant/sha +w/perlmodules/sun4-solaris/auto/XML/Parser/Expat/Expat.so' for module + XML::Parser::Expat: ld.so.1: perl: fatal: libgcc_s.so.1: open failed +: No such file or directory at /usr/local/lib/perl5/5.8.0/sun4-solari +s/DynaLoader.pm line 229. [Tue Feb 13 12:17:07 2007] brenttest.pl: at /home/reliant/shaw/perlmo +dules/sun4-solaris/XML/Parser.pm line 14 [Tue Feb 13 12:17:07 2007] brenttest.pl: Compilation failed in require + at /home/reliant/shaw/perlmodules/sun4-solaris/XML/Parser.pm line 14 +. [Tue Feb 13 12:17:07 2007] brenttest.pl: BEGIN failed--compilation abo +rted at /home/reliant/shaw/perlmodules/sun4-solaris/XML/Parser.pm lin +e 18. Compilation failed in require at /webct/webct-3.6.0.18/webct/webct/gen +eric/admin/brenttest.pl line 12. For help, please send mail to the webmaster, giving this error message + and the time and date of the error.
Any thoughts, questions, comments or suggestions as to what I'm not doing right?
UPDATE: I should add I'm trying to do this on Solaris.
Cheers,
Brent
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Installing XML::Parser (with expat)
by derby (Abbot) on Feb 13, 2007 at 18:57 UTC | |
by dorko (Prior) on Feb 13, 2007 at 22:04 UTC | |
by derby (Abbot) on Feb 14, 2007 at 10:08 UTC | |
by Anonymous Monk on Feb 14, 2007 at 09:10 UTC | |
|
Re: Installing XML::Parser (with expat)
by syphilis (Archbishop) on Feb 14, 2007 at 10:34 UTC | |
by Corion (Patriarch) on Dec 11, 2013 at 12:12 UTC | |
by Anonymous Monk on Jul 31, 2025 at 15:30 UTC | |
|
Re: Installing XML::Parser (with expat)
by dorko (Prior) on Feb 14, 2007 at 19:15 UTC | |
|
Re: Installing XML::Parser (with expat)
by Anonymous Monk on Dec 18, 2009 at 20:48 UTC |