Support for tidy not included (libtidy) in php5
Bug #41690 reported by
Dave Lane
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php |
Fix Released
|
Unknown
|
|||
php5 (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
It appears that php5 5.1.2-1ubuntu2 (current for Dapper beta1) is not compiled with "tidy" support. Given that all the tidy and libtidy building blocks are already available as ubuntu packages, it seems sensible to compile php5 with libtidy support and make it a dependency...
description: | updated |
Changed in php: | |
status: | Unconfirmed → Fix Committed |
Changed in php: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I can confirm this problem. I had to follow the instructions at http:// alexfarran. blogspot. com/2006/ 06/howto- add-libtidy- support- to-php5- in.html in order to compile my own php package for ubuntu.
A royal pain in the putuckus for a one line change. The configure script just needed --with-tidy passed to it.
The pain was installing all the dependencies for compiling php, and spending several hours actually compiling php.
I agree. --with-tidy should be part of the compiliation for the php5 package for ubuntu, and libtidy should be listed as a dependency.
Installing tidy, tidy-doc, libtidy-dev, php5-dev, and php-pear allow you to run the following command:
pecl install tidy
This compiles and installs tidy.so. If you edit /etc/php5/ apache2/ php.ini, and add tidy.so as an extension, then phpinfo() lists tidy as an extension, but calls to the tidy class fail anyway. Apparently, tidy must be compiled as part of php5 on Ubuntu, and cannot be loaded correctly as an extension.