无法在mac os x leopard上为php5安装整洁的html扩展名

时间:2012-09-27 09:09:08

标签: php installation pecl htmltidy

我正在尝试在mac os x leopard上为php5安装pecl tidy扩展。

我很整洁

http://pecl.php.net/package/tidy

版本1.2

我运行phpize,然后配置并生成命令。在make命令上我得到了这个错误: /usr/include/tidy/platform.h:530:错误:重复'unsigned'

/usr/include/tidy/platform.h:530: warning: useless type name in empty declaration
/Users/paganotti/Desktop/tidyphp/tidy-1.2/tidy-1.2/tidy.c: In function ‘zm_info_tidy’:
/Users/paganotti/Desktop/tidyphp/tidy-1.2/tidy-1.2/tidy.c:387: warning: cast from pointer to integer of different size
lipo: can't open input file: /var/tmp//ccUDFWws.out (No such file or directory)
make: *** [tidy.lo] Error 1

如何在mac os x leopard上安装整洁的php扩展?是否已经编译了tidy.so库,所以我只安装而不编译它?

1 个答案:

答案 0 :(得分:0)

从macports获取php5-tidy,以获得适用于MacOSX的版本。

你从这里得到macport:http://www.macports.org一旦你安装了,你只需要“port install php5-tidy”

或者,您可以使用HomeBrew http://mxcl.github.com/homebrew/