在 Windows 上安装本地 W3C 验证器时,SGML::Parser::OpenSP 不起作用 [英] SGML::Parser::OpenSP doesn't work when installing local W3C validator on Windows

查看:40
本文介绍了在 Windows 上安装本地 W3C 验证器时,SGML::Parser::OpenSP 不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Windows 中的 XAMPP 服务器上配置本地 W3C 验证器.我已将验证器复制到 XAMPP.当我尝试运行 validator/htdocs/index.html 时,它给出了一些错误,如

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

在@INC 中找不到模块 SGML::Parser::OpenSP 的可加载对象(@INC 包含:D:/Web/xampp/perl/site/lib/

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

但我在 D:\Web\xampp\perl\site\lib\SGML\Parser 中有我的 OpenSP.pm(它是正确的 0.991 版本).我遵循的添加新 .pm 文件的过程是

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. 下载 tar.gz 文件
  2. 使用 7z 解压
  3. 只需将 .pm 文件从文件夹复制到 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?

推荐答案

我快速查看了 SGML::Parser::OpenSP ... 该模块使用 XS,因此需要 C 编译才能正确安装.复制普通文件仅适用于纯 perl 模块,并且仅当您满足其所有依赖项时才有效.

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.

但是我不知道 xampp 中包含的 perl,所以很难建议如何继续安装.

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

这篇关于在 Windows 上安装本地 W3C 验证器时,SGML::Parser::OpenSP 不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆