2010年7月6日 星期二

Sorry, I was not able to successfully run APXS

最近網站效能碰到瓶頸,想說終於是該用PHP加速器了
APC、eAccelerator、XCache 中我挑了APC
在APC安裝前要先確定系統已安裝php-pear
安裝很簡單就像安裝pear的套件一樣,只是改成pecl而已
pecl install apc
若沒有意外的話會碰上
Sorry, I was not able to successfully run APXS
囧>,那是apache的應用程式相關
所以
yum install httpd-devel
就OK囉!

 --
但是我裝另外一台,就很不給面子出現
CRITICAL ERROR: We are channel://pear.php.net/apc-3.0.19
只好手動安裝
下載http://pecl.php.net/package/APC
照著document即可安裝成功。

參考網站
http://pecl.php.net/package/APC
http://pecl.php.net/bugs/bug.php?id=5942
--
20101227追加
在新機器上要裝apc時出現
error: pcre.h: No such file or directory

安裝一下吧
yum -y install pcre-devel

重新run一次即可

參考網站
http://www.centos.org/modules/newbb/viewtopic.php?topic_id=8447

沒有留言:

張貼留言