I have many years programming experience, but am new to Perl. I have installed Perl on Windows XP Pro with IIS and have a 'hello world' program working. I am trying to set up the W3C Validator. When I click the link that launches 'check.pl' I get the error:-
Can't load 'D:/perl/site/lib/auto/SGML/Parser/OpenSP/OpenSP.dll' for m +odule SGML::Parser::OpenSP: load_file:The specified module could not +be found at D:/perl/site/lib/XSLoader.pm line 66. at D:/perl/site/li +b/SGML/Parser/OpenSP.pm line 18
This is mid-way through the initial set of 'use' lines
use CGI 2.81 qw(-newstyle_urls -private_tempfiles red +irect); use CGI::Carp qw(carp croak fatalsToBrowser); use Config::General 2.19 qw(); # Need 2.19 for -AutoLaunder use Encode qw(); use Encode::Alias qw(); use Encode::HanExtra qw(); # for some chinese character encod +ings, # e.g gb18030 # use Encode::JIS2K qw(); # ditto extra japanese encodings use File::Spec qw(); use HTML::Encoding 0.52 qw(); use HTML::Parser 3.25 qw(); # Need 3.25 for $p->ignore_element +s. use HTML::Template 2.6 qw(); use HTTP::Negotiate qw(); use HTTP::Request qw(); use HTTP::Headers::Auth qw(); # Needs to be imported after other + HTTP::*. use SGML::Parser::OpenSP qw(); use URI qw(); use URI::Escape qw(uri_escape); use XML::LibXML qw();
OpenSP.dll exists in the path as given - so why doesnt it load? I changed XSLoader.pm to have 2 additonal print lines
print "Loading XSLoader::load for $module ($file)<br>\n"; my $libref = dl_load_file($file, 0) or do { require Carp; Carp::croak("Can't load '$file' for module $module: " . dl_err +or()); }; print "Loaded XSLoader::load for $module ($file)<br>\n";
All the 'use' commands prior to use SGML::Parser::OpenSP show both the 'Loading' and 'Loaded' messages from the print statements. However when this 'use' statement is processed the 'Loading' message is displayed but not the 'Loaded' message - instead the error is generated I am pulling my hair out and shortly will be a 'tonsured monk' Advice greatly appreciated.

In reply to Struggling to solve OpenSP failure by tsrplatelayer

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.