SGML::Parser::OpenSP doesn't work when installing local W3C validator on Windows

[亡魂溺海] 提交于 2019-12-07 21:55:05

问题


I am trying to configure a local W3C validator on my XAMPP server in Windows. I have copied the validator to XAMPP. When I try to run validator/htdocs/index.html it's giving some error like

Can't locate loadable object for module SGML::Parser::OpenSP in @INC (@INC contains: D:/Web/xampp/perl/site/lib/

But I have my OpenSP.pm (and it's the correct version 0.991) in D:\Web\xampp\perl\site\lib\SGML\Parser. The procedure I am following to add new .pm file is

  1. download the tar.gz file
  2. unzip it using 7z
  3. just copy the .pm files from folder to D:\Web\xampp\perl\site\lib\

Is this the right way? Because it's not showing any errors for many other packages which I have added in similar manner.

How I can solve this error?


回答1:


I quickly looked into SGML::Parser::OpenSP ... the module is using XS, so it requires C compilation to install properly. Copying plain files will work only with pure-perl modules and only if you satisfy all its dependencies.

However I don't know perl included in xampp, so difficult to advice how to proceed with installation.




回答2:


You have to install the SGML-Parser-OpenSP cpan module instead of just unzipping the archive and copying files. But unfortunately until now April 2012, I have never found anyone who has succeeded in installing SGML-Parser-OpenSP 0.994 on windows. I have been trying the installation for the last 2 weeks. But I didn't succeed, yet. Is there anyone who succeeds in installing SGML-Parser-OpenSP 0.994 on windows? Please let me contact him or her. I want to hear his or her advices. My contact address yooseok@naver.com.



来源:https://stackoverflow.com/questions/5856778/sgmlparseropensp-doesnt-work-when-installing-local-w3c-validator-on-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!