我正在尝试为Mongo DB启用PHP。每个论坛的解决方案都是一样的(先安装php5-dev ),但安装失败并出现错误。
你知道怎么解决问题吗?
注意:使用Ubuntu 12:04
jojo@ubuntu:~$ sudo apt-get install php-pear php5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php-pear : Depends: php5-cli but it is not going to be installed
php5-dev : Depends: autoconf (>= 2.63) but it is not installable
Depends: automake (>= 1.11) but it is not installable
Depends: libtool (>= 2.2) but it is not installable
Depends: shtool but it is not installable
E: Unable to correct problems, you have held broken packages.
jojo@ubuntu:~$ 发布于 2013-06-25 20:26:21
我使用this page为sources.list创建了一个新的内容,然后安装了Synaptic Package Manager来安装新的东西,解决了这个问题。
发布于 2013-06-24 22:00:33
假设您已经安装了MongoDB,您可以通过以下命令为MongoDB安装PHP驱动程序
sudo apt-get install php5-mongo发布于 2014-05-16 03:55:18
sudo apt-get install php5-mongo在PHP 5.5.9 / Ubuntu 14.04 LTS上工作
https://stackoverflow.com/questions/17271037
复制相似问题