Tidy

Any wishes or suggestions for MAMP?
Post here what functions you are still missing for MAMP.

Moderator: severin

Tidy

Postby saturn5 » Mon Sep 01, 2008 1:28 am

Please add tidy to MAMP. It would be very useful to many developers.

While I've been able to use PECL to install new PHP extensions, for some reason I've been unsuccessful with installing tidy. Since tidy would be of general use to many developers, perhaps it would make more practical sense for the MAMP maintainers to include it.
saturn5
 
Posts: 1
Joined: Mon Sep 01, 2008 1:22 am

Re: Tidy

Postby Eelco » Fri Jan 16, 2009 11:59 am

I have find a way to use Tidy with the PHP of MAMP

- Download php 5.2.6 from the PHP website
*http://nl.php.net/get/php-5.2.6.tar.bz2/from/a/mirror
- Unpack it somewhere
- There is a bug in Tidy.c so we have to change something first. (Nobody said this was a regular installation)
- In finder go to the ./ext/tidy folder and open tidy.c
- move line 34: #include "tidy.h" to line 24 of tidy.c
*More detailed explenation: http://blog.yimingliu.com/2008/01/26/php-525-compile-error-macro-issue/
- Launch the terminal and go to the folder of the php source file
- Configure the build: ./configure --with-tidy=shared
- Make the build: make
- In the folder ./modules there is the tidy module: tidy.so
- Copy this file to: /Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922/
- Open php.ini add the following line: extension=tidy.so (for example at line: 547)

Restart Apache en check the phpinfo page.
Eelco
 
Posts: 1
Joined: Fri Jan 16, 2009 11:24 am

Re: Tidy

Postby Adrian B » Sun Jan 03, 2010 4:00 am

I second the request for Tidy in MAMP.

The way Eelco found seems complicated, just having it installed by default would be much better.
Adrian B
 
Posts: 3
Joined: Sat Sep 12, 2009 8:59 am

Re: Tidy

Postby Adrian B » Mon Jan 04, 2010 1:51 pm

I tried the solution Eelco posted with PHP 5.2.12, but with no luck.

First I ran into the iconv bug and had to edit the iconv.c file according to a patch from Apple. Then I ran into a tidy bug so I had to download PHP 5.3.1 and copy the tidy folder to my PHP 5.2.12 folder. Then I finally go my tido.so file that I copied to the no-debug-non-zts-20060613 in MAMP. But still no support for Tidy in MAMP... :(

So, I still wish MAMP would include support of Tidy by default.
Adrian B
 
Posts: 3
Joined: Sat Sep 12, 2009 8:59 am


Return to List of wishes

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest