# 找到同版本的php原包,解压后进入ext目录,目录下便是模块列表,进入 gettext 模块。
cd ext/gettext
yum install autoconf
/usr/local/php/bin/phpize
./configure -with-php-config=/server/application/php54/bin/php-config
make && make install
在php.ini里添加上gettext.so
extension = "gettext.so"
重新加载php