问题
I have installed W3C validator locally on Windows, following their instructions.
I am getting this error while validating a site:
Can't locate loadable object for module SGML::Parser::OpenSP in @INC (@INC contains: C:/www/perl/site/lib C:/www/perl/lib .) at C:/www/validator/httpd/cgi-bin/check line 60 Compilation failed in require at C:/www/validator/httpd/cgi-bin/check line 60. BEGIN failed--compilation aborted at C:/www/validator/httpd/cgi-bin/check line 60.
I am using SGML::Parser::OpenSP 0.991 module.
回答1:
That error looks like SGML::Parser::OpenSP is looking for something it needs. The module depends on the OpenSP library v1.5.2 or later according to its README file. Did you install that?
来源:https://stackoverflow.com/questions/2685468/why-cant-the-w3c-validator-load-perls-sgmlparseropensp