473,249 Members | 1,747 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,249 software developers and data experts.

Install PHP Tidy

Can somebody please tell me how to install the Tidy module for PHP 5
on a Mac? I tried what the php.net website said, which is running the
command "pecl install tidy" but the installation failed somewhere in
the make script. (It looks like PECL is trying to install Tidy version
1.2, even though the documentation says that's only for PHP4.) Any
help would be greatly appreciated.

Here's the output from the "pecl install tidy" command in case it's
helpful:

downloading tidy-1.2.tgz ...
Starting to download tidy-1.2.tgz (9,602 bytes)
......done: 9,602 bytes
3 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
1. Tidy library installation dir? : autodetect

1-1, 'all', 'abort', or Enter to continue:
building in /var/tmp/pear-build-root/tidy-1.2
running: /private/tmp/pear/download/tidy-1.2/configure --with-tidy
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-apple-darwin9.5.0
checking host system type... i686-apple-darwin9.5.0
checking target system type... i686-apple-darwin9.5.0
checking for PHP prefix... /usr/local/php5
checking for PHP includes... -I/usr/local/php5/include/php -I/usr/
local/php5/include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/
local/php5/include/php/Zend -I/usr/local/php5/include/php/ext -I/usr/
local/php5/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/php5/lib/php/
extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/php5/include/
php
checking for re2c... no
configure: WARNING: You will need re2c 0.12.0 or later if you want to
regenerate PHP parsers.
checking for gawk... no
checking for nawk... no
checking for awk... awk
checking if awk is broken... no
checking for TIDY support... yes, shared
checking for ld used by gcc... /usr/libexec/gcc/i686-apple-
darwin9/4.0.1/ld
checking if the linker (/usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld)
is GNU ld... no
checking for /usr/libexec/gcc/i686-apple-darwin9/4.0.1/ld option to
reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 196608
checking command to parse /usr/bin/nm -p output from gcc object... rm:
conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
checking if gcc static flag works... rm: conftest.dSYM: is a
directory
yes
checking if gcc supports -fno-rtti -fno-exceptions... rm:
conftest.dSYM: is a directory
no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... rm: conftest.dSYM: is a
directory
yes
checking if gcc supports -c -o file.o... rm: conftest.dSYM: is a
directory
yes
checking whether the gcc linker (/usr/libexec/gcc/i686-apple-
darwin9/4.0.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin9.5.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /private/var/tmp/pear-build-root/tidy-1.2/libtool --
mode=compile gcc -I. -I/private/tmp/pear/download/tidy-1.2 -
DPHP_ATOM_INC -I/private/var/tmp/pear-build-root/tidy-1.2/include -I/
private/var/tmp/pear-build-root/tidy-1.2/main -I/private/tmp/pear/
download/tidy-1.2 -I/usr/local/php5/include/php -I/usr/local/php5/
include/php/main -I/usr/local/php5/include/php/TSRM -I/usr/local/php5/
include/php/Zend -I/usr/local/php5/include/php/ext -I/usr/local/php5/
include/php/ext/date/lib -I/usr/include/tidy -DHAVE_CONFIG_H -g -
O2 -c /private/tmp/pear/download/tidy-1.2/tidy.c -o tidy.lo
mkdir .libs
gcc -I. -I/private/tmp/pear/download/tidy-1.2 -DPHP_ATOM_INC -I/
private/var/tmp/pear-build-root/tidy-1.2/include -I/private/var/tmp/
pear-build-root/tidy-1.2/main -I/private/tmp/pear/download/tidy-1.2 -I/
usr/local/php5/include/php -I/usr/local/php5/include/php/main -I/usr/
local/php5/include/php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/
local/php5/include/php/ext -I/usr/local/php5/include/php/ext/date/lib -
I/usr/include/tidy -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/
download/tidy-1.2/tidy.c -fno-common -DPIC -o .libs/tidy.o
In file included from /usr/include/tidy/tidy.h:70,
from /private/tmp/pear/download/tidy-1.2/php_tidy.h:
39,
from /private/tmp/pear/download/tidy-1.2/tidy.c:27:
/usr/include/tidy/platform.h:530: error: duplicate 'unsigned'
/usr/include/tidy/platform.h:530: warning: useless type name in empty
declaration
/private/tmp/pear/download/tidy-1.2/tidy.c: In function
'php_tidy_quick_repair':
/private/tmp/pear/download/tidy-1.2/tidy.c:301: warning: pointer
targets in passing argument 2 of 'tidyBufAttach' differ in signedness
/private/tmp/pear/download/tidy-1.2/tidy.c:312: warning: pointer
targets in initialization differ in signedness
/private/tmp/pear/download/tidy-1.2/tidy.c: In function
'zif_tidy_parse_string':
/private/tmp/pear/download/tidy-1.2/tidy.c:414: warning: pointer
targets in passing argument 2 of 'tidyBufAttach' differ in signedness
/private/tmp/pear/download/tidy-1.2/tidy.c: In function
'zif_tidy_get_error_buffer':
/private/tmp/pear/download/tidy-1.2/tidy.c:444: warning: pointer
targets in initialization differ in signedness
/private/tmp/pear/download/tidy-1.2/tidy.c: In function
'zif_tidy_get_output':
/private/tmp/pear/download/tidy-1.2/tidy.c:463: warning: pointer
targets in initialization differ in signedness
/private/tmp/pear/download/tidy-1.2/tidy.c: In function
'zif_tidy_parse_file':
/private/tmp/pear/download/tidy-1.2/tidy.c:490: warning: pointer
targets in passing argument 2 of 'tidyBufAttach' differ in signedness
make: *** [tidy.lo] Error 1
ERROR: `make' failed
Oct 4 '08 #1
0 5004

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: compu_global_hyper_mega_net_2 | last post by:
Greetings, usenet's obviously dying. Where's everyone hanging out? One of the yahoo groups or something? anyway. Hopefully someone picks this up: I'm trying to compile php-5.0.0RC2 with...
0
by: Börni | last post by:
Hello, I am using tidy to clean up an xml file, but my problem is that it replaces newlines with normal whitespaces. Still worse is that if i retrieve text from the xml file it contains all...
12
by: Stefan Weiss | last post by:
Hi. (this is somewhat similar to yesterday's thread about empty links) I noticed that Tidy issues warnings whenever it encounters empty tags, and strips those tags if cleanup was requested....
0
by: Christoph Schneegans | last post by:
Hi! I'd like to present an easy, yet powerful approach to use the HTML Tidy program from <http://tidy.sourceforge.net/> in ASP.NET. It is similiar to...
40
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic...
0
by: bgmahesh | last post by:
hi I am having difficulty in installing Tidy with PHP 5.0.4 (I am not allowed to use a later version of PHP). We are using OpenSuse. Any tips on how to get this installed is appreciated ...
0
by: BG Mahesh | last post by:
hi I have installed Tidy on Fedore Core 4.0 using RPM. I have a very simple script that uses tidy, ------------tidy.php------------------ <html>a html document</html> <? $html =...
1
by: Martin Odhelius | last post by:
Hello, Does anybody here have any example code for Tidy.Net (http://sourceforge.net/projects/tidynet/) ? I can't find one single example. I try to convert a html-string to well formed xhtml,...
0
by: howa | last post by:
For example, e.g. yum search php-tidy so it can be easily installed via yum install php-tidy but not, e.g. yum search php-memcache
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.