【发布时间】:2016-05-27 20:57:07
【问题描述】:
我以这种方式将我的 php5 版本从 5.4 升级到 5.6(debian 7.9):
我加了
deb http://packages.dotdeb.org wheezy-php56 all
deb-src http://packages.dotdeb.org wheezy-php56 all
到我的 /etc/apt/source.list 文件,然后:
apt-get update
apt-get install php5
一切正常:
php --version
PHP 5.6.16-1
但我需要升级我的 php mongodb 驱动程序,我收到以下错误:
pecl install mongodb
331 source files, building
running: phpize
Configuring for:
PHP Api Version: 20131106
Zend Module Api No: 20131226
Zend Extension Api No: 220131226
building in /tmp/pear/temp/pear-build-rootmStnQj/mongodb-1.0.0
running: /tmp/pear/temp/mongodb/configure --with-php-config=/usr/bin/php-config
[...]
checking for pkg-config... no
configure: error: Cannot find OpenSSL's libraries
ERROR: `/tmp/pear/temp/mongodb/configure --with-php-config=/usr/bin/php-config' failed
我已经安装了 openssl 和 libssl-dev。 有什么想法吗?
【问题讨论】:
-
apt-get remove mongodb* --purge 成功了,谢谢!!