dynamicnet
09-05-2009, 11:00 AM
Greetings:
Maybe I've read in the wrong area that Tidy 1.x is for PHP 4, and there's supposed to be a Tidy 2.x for PHP 5... but I cannot find Tidy 2.x anywhere.
I've been able to find php-tidy instructions for PHP 4, but cannot find any for PHP 5.
I've seen examples of installing php-tidy via yum, but on RHES 3/CentOS 3, there's no php-tidy in the operating system repository.
Does anyone have any instructions, examples of installing, etc. php-tidy for PHP 5.2.10 on RedHat 3/CentOS 3?
Thank you.
ssynchron
09-05-2009, 11:33 AM
I believe that php-tidy as RPM package is only available from RHEL/Centos 4 and up.
Tidy 2.x is included with PHP source code. Either download src.rpm package for 5.2.10 or the tar.gz source.
Install libtidty and libtidy devel
Unpack the source and change to the ext/tidy directory.
#phpize
#make clean
#make
#make install
Move the extension to your PHP extensions folder and add the it to php.ini.
This should work ...
dynamicnet
09-05-2009, 12:07 PM
Greetings:
This is an excellent start -- THANK YOU.
Question...
On the configure I run into a warning and error:
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for TIDY support... yes, shared
configure: error: Cannot find libtidy
1. Do I need to worry about the warning? If, yes, how do I fix it?
2. Where can I find libtidy for RedHat / CentOS 3?
Thank you.
ssynchron
09-05-2009, 12:44 PM
You're welcome.
1. Not sure about the warning. I would ignore it for now.
2. libtidy is only available by CVS. Here are the instructions :
http://www.mediawiki.org/wiki/Manual:Build_Tidy_from_source
Another option is to obtain tidy src.rpm package for RHEL5, unpack and retrieve the tar.gz from there (tidy-20070615cvs.tar.gz). You would have to unpack it in a CentOS/RHEL 5 machine to unpack as RPM version is not compatible.
CVS is the best option.
dynamicnet
09-05-2009, 08:22 PM
Greetings:
That appears to have done the trick.
Thank you very much for your time and help.
ssynchron
09-06-2009, 08:31 AM
No problem. Glad I could help.