Make PHP in 64bit CentOS
./configure\--with-apxs2=/usr/local/apache2/bin/apxs \
--with-config-file-path=/etc \
--with-bz2 \
--enable-zip \
--enable-mbstring \
--with-zlib-dir \
--with-libxml-dir \
--with-mcrypt \
--with-mysql \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-gettext \
--enable-calendar \
--with-libdir=lib64
如果make時沒有安裝到的module,可利用此方法加裝module
[*]進入PHP source code 的 ext\modulename 目錄中,執行phpize (會產生configure文件)
[*]make && make install
[*]修改/etc/php.ini,加入extension=xxxxxx.so
Reference:
php gettext 實現多語言
頁:
[1]