note 79562 deleted from ref.tidy by cmb
| From: | cmb@php.net | Date: | Sun, 21 Oct 2018 16:37:42 +0000 |
| Subject: | note 79562 deleted from ref.tidy by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-209483@lists.php.net to get a copy of this message | ||
Note Submitter: badtzmari at gmail dot com
----
The manual doesn't really make it clear that the PECL ext is only for php4. For php5, you have
to use the --with-tidy option. (At least, this was the case for me with php 5.2.5 on Mac OS 10.4 -
Tiger.) Tiger ships with tidylibs already installed in /usr/include but there is broken header file.
The easiest way to get php to compile with Tidy on 10.4 (and 10.5 Leopard also) is to download
Macports and use that to install tidy (unless you want to build tidy from src.) After installing
Macports via the .dmg, just su root and do:
port install tidy
(port is installed in /opt/local/bin)
Then configure --with-tidy=/opt/local (Macports installs stuff in /opt/local).
You can also use Macports to install all sorts of other libs such as png, libmcrypt, freetype and
jpeg (although libpng and libjpeg are also available as package installs.)
The specific compile error is:
In file included from /usr/include/tidy/tidy.h:70,
from /Users/mari/Downloads/php-5.2.5/ext/tidy/
tidy.c:34:
/usr/include/tidy/platform.h:515: error: duplicate 'unsigned'
/usr/include/tidy/platform.h:515: warning: useless type name in empty declaration