views:

193

answers:

1

Hi

I have no experience on perl. I am trying to configure the W3C validator on my localhost (win32).

I have already followed all the instructions given by W3C @http://validator.w3.org/docs/install_win.html, but I am getting the following error:

Can't locate loadable object for module Encode::HanExtra in @INC (@INC contains: C:/xampp/perl/lib C:/xampp/perl/site/lib .) at C:/xampp/validator-0.8.6/httpd/cgi-bin/check line 49 Compilation failed in require at C:/xampp/validator-0.8.6/httpd/cgi-bin/check line 49. BEGIN failed--compilation aborted at C:/xampp/validator-0.8.6/httpd/cgi-bin/check line 49.

I'm running perl 5.10.1 on xampp and the following HandExtra Module http://cpansearch.perl.org/src/AUDREYT/Encode-HanExtra-0.23/lib/Encode/HanExtra.pm

This is C:/xampp/validator-0.8.6/httpd/cgi-bin/check line 49 : use Encode::HanExtra qw(); # for some chinese character encodings

if I document that line using # I get a similar message related to other object: Can't locate loadable object for module Sub::Name in @INC (@INC contains: C:/xampp/perl/lib C:/xampp/perl/site/lib .) at C:/xampp/perl/site/lib/Moose.pm line 12

This is Line 12 at Moose.pm : use Sub::Name 'subname';

I don't know how to proceed. I will appreciate any advise.

Thanks

A: 

Did you install the module properly or did you just copy the Encode/HanExtra.pm file to your perl directory?

Installing it properly means downloading the distribution (say, from here) and going through the installation procedure, typically

perl Makefile.PL
make
make test
make install

(possibly dmake instead of make on Windows systems).


The CPAN module can simplify this process, though the first time you use it you will have to go through a lengthy setup process. But it's definitely worthwhile if you will be installing more than one or two modules.

$ perl -MCPAN -e shell
CPAN: File::HomeDir loaded ok (v0.80)

cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support enabled

cpan[1]> lengthy setup process goes here

cpan[2]> install Encode::HanExtra

mobrule
Thanks mobruleThat was exactly the problem, though now I'm pulling my hair out with another issue. I can't get the cpan to work properly, I'm getting <code>'YAML' not installed and nmake.exe -- NOT OK</code> errors. And unfortunately I haven't understand how to install dmake yet...
Gabo
There's a zip file @W3C website with the modules I need to install : http://www.myhpi.de/~dtibbe/download/ppm.zip. But It seems I'm missing something at ppm installation too. I unzipped the modules distributions to C:\xampp\perl\bin\.ppm and then from command prompt ppm> install Config::General works , but when I try ppm> install Encode::HanExtra I'm getting this error: Can't locate object method "rvalidate" via package "PPM::XML::PPD::html" at c:/xampp/perl/site/lib/PPM.pm line 1687, <> line 2.
Gabo
`nmake` is another Windows variation of `make` -- it should be OK to use instead of `dmake`.
mobrule