Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tidy-html5 on Mac OS: how to install

Please help

I need to install HTML tidy on Mac OS http://w3c.github.com/tidy-html5/

I call the commands in the Terminal and get nothing:

$ make -C build/gmake/
make: *** build/gmake/: No such file or directory.  Stop.

$ sh build/gnuauto/setup.sh && ./configure && make
sh: build/gnuauto/setup.sh: No such file or directory

What's the problem? What else should I install?

like image 914
Vladimir Avatar asked Nov 14 '12 13:11

Vladimir


People also ask

What is libtidy?

libtidy is a C static and dynamic library that developers can integrate into their applications in order to bring all of Tidy's power to your favorite tools. libtidy is used today in desktop applications, web servers, and more.

What does HTML Tidy do?

HTML Tidy is a console application for correcting invalid HyperText Markup Language (HTML), detecting potential web accessibility errors, and for improving the layout and indent style of the resulting markup. It is also a cross-platform library for computer applications that provides HTML Tidy's features.

How do you use tidy?

The most convenient way to configure Tidy is by using separate configuration file. Alternatively, you can name the default config file via the environment variable named HTML_TIDY , the value of which is the absolute path for the config file.


1 Answers

The following worked for me:

brew update
brew install tidy-html5

Shell output:

➜  ~  brew install tidy-html5
==> Downloading https://homebrew.bintray.com/bottles/tidy-html5-4.9.26.yosemite.
######################################################################## 100.0%
==> Pouring tidy-html5-4.9.26.yosemite.bottle.tar.gz
🍺  /usr/local/Cellar/tidy-html5/4.9.26: 8 files, 1.2M
like image 195
Sagar Ranglani Avatar answered Oct 06 '22 20:10

Sagar Ranglani