perlquestion
dorko
Hello,<P>
I'm not having much luck getting XML::Parser to work with expat. I've downloaded and installed expat version 2.0.0:
<c>
PATH=/usr/ccs/bin:$PATH # to add the correct "ar"
PATH=/local/gnu/bin:$PATH # add gcc to the path so configure can find it.
./configure --prefix=/home/reliant/shaw/.local
/local/gnu/bin/make # run the right make -- the wrong make doesn't understand '-phony'
/local/gnu/bin/make test
/local/gnu/bin/make install
</c>
That seems to have went well, leaving the appropriate files in <c>/home/reliant/shaw/.local</c><P>
Next, firing up CPAN, I did a <c>get XML::Parser</c>. (<c>PREFIX</c> and <c>LIB</c> are correctly set in <c>MyConfig.PM</c>)
I then edited the <c>Makefile.PL</c> to include:<P>
<c>
$expat_libpath = '/home/reliant/shaw/.local/lib';
$expat_incpath = '/home/reliant/shaw/.local/include';
</c>
<P>
Back to CPAN, and <c>make</c>, <c>test</c>, and <c>install</c> seemed to have went well, leaving the various bits and pieces in the expected places.<P>
So then I try and run a CGI script:<P>
<c>
#!/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;
</c>
and it results in:
<c>
Content-type: text/html
Software error:
Can't load '/home/reliant/shaw/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-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-solaris/XML/Parser.pm line 14.
BEGIN failed--compilation aborted at /home/reliant/shaw/perlmodules/sun4-solaris/XML/Parser.pm line 18.
For help, please send mail to the webmaster (webct@reliant.ucf.edu), giving 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/shaw/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-solaris/DynaLoader.pm line 229.
[Tue Feb 13 12:17:07 2007] brenttest.pl: at /home/reliant/shaw/perlmodules/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 aborted at /home/reliant/shaw/perlmodules/sun4-solaris/XML/Parser.pm line 18.
Compilation failed in require at /webct/webct-3.6.0.18/webct/webct/generic/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. </c>
Well, I beg do to differ because I've verified that <c>/home/reliant/shaw/perlmodules/sun4-solaris/auto/XML/Parser/Expat/Expat.so</c> exists, and is readable and executable by everyone.
<P>
Any thoughts, questions, comments or suggestions as to what I'm not doing right?
<P>
<b>UPDATE:</B> I should add I'm trying to do this on Solaris.<P>
Cheers,<P>
Brent<BR>
<div class="pmsig"><div class="pmsig-10261">
<I>-- Yeah, I'm a <A HREF="http://www.delts.org/">Delt</A>.</I>
</div></div>