簡體   English   中英

無法在Mac OS X Leopard上為PHP5安裝Tidy html擴展名

[英]Cannot install tidy html extension for php5 on mac os x leopard

我正在嘗試在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庫,所以我只安裝而不編譯它?

從macports獲取php5-tidy,以獲取可在MacOSX上使用的版本。

您可以從這里獲得macports: http//www.macports.org ,一旦安裝,您只需執行“ port install php5-tidy”

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM