我正在使用Symfony 3.4Flex和奏鸣曲-admin-bundle:"^3.33“和"php":"^7.0.8"...i想要在我运行时安装理论-mongodb bundle.m.
php composer.phar require sonata-project/doctrine-mongodb-admin-bundle 3.*@dev
我有这个错误
Your requirements could not be resolved to an installable set of packages.
Problem 1
我也在我的php.ini中安装了mongoDB扩展,但它仍然显示以下错误,有人能帮助我吗?
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- mongodb/mongodb 1.1.2 requires ext-mongodb ^1.2.0 -> the requ
我安装了yii2、composer和MAMP,但当我更新composer时出现错误 - yiisoft/yii2-mongodb 2.1.7 requires ext-mongodb >=1.0.0 -> the requested PHP extension mongodb is missing from your system.
- yiisoft/yii2-mongodb 2.1.6 requires ext-mongodb >=1.0.0 -> the requested PHP extension mongodb is missing from
我正在尝试通过带有Zend Framework2的composer在我的本地计算机上安装Doctrine ODM ,但是我一直收到一个错误,指出我的计算机中缺少MongoDB扩展芒果。我正在使用一台安装了Wamp2.2的Windows7 x64。我最初安装的是1.3.1 mongodb php驱动程序。然而,我发现还不支持这个驱动程序,所以我降级到了1.2.12。在我再次尝试安装后,我仍然得到相同的错误:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- d
我尝试在composer上安装主义/mongodb-odm1.0.5,但失败了
Problem 1
- doctrine/mongodb 1.3.0 requires ext-mongo ^1.5 -> the requested PHP extension mongo is missing from your system.
- doctrine/mongodb 1.2.2 requires ext-mongo ^1.2.12 -> the requested PHP extension mongo is missing from your system.
电脑: 2009年中Mac Book Pro和OSX Lion
您好,我的Symfony2安装目前遇到问题。
我正在和一些朋友合作一个Symfony2 collab项目,我们使用composer和git来协调我们所有的工作。这就是说,我通常使用composer来获取我需要的任何东西,没有任何问题。
然而,他们最近开始使用MongoDB,因此php使用的MongoDB扩展(和Symfony2),当我使用Composer更新时,这是控制台“吐出来的”。
composer update
Loading composer repositories with package information
Up
我想在yii框架中使用mongodb,因为我正在尝试安装mongodb扩展。根据提供的文档,我已经在我的composer.json文件中添加了一行“yiisoft/yii2-mongoDB”:“~2.0.0”。
但是,每当我发出命令composer update来安装这个扩展时,它都会给出以下错误。
Your requirements could not be resolved to an installable set of packages.
Problem 1
- yiisoft/yii2-mongodb 2.0.4 requires ext-mongo &
我正在尝试安装yii2 mongodb扩展,但在运行composer更新时出现了此错误
Problem 1
- yiisoft/yii2-mongodb 2.1.1 requires ext-mongodb >=1.0.0 -> the requested PHP extension mongodb is missing from your system.
- yiisoft/yii2-mongodb 2.1.0 requires ext-mongodb >=1.0.0 -> the requested PHP extension mongodb is
我正面临着这个错误
PHP Warning: PHP Startup: Unable to load dynamic library 'mongodb.so' (tried: /opt/homebrew/lib/php/pecl/20210902/mongodb.so (dlopen(/opt/homebrew/lib/php/pecl/20210902/mongodb.so, 0x0009): symbol not found in flat namespace '_u_strFromUTF8_67'), /opt/homebrew/lib/php/pecl
我想使用hhvm来加快composer更新的安装过程。一切都很好,直到我想安装doctrine/ mongodb -odm,它需要mongodb php扩展。我得到以下输出:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- doctrine/mongodb-odm 1.0.x-dev requires doctrine/mongodb >=1.1.5,<2.0 -> satisfiable by doctrine/mongodb[1.2.
你好,我是刚在composer mongodb上安装mongodb的,现在我正在我的COMMAND PROMPT上安装mongodb,但是它给了我错误消息。
composer require mongodb/mongodb
错误:
Cannot use mongodb/mongodb's latest version 1.13.1 as it requires ext-mongodb ^1.14.0 which is missing from your platform.
In PackageDiscoveryTrait.php line 313:
Package mongod
我使用symfony2和mongoDb ODM。今天我已经安装了FosUserBundle。
我的User类是这样的:
use FOS\UserBundle\Document\User as BaseUser;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ODM\MongoDB\Mapping\Annotations as MongoDB;
/**
* @MongoDB\Document
*/
class User extends BaseUser
{
/**
* @MongoDB\Id
我使用的是,当我使用它们提供的示例时,我得到了一个PHP Fatal error: Class 'MongoDB\Collection' not found。我使用的是composer,即使没有require mongodb\mongodb,如果打印$manager,也会使用$manager,这意味着它使用的是一个MongoDB,而不是我安装的那个MongoDB(因为它没有安装,至少是通过composer安装的)。
有没有办法找到那个MongoDB或者解决我的问题?
解决:因为我使用的是命令行,而不是Luracast/Restler,所以我需要在命令行期间在构造中使用auto
当我尝试用composer安装doctrine/mongodb-odm-bundle和doctrine/mongodb时,它抛出了一个错误。 composer require doctrine/mongodb-odm-bundle doctrine/mongodb Using version ^3.5 for doctrine/mongodb-odm-bundle
Using version ^1.6 for doctrine/mongodb
./composer.json has been updated
Loading composer repositories with package
我想更新一下作曲家的最新情况:
但我有以下错误:
Problem 1
- yiisoft/yii2-mongodb 2.0.4 requires ext-mongo >=1.5.0 -> the requested PHP extension mongo is missing from your system.
- yiisoft/yii2-mongodb 2.0.3 requires ext-mongo >=1.5.0 -> the requested PHP extension mongo is missing from your system.