2012年9月4日 星期二
如何在 Linux CentOS 6.3 安裝 php-bcompiler 套件!
因為 bcompiler 是屬於 PECL 裡頭的套件,必須使用 pecl 指令安裝,安裝時會使用到 phpize,因此必須先安裝 php-devel 套件。
■ 安裝 php-devel 指令:
yum -y install php-devel
■ 安裝 php-bcompiler 指令:
pecl install channel://pecl.php.net/bcompiler-0.9.3
注意 php 5.3.x 之後,bcompiler 只能使用 0.9.3 版,這一版和 0.8 不相容,經 0.8 版編碼過的 php 程式碼無法在 0.9.3 上頭跑。
■ 設定 php.ini 檔,編輯 /etc/php.ini 在最底下增加一行:
extension=bcompiler.so
■ 重新載入 httpd 就 ok,指令:
service httpd reload
如何在 Linux CentOS 6.3 安裝 php-mcrypt 套件!
Linux CentOS 6.3 預設並不包含 php-mcrypt 套件,因此必須從 Extra Packages for Enterprise Linux (EPEL) 套件來源安裝。
EPEL 官方網址 http://fedoraproject.org/wiki/EPEL
EPEL 套件來源設定檔 http://mirror01.idc.hinet.net/EPEL/6/i386/epel-release-6-7.noarch.rpm
■ 安裝 EPEL 套件來源指令:
yum -y install http://mirror01.idc.hinet.net/EPEL/6/i386/epel-release-6-7.noarch.rpm
■ 安裝 php-mcrypt 指令:
yum -y install php-mcrypt
2012年9月3日 星期一
訂閱:
文章 (Atom)