PHP7安装问题解决

ext/standard/info.o: In function `php_info_print_request_uri’:
/root/php-5.4.16/ext/standard/info.c:97: undefined reference to `sapi_globals’
ext/standard/info.o: In function `php_print_gpcse_array’:
/root/php-5.4.16/ext/standard/info.c:209: undefined reference to `executor_globals’
ext/standard/info.o: In function `php_print_info’:
/root/php-5.4.16/ext/standard/info.c:874: undefined reference to `executor_globals’
/root/php-5.4.16/ext/standard/info.c:877: undefined reference to `executor_globals’
/root/php-5.4.16/ext/standard/info.c:880: undefined reference to `executor_globals’
/root/php-5.4.16/ext/standard/info.c:883: undefined reference to `executor_globals’
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] 错误 1

出现这样的错误信息可能是以前用不同的参数编译过PHP

解决方法:执行make clean删除上次的编译结果,然后再重新编译就OK了。

要在PHP配置openssl 使用了1.0.1r版本 成功。1.0.2f版本尝试不成功,原因不详。

其中安装配置openssl时要用  ./config shared

posted on 2016-02-13 11:55  月尽西楼  阅读(636)  评论(0编辑  收藏  举报

导航