linux php扩展安装gettext
php解压后的文件路径为/usr/local/src/php-5.2.6
php 的安装路径为/usr/local/php
[root@localhost# cd /usr/local/src/php-5.2.6
[root@localhost]# cd ext/
[root@localhost]# cd gettext/
[root@localhost]# pwd
/usr/local/src/php-5.2.6/ext/bcmath
[root@localhost]# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
[root@localhost]# ./configure --with-php-config=/usr/local/php/bin/php-config --with-gettext
[root@localhost]# make && make install
[root@localhost]# vim /usr/local/php/etc/php.ini 添加如下内容
extension_dir=/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/
extension=gettext.so
重启apache。