安裝 php 時出了問題
發表於 : 01/23/2007 11:03 am
因為手上多出一台 mac mini
打算要用它來架設一台含有 apache + php + mysql 的主機
我檢查了一下機器
已經內建 apache
所以我參考
http://switch.richard5.net/isp-in-a-box ... t-started/
安裝好 mysql
當我參考同一網站要安裝 php4 的時候
發現這樣的 error
不知道該怎麼辦才好?
打算要用它來架設一台含有 apache + php + mysql 的主機
我檢查了一下機器
已經內建 apache
所以我參考
http://switch.richard5.net/isp-in-a-box ... t-started/
安裝好 mysql
當我參考同一網站要安裝 php4 的時候
發現這樣的 error
代碼: 選擇全部
unassigned-48:/software/php-4.4.4 root# CFLAGS="-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk" \
> ./configure --prefix=/Library/PHP4 \
> --mandir=/usr/share/man \
> --infodir=/usr/share/info \
> --sysconfdir=/etc \
> --with-zlib \
> --with-xml \
> --with-zlib-dir=/usr \
> --with-openssl \
> --enable-exif \
> --enable-ftp \
> --enable-mbstring \
> --enable-mbregex \
> --enable-sockets \
> --with-mysql=/usr/local/mysql \
> --with-mysqli=/usr/local/mysql/bin/mysql_config \
> --with-apache
creating cache ./config.cache
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking host system type... powerpc-apple-darwin8.5.0
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH