安装最新的lnmp安装mongo扩展总是提示错误
Warning: PHP Startup: Unable to load dynamic library '/home/persy/download/mongo-1.5.4/modules/mongo.so' - /home/persy/download/mongo-1.5.4/modules/mongo.so: undefined symbol: zend_new_interned_string in Unknown on line 0sudo pecl install mongo 安装
64位 ubuntu pecl uninstall mongo后重新安装试试
安装的话应该会安装到/usr/local/php/lib/php/extensions/no-debug-non-zts-****/的目录
回复 2# 的帖子
安装成功后:Installing '/usr/lib/php5/20121212/mongo.so'
install ok: channel://pecl.php.net/mongo-1.5.4
configuration option "php_ini" is not set to php.ini location
You should add "extension=mongo.so" to php.ini
php.ini也添加扩展了: extension = /usr/lib/php5/20121212/mongo.so
php-fpm也reload了,但还是提醒没有mongo.php
回复 2# 的帖子
php-fpm重启时显示:undefined symbol: zend_new_interned_string
急
求答案 undefined symbol: zend_new_interned_string 按错误看像是64位的系统却安装了32位的模块具体原因不清楚
用标准的方式安装:https://www.vpser.net/manage/lnmp-php-install-ext.html
按目录看不是lnmp的
页:
[1]