この page は、1999/09/26 に Windows 95 にて HTML-lint を動作させる環境を整えた際の私的なメモです。
注: 2000/01/05 現在 ActivePerl build 522 install memo に書いてある環境で使用しています。 (ただし、C:\>jperl -S htmllint hoge.html ではなくて C:\>perl -S htmllint hoge.html です。)
Another HTML-lint gateway に出向くのが 3 回 4 回と続くとさすがに面倒になってくる。それで、 Another HTML-lint : Download に出向く。が、以下の条件が引っ掛かる。
Perl5.004以上が必要です。JPerlでは動作しません。
常用しているのが version 5.003_07 Perl for Win32 しかも jperl5.003_05.patch7_1 である。ほとんど使ってないが Perl/Tk を試した時に install しておいた ActivePerl の方が新しかったはずだと思い確かめる。
C:\>perl -v This is perl, version 5.005_02 built for MSWin32-x86-object (with 1 registered patch, see perl -V for more detail) Copyright 1987-1998, Larry Wall Binary build 509 provided by ActiveState Tool Corp. http://www.ActiveState.com Built 13:37:15 Jan 5 1999
htmllint は、こちらを使用するものとする。 CGI.pm と LWP はあるので install が必要なのは Jcode.pm だけである。さて、
perl -MCPAN -e shell
を実行すると、いろいろと質問されるので面倒、そこで Jcode-0.58.zip を download する。でも、
perl Makefile.PL; make; make install
ではなくて、
C:\temp\Jcode-0.58>perl win_install.pl
である。 Jcode.pm を組み込んだ後、動作確認、
C:\>perl -S htmllint hoge.html ・ (詳細省略) ・ 13個のエラーがありました。このHTMLは 96点です。タグが 24種類 869組使われています。
となる。
Mail Address:h_sasaki@nifty.com
© 1999-2000 佐々木仁志