Reputation: 523
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?
Upvotes: 17
Views: 12267
Reputation: 2459
To install tidy5 which is the most up-to-date version of Tidy for OS X:
Ensure you have homebrew installed.
Then tap the dupes repository which provides brew recipes for new versions / bug fixes of software which is provided by the OS X system.
$ brew tap homebrew/dupes
Install Tidy (tidy-html5)
$ brew install --HEAD tidy
Untap the dupes repository
$ brew untap homebrew/dupes
To invoke
$ tidy5 -v
> HTML Tidy for Mac OS X version 5.4.0
Upvotes: 2
Reputation: 11213
tidy-html5
has been promoted to stable, so you should simply need to run in an up-to-date installation of Homebrew the command:
$ brew install tidy-html5
Upvotes: 15
Reputation: 5691
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
Upvotes: 27
Reputation: 117
The problem is that the documentation doesn't mention that you have to be in the bundle directory to run the first commands. The commands given are relative to the bundle directory.
Steps I just did successfully yesterday:
cd ~/Library/Application Support/Avian/Pristine Copy/Bundles
git clone https://github.com/w3c/tidy-html5
cd tidy-html5/
sudo make -C build/gmake/
sudo make install -C build/gmake/
Not sure about the shared library part because I did not go through those steps.
Upvotes: 0
Reputation: 121
It didn't work for me, but here is what did:
Tap dupes repository:
brew tap homebrew/dupes
Homebrew dupes repository contains
formulae [that] duplicate software provided by OS X, though may provide more recent or bugfix versions.
Then install from the dupes repository:
brew install tidy --HEAD
Upvotes: 5
Reputation: 2096
I've just installed the Tidy in Mac OS X 10.9.1:
brew install tidy
It will automatically install its dependencies: automake and libtool
And you may notice, I have a default tidy under /usr/bin/tidy, which has a version:
HTML Tidy for Mac OS X released on 31 October 2006 - Apple Inc. build 15.12
After installation of Homebrew, the version appears as
HTML Tidy for Mac OS X released on 25 March 2009
, under the path: /usr/local/Cellar/20090325/bin/tidy
Upvotes: 1