如何获得旧版本的 mongodb?
how to get older versions of mongodb?
所以我做了 sudo apt-get install php5-mongo
,当我这样做时 composer require "mongodb/mongodb=~1.0.0"
我得到了这个:
Problem 1
- Installation request for mongodb/mongodb ~1.0.0 -> satisfiable by mongodb/mongodb[1.0.0].
- mongodb/mongodb 1.0.0 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
当我这样做时 dpkg -s php5-mongo
我得到这个:
Package: php5-mongo
Status: install ok installed
Priority: optional
Section: php
Installed-Size: 326
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: php-mongo
Version: 1.4.5-1build1
Depends: libc6 (>= 2.15), phpapi-20121212
Conffiles:
/etc/php5/mods-available/mongo.ini f2a4848fe0856c5bbaf2afc4aee7a1b9
Description: MongoDB database driver
This package provides an interface for communicating with the MongoDB database
in PHP.
Original-Maintainer: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Homepage: http://www.mongodb.org/display/DOCS/PHP+Language+Center
问题是我的 ext-mongodb 安装太新了吗?根据 dpkg 的输出,我猜我是 运行 ext-mongodb 1.4.5 而不是 https://github.com/mongodb/mongo-php-library
所需的 1.1.0
编辑:echo phpversion('mongo')
我也得到了 1.4.5。
我刚刚卸载了 php5-mongo 的 apt-get 安装版本,并根据 http://mongodb.github.io/mongo-php-driver/#installation.
使用 pecl 安装了它
这肯定更烦人,因为我必须手动安装所有依赖项。 None-the-less,如果 apt-get 没有安装任何在 Ubuntu 14.04 中可用的东西,他们似乎应该修复它..
我在 Ubuntu Launchpad 上打开了一个请求,以获取也适用于 trusty-universe (Ubuntu14) 的新 php-mongodb 驱动程序。它在 xenial 中可用,但针对 PHP7 API 构建。 https://bugs.launchpad.net/ubuntu/+source/php-mongodb/+bug/1579815
所以我做了 sudo apt-get install php5-mongo
,当我这样做时 composer require "mongodb/mongodb=~1.0.0"
我得到了这个:
Problem 1
- Installation request for mongodb/mongodb ~1.0.0 -> satisfiable by mongodb/mongodb[1.0.0].
- mongodb/mongodb 1.0.0 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
当我这样做时 dpkg -s php5-mongo
我得到这个:
Package: php5-mongo
Status: install ok installed
Priority: optional
Section: php
Installed-Size: 326
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: php-mongo
Version: 1.4.5-1build1
Depends: libc6 (>= 2.15), phpapi-20121212
Conffiles:
/etc/php5/mods-available/mongo.ini f2a4848fe0856c5bbaf2afc4aee7a1b9
Description: MongoDB database driver
This package provides an interface for communicating with the MongoDB database
in PHP.
Original-Maintainer: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Homepage: http://www.mongodb.org/display/DOCS/PHP+Language+Center
问题是我的 ext-mongodb 安装太新了吗?根据 dpkg 的输出,我猜我是 运行 ext-mongodb 1.4.5 而不是 https://github.com/mongodb/mongo-php-library
所需的 1.1.0编辑:echo phpversion('mongo')
我也得到了 1.4.5。
我刚刚卸载了 php5-mongo 的 apt-get 安装版本,并根据 http://mongodb.github.io/mongo-php-driver/#installation.
使用 pecl 安装了它这肯定更烦人,因为我必须手动安装所有依赖项。 None-the-less,如果 apt-get 没有安装任何在 Ubuntu 14.04 中可用的东西,他们似乎应该修复它..
我在 Ubuntu Launchpad 上打开了一个请求,以获取也适用于 trusty-universe (Ubuntu14) 的新 php-mongodb 驱动程序。它在 xenial 中可用,但针对 PHP7 API 构建。 https://bugs.launchpad.net/ubuntu/+source/php-mongodb/+bug/1579815