I'm not having much luck getting XML::Parser to work with expat. I've downloaded and installed expat version 2.0.0:
PATH=/usr/ccs/bin:$PATH # to add the correct "ar"
PATH=/local/gnu/bin:$PATH # add gcc to the path so configure can fin
/local/gnu/bin/make # run the right make -- the wrong make doe
+sn't understand '-phony'
That seems to have went well, leaving the appropriate files in /home/reliant/shaw/.local
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:
use CGI qw/:standard/;
use CGI::Carp qw(fatalsToBrowser);
use lib ('/home/reliant/shaw/perlmodules');
use lib ('/home/reliant/shaw/perlmodules/sun4-solaris');
and it results in:
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 (firstname.lastname@example.org), g
+iving this error message and the time and date of the 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
Compilation failed in require at /webct/webct-188.8.131.52/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.
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.
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.