http://anduin.linuxfromscr
bzip2 -d tidy-cvs_20070326.tar.bz2
tar -xvf tidy-cvs_20070326.tar
cd tidy-cvs_20070326
./configure --prefix=/usr/local
make
make install
make clean
便安装成功了。
执行 tidy -asxhtml -numeric <index.html> index.xml
便可转换成功。html格式转成xhtml。也可反之:tidy -ashtml -numeric <index.xml> index.html
应该也有html tidy windows版本的,没有研究。
在网上搜了另外一套在linux下安装的方法,没有尝试,先贴过来。
epf:/home/user # tidy -v
tidy: error while loading shared libraries: libtidy-0.99.so.0: cannot open shared object file: No such file or directory
Because this wasn't' successful I tried to install an rpm I found on rpmfind.net:ftp://fr.rpmfind.net/linux
I tried to install using YaST: yast -i tidy-020428-277.src.rpm
yast runs this command without errors or messages, nothing seems to happen.