无法在mac os x leopard上为php5安装tidy html扩展

无法在mac os x leopard上为php5安装tidy html扩展,php,installation,pecl,htmltidy,Php,Installation,Pecl,Htmltidy,我正试图在MacOSXLeopard上安装php5的PECLTidy扩展。 我从家里打扫干净 版本1.2 我运行phpize,然后配置并生成命令。在执行make命令时,我获得以下错误: /usr/include/tidy/platform.h:530:错误:重复“未签名” /usr/include/tidy/platform.h:530: warning: useless type name in empty declaration /Users/paganotti/Desktop/tidyp

我正试图在MacOSXLeopard上安装php5的PECLTidy扩展。 我从家里打扫干净

版本1.2

我运行phpize,然后配置并生成命令。在执行make命令时,我获得以下错误: /usr/include/tidy/platform.h:530:错误:重复“未签名”

/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上安装tidy php扩展?是否已经编译了一个tidy.so库,因此我只安装而不编译它?

从macports获取一个可以在MacOSX上运行的版本的php5 tidy

您可以从这里获得macports:一旦安装,您只需执行“port install php5 tidy”


或者,如果我安装了macports,您可以使用自制软件

,我当前的php5.3版本(带扩展名)是否仍然存在,或者是否已通过新安装全部清除?两者都应该是安全的,但您必须确保哪个版本用于什么用途。一般来说,使用Macports或Homebrew进行任何操作都比较容易,因为它可以处理后续的依赖项和更新。