首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装MongoDB PHP驱动程序的方法

安装MongoDB PHP驱动程序的方法
EN

Stack Overflow用户
提问于 2013-06-24 16:28:15
回答 6查看 10.3K关注 0票数 1

我正在尝试为Mongo DB启用PHP。每个论坛的解决方案都是一样的(先安装php5-dev ),但安装失败并出现错误。

你知道怎么解决问题吗?

注意:使用Ubuntu 12:04

代码语言:javascript
复制
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:~$ 
EN

回答 6

Stack Overflow用户

回答已采纳

发布于 2013-06-25 20:26:21

我使用this pagesources.list创建了一个新的内容,然后安装了Synaptic Package Manager来安装新的东西,解决了这个问题。

票数 2
EN

Stack Overflow用户

发布于 2013-06-24 22:00:33

假设您已经安装了MongoDB,您可以通过以下命令为MongoDB安装PHP驱动程序

代码语言:javascript
复制
sudo apt-get install php5-mongo
票数 9
EN

Stack Overflow用户

发布于 2014-05-16 03:55:18

代码语言:javascript
复制
sudo apt-get install php5-mongo

在PHP 5.5.9 / Ubuntu 14.04 LTS上工作

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17271037

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档