我正在尝试为mac os x leopard上的php5安装pecl tidy扩展。我会变得整洁
http://pecl.php.net/package/tidy
版本1.2
我运行phpize,然后执行configure和make命令。在make命令中,我得到了这个错误: /usr/include/tidy/platform.h:530: error: duplicate‘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上安装tidy php扩展?有没有已经编译的tidy.so库,所以我只能安装而不编译它?
发布于 2012-09-27 17:16:46
从macports获取php5-tidy,以获得可以在MacOSX上运行的版本。
你可以从这里获得macports:http://www.macports.org,一旦安装好了,你只需要做"port install php5-tidy“
或者,您也可以使用HomeBrew http://mxcl.github.com/homebrew/
https://stackoverflow.com/questions/12617842
复制相似问题