1

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

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

1.2版

我运行 phpize,然后配置并制作命令。在 make 命令我得到这个错误:/usr/include/tidy/platform.h:530: error: duplicate 'unsigned'</p>

/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 库已经编译,所以我只安装而不编译它?

4

1 回答 1

0

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

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

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

于 2012-09-27T09:16:46.073 回答