note 79562 added to ref.tidy
| From: | badtzmari at gmail dot com | Date: | Mon, 03 Dec 2007 15:52:40 +0000 |
| Subject: | note 79562 added to ref.tidy | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132769@lists.php.net to get a copy of this message | ||
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
----
Server IP: 64.71.164.2
Probable Submitter: 70.19.9.66
----
Manual Page -- http://www.php.net/manual/en/ref.tidy.php
Edit -- https://master.php.net/note/edit/79562
Del: integrated -- https://master.php.net/note/delete/79562/integrated
Del: useless -- https://master.php.net/note/delete/79562/useless
Del: bad code -- https://master.php.net/note/delete/79562/bad+code
Del: spam -- https://master.php.net/note/delete/79562/spam
Del: non-english -- https://master.php.net/note/delete/79562/non-english
Del: in docs -- https://master.php.net/note/delete/79562/in+docs
Del: other reasons-- https://master.php.net/note/delete/79562
Reject -- https://master.php.net/note/reject/79562
Search -- https://master.php.net/manage/user-notes.php