Page and site validation (LogValidator)

apps

#1

Hey all,

I use W3C’s validation service whenever I change a page, but it’s kindof a pain to do it all the time by hand – especially if I change a whole bunch of pages. I’d like to make link checking and validation part of my site update process, so I thought I’d use the tool provided by w3c: LogValidator. I don’t know of anything like it and it looks pretty good. It’s installed on DH, but, unfortunately, fails when you run it:

[boyd]$ logprocess.pl -h
Can’t locate Config/General.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/perl/5.8/W3C/LogValidator/Config.pm line 107.
BEGIN failed–compilation aborted at /usr/share/perl/5.8/W3C/LogValidator/Config.pm line 107.
Compilation failed in require at /usr/share/perl/5.8/W3C/LogValidator.pm line 37.
BEGIN failed–compilation aborted at /usr/share/perl/5.8/W3C/LogValidator.pm line 37.
Compilation failed in require at /usr/bin/logprocess.pl line 16.
BEGIN failed–compilation aborted at /usr/bin/logprocess.pl line 16.

I’ve contacted support, but assuming they don’t fix it, does anyone else have any suggestions? A way to get it to work or an alternative, maybe? TIA!

bjorn

Bjorn Roche
XO Wave
Audio Production and Post-Production Software for Mac OS X
http://www.xowave.com
http://www.myspace.com/xowave
http://blog.bjornroche.com


#2

You could install Config::General locally. Are you familiar with installing Perl modules using CPAN?


#3

Thanks for the tip: I got it working. I didn’t know I could install perl stuff local to my login. The process doesn’t seem to be documented well. I couldn’t even find a mention of it on the CPAN site. Here’s what I did for the sake of anyone else, who finds themselves befuddled.

First, I ran:
perl -MCPAN -e shell

since it was my first time, it asked me a bunch of questions. The important one was to tell it to install perl stuff locally to my login, when it asked where to put things. I used ~/perl

then when I got to the shell, I typed
install Config::General

some sort of magic happened and it installed. But that’s not all, you also have to set your PERLLIB environment variable to the appropriate place. In my case:

export PERLLIB="/home/LOGINNAME/perl/share/perl/5.8.4"

after that, the command worked. Many thanks!

Bjorn Roche
XO Wave
Audio Production and Post-Production Software for Mac OS X
http://www.xowave.com
http://www.myspace.com/xowave
http://blog.bjornroche.com


#4

so much for that magic:

$ logprocess.pl -f logprocess.conf
Reading logfiles: Done!
Now Using the Basic module…
Done!
Now using the HTML Validator module…
(This may take a long time if you have many files to validate)
Done!
Can’t locate object method “new” via package “W3C::LogValidator::CSSValidator” (perhaps you forgot to load “W3C::LogValidator::CSSValidator”?) at /usr/share/perl/5.8/W3C/LogValidator.pm line 300.

Okay, so that’s telling me that now I need to install W3C::LogValidator::CSSValidator. So I tried that and it failed (one of the errors it cited was being unable to locate Cofig/General!!) I think it’s time to give up and hope for DH support, unless someone has some ideas.

My guess is it’s not going to be worth it at this point since already two things have gone wrong: MCPAN did not correctly pick up on the dependencies the first time through (or perhaps logvalidator did not properly report them?) and the second time through it failed to pick up on my environment variable telling it where I installed stuff the first time.

Well, thanks again for the help,

Bjorn Roche
XO Wave
Audio Production and Post-Production Software for Mac OS X
http://www.xowave.com
http://www.myspace.com/xowave
http://blog.bjornroche.com