Hello,

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 +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
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:

#!/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;
and it results in:
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.
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.

Cheers,

Brent

-- Yeah, I'm a Delt.

In reply to Installing XML::Parser (with expat) by dorko

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.