Installation of the validator on macosx 10.5.2

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
http://validator.w3.org/docs/install.html#install-fromsource

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-0.991.tar.gz)
    OpenSP (XMLTO missing), I had to deactivate doc build.
    ./configure --disable-doc-build
    make
    sudo make install

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

5. The link for downloading SGML::Parser::OpenSP  is
    http://sourceforge.net/project/showfiles.php?group_id=106431
    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  
doc.
    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/
     ls
   	cgi-bin/ htdocs/  share/

7. Apache Configuration
     sudo cp ~/validator/validator-0.8.2/httpd/conf/httpd.conf / 
private/etc/httpd/users/validator.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]

      </VirtualHost>


8. Testing syntax
    sudo apachectl configtest
    Syntax OK

9. emacs /etc/hosts
    adding the line
    127.0.0.1   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
http://www.w3.org/QA/
Be Strict To Be Cool

Received on Wednesday, 9 April 2008 12:58:24 UTC