Advertisement

08.16.2008 at 05:10AM PDT, ID: 23653374
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

Trying to install PHP Tidy package via PECL

Asked by tjgquicken in PHP Installation, PHP Scripting Language

Tags:

I'm trying to install the PHP Tidy package with PECL, but it's not working and I'm hoping someone can tell me what I'm doing wrong. I'm using PHP5 on a Mac and I downloaded the installation from that entropy.ch site. I would like to not have to re-install PHP if that's at all possible (because I don't want to break anything worse). This is the output from the command: sudo ./pecl install tidy:
$ sudo ./pecl install tidy
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: [I pressed Enter here]
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.4.0
checking host system type... i686-apple-darwin9.4.0
checking target system type... i686-apple-darwin9.4.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.4.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

Start Free Trial
[+][-]08.19.2008 at 09:18AM PDT, ID: 22261262

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: PHP Installation, PHP Scripting Language
Tags: PHP
Sign Up Now!
Solution Provided By: Squinky
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628