It took a lot of time (i.e. more than 10 sec... `I wasn't feeling lucky`!) to find how to build libtidy.so (aka tidylib.so) -- HTML Tidy as a shared Linux library. Code from CVS builds only static library (libtidy.a).
Here is the script extracted from
SourceForge Forum
Building shared library for tidy:
for FN in src/*.c
do
libtool gcc -I ./include/ -g -O -c $FN
done
libtool gcc -g -O -o libtidy.la *.lo -rpath /usr/local/lib -lm
# This part requires root access...
libtool install -c libtidy.la /usr/local/lib/libtidy.la
[ -d /usr/local/include/tidy ] || mkdir /usr/local/include/tidy
cp include/*.h /usr/local/include/tidy/
ldconfig
Now you can install tidy Gem and use HTML Tidy in Ruby on Linux. Windows DLL files can be found at http://dev.int64.org/tidy.html