我正在尝试为MongoDB启用PHP。解决方案是相同的(首先安装php5-dev)在每个论坛,但安装失败,错误。安装MongoDB PHP驱动程序的方法
任何想法如何解决问题?
注:使用Ubuntu 12:04
[email protected]:~$ 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.
[email protected]:~$
“apt-get install php5-cli php5-dev”出现同样的错误。取决于这一点,取决于... – BentCoder
你是否从其他仓库安装软件包? – Derick
我使用apt-get来安装一些东西,而且在Linux中并不是很专业。 – BentCoder