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
In reply to Installing XML::Parser (with expat) by dorko
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |