Archive for June, 2007

Installing the Validator on Mac OS X

June 8th, 2007

Getting the validator to install on Mac OS X has been a long 3 hour battle -

I wanted to submit some patches for the W3C HTML Validator, but had to jump through quite a few hoops to get the CVS version running on my development machine. This is my own supplement to Olivier’s Validator 0.8.0 upgrade notes.

This is a collection of commands I compiled by looking through my history –

fink install xmlto

wget http://superb-west.dl.sourceforge.net/sourceforge/openjade/OpenSP-1.5.2.tar.gz
gunzip OpenSP-1.5.2.tar.gz
tar -xvf OpenSP-1.5.2.tar
cd OpenSP-1.5.2
./configure
make
sudo make install

sudo perl -MCPAN -e shell

install Bundle::W3C::Validator
install HTTP::Request
install HTML::Encoding
install SGML::Parser::OpenSP
install XML::LibXML

I received a “Warning: XML::LibXML compiled against libxml2 20626, but runtime libxml2 is older 20620″ so I had to ‘force install XML::LibXML’

I also received a build error ‘/usr/bin/ld: flag: -undefined dynamic_lookup can’t be used with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1′ which can be fixed by changing your build target settings:
export MACOSX_DEPLOYMENT_TARGET=10.4

For the perl modules, if there were additional requirements which need to be added, I just entered ‘yes’ or accepted the default response.

Update July 12, 2007

More perl modules are needed now –

install Encode::HanExtra
install Encode::JIS2K