问题
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
- download the tar.gz file
- unzip it using 7z
- 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