HTML::Tidy depends on a C library tidyp which is a fork, by the author, of libtidy. Compiling the source from the repository is not straight forward as a configure script is missing and additionally, the provided INSTALL instructions contain this warning:

If you do NOT have a ./configure program, then you are working from the source repository, not the tarball. Please get a release tarball from http://github.com/petdance/tidyp/downloads.

But the link is dead.

What worked for me (in Linux) was to bootstrap configure by using the autotools mantra:

libtoolize --ltdl --copy --force && aclocal && automake --add-missing --copy && autoconf

Then also shush the beast with adding these missing files: touch AUTHORS NEWS

And finally ./configure && make all && make install will hopefully install this dependency.

Warning: serious cargo-culting above.

Note both packages mentioned above are read-only and I could not find a way to post this comment there where it belongs.

bw, bliako


In reply to Installing HTML::Tidy by bliako

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.