Trouble with PPM and @INC

Posted by yakatz on 2010-09-28 09:09

I am installing the W3C Validator (validator.w3.org) which I have done many times before.
It requires SGML::Parser::OpenSP which is only available in precompiled form for 5.8, and compiling it is very hard (because of some dependencies).

Introduction out of the way, I installed ActivePerl in C:\Webserv\ActivePerl\5.8.9\.
PPM and the CPAN command line are adding modules to .\site\lib instead of .\lib.
I changed the #! in the script to #!C:/Webserv/ActivePerl/5.8.9/bin/perl.exe -T
and Apache seems to be executing it properly, but I get this error:

Can't locate Config/General.pm in @INC (@INC contains: C:/Webserv/ActivePerl/5.8.9/lib) at C:/Webserv/Validator/httpd/cgi-bin/check line 49

It looks like perl is not building the @INC properly (since it is not including the site folder)

Anyone have a solution for this?
Development on this computer is all non-public, so I can't use the public validator on the internet (since it can't resolve localhost).