On Oct 29, 2005, at 10:35 AM, Dave Linton wrote:
Ok, the above makes sense to me - unfortunately, it doesn't allow
me to fix my original problem ...
I'm attempting to install the WC3 HTML validator on my Mac by
following the instructions from http://developer.apple.com/internet/
opensource/validator.html
Things seem to work in accordance with the instructions and the
local validator web page is available on my machine. However, when
I tried to validate a page, I got the error message:
Can't locate HTML/Parser.pm in @INC (@INC contains: /System/Library/
Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /
Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /
Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-
multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl) at /
Library/WebServer/Documents/validator/htdocs/check line 48.
BEGIN failed--compilation aborted at /Library/WebServer/Documents/
validator/htdocs/check line 48.
When I copied Parser.pm from my ~/.cpan directory tree into Library/
Perl/5.8.1
Don't do that. Just run the "install HTML::Parser" command in the
CPAN shell (like the documentation says to do...) and you'll be fine.
Hence my original question about where should I put the files from
CPAN.
You shouldn't "put" them anywhere - CPAN does that. Like I told you
before, .cpan is part of the machinery - no user serviceable parts
inside.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org