php使用phpize扩展big_int模块步骤

不妨设源码与安装目录分别为
/php-5.2.8
/php5

安装big_int.so的步骤为(利用phpize):
(1)下载big_int的源码
bigint_src.tar.gz;
(2)建立目录
/php5/ext
(3)将big_int的源码解压到/php5/ext中
/php5/ext/bigint
(4)到/php5/ext/bigint目录内
cd /php5/ext/bigint/
(5)执行
/php/bin/phpize
(6)依次执行
./configure –enable-big-int=shared –with-php-config=/php/bin/php-config
make
make install

注意:(4)和(5)的步骤中间不能加入其它步骤,
常见错误是,cd到/php/bin/,再执行phpize
此时提示错误:
Cannot find config.m4.
Make sure that you run ‘/usr/local/bin/phpize’ in the top level source directory of the module

评论关闭。