W3C home > Mailing lists > Public > public-qa-dev@w3.org > April 2008

Installation of the validator on macosx 10.5.2

From: Karl Dubost <karl@w3.org>
Date: Wed, 9 Apr 2008 21:57:48 +0900
Message-Id: <DD2DF7D6-D6F5-45F9-B3DF-09BC3A7EB411@w3.org>
To: "public-qa-dev@w3.org list" <public-qa-dev@w3.org>

Hi olivier,

I tried to install the validator with a "clean" system on the macbook,  
and with a kind of dumb scenario, where I don't try to solve issues  
but hit return key.

% uname -a
Darwin tanabata.local 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar  4  
21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386 i386
My system is Mac OS X 10.5.2

I have a few note to add to the page

1. Before installing, reserve a good chunk of time around 2h.

2. use mcpan
    sudo perl -MCPAN -e shell
    install Bundle::CPAN
    quit  (because the reload cpan doesn't work with the fresh  
install. There are new config parameters)

3. install OpenSP *first*
    (before Bundle::W3C::Validator because of   BJOERN/SGML-Parser- 
    OpenSP (XMLTO missing), I had to deactivate doc build.
    ./configure --disable-doc-build
    sudo make install

4. sudo perl -MCPAN -e shell
    install Bundle::W3C::Validator

5. The link for downloading SGML::Parser::OpenSP  is
    BUT after doing 3 and 4, cpan tells me

    cpan[1]> install SGML::Parser::OpenSP
    CPAN: Storable loaded ok (v2.15)
    Going to read /Users/karl/.cpan/Metadata
    Database was generated on Wed, 09 Apr 2008 06:29:49 GMT
    SGML::Parser::OpenSP is up to date (0.991).

    so I guess no need to install it by hand. It is not clear from the  
    If I understand either you install all individual things, or just  
the bundle.
    Making it clearer with two roads choice.

6.  mkdir ~/validator
     put the validator package in this directory and the sgml-lib
     cd validator
     tar zxvf validator.tar.gz
     tar zxvf sgml-lib.tar.gz
     mkdir ~/Sites/validator
     mv validator-0.8.2/htdocs/ ~/Sites/validator/
     mv validator-0.8.2/httpd/cgi-bin/ ~/Sites/validator/
     cd ~/Sites/validator/
   	cgi-bin/ htdocs/  share/

7. Apache Configuration
     sudo cp ~/validator/validator-0.8.2/httpd/conf/httpd.conf / 

   [The default apache config file on the mac has a line which is
    Include /private/etc/httpd/users/*.conf  ]

    emacs /private/etc/httpd/users/validator.conf
    - replaced /usr/local/ by /Users/karl/Sites/
    - commented the IfDefine MODPERL2
    - wrapped the full content with
      <VirtualHost *:80>
    ServerName validator.test.site
    DocumentRoot /Users/karl/Sites/validator/htdocs/

     [full content]


8. Testing syntax
    sudo apachectl configtest
    Syntax OK

9. emacs /etc/hosts
    adding the line   validator.test.site

10. Restart the local server
     sudo apachectl graceful

11. launching browser with http://validator.test.site/
     accessing the wrong place. :)))
     Must have a config error somewhere.

Will try to see tomorrow. :)

Karl Dubost - W3C
Be Strict To Be Cool
Received on Wednesday, 9 April 2008 12:58:24 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:54:53 UTC