Problem with installing DoctrineMongoDBBundle in symfony with compser

1,314 views
Skip to first unread message

Ali Bagheri Shakib

unread,
Jul 22, 2013, 4:57:02 AM7/22/13
to mongod...@googlegroups.com
hello...
when i try to install DoctrineMongoDBBundle via compser,i see this message:


> php composer.phar update
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
    - doctrine/mongodb 1.0.3 requires ext-mongo >=1.2.12,<1.5-dev -> the requested PHP extension mongo is missing from your system.
    - doctrine/mongodb 1.0.2 requires ext-mongo >=1.2.12,<1.4-dev -> the requested PHP extension mongo is missing from your system.
    - doctrine/mongodb 1.0.1 requires ext-mongo >=1.2.12,<1.4-dev -> the requested PHP extension mongo is missing from your system.
    - doctrine/mongodb 1.0.0 requires ext-mongo >=1.2.12,<1.4-dev -> the requested PHP extension mongo is missing from your system.
    - doctrine/mongodb-odm 1.0.0-BETA5 requires doctrine/mongodb 1.0.0-BETA1 -> no matching package found.
    - doctrine/mongodb-odm 1.0.0-BETA4 requires doctrine/mongodb 1.0.0-BETA1 -> no matching package found.
    - symfony/framework-standard-edition 2.3.x-dev requires doctrine/mongodb-odm 1.0.*@dev -> satisfiable by doctrine/mongodb-odm[1.0.0-BETA4, 1.0.0-BETA5, 1.0.0-BETA6, 1.0.0-BETA7, 1.0.0-BETA8, 1.0.0-BETA9, 1.0.x-dev].
    - doctrine/mongodb-odm 1.0.0-BETA6 requires doctrine/mongodb >=1.0.0-beta1,<1.1-dev -> satisfiable by doctrine/mongodb[1.0.0, 1.0.1, 1.0.2, 1.0.3].
    - doctrine/mongodb-odm 1.0.0-BETA7 requires doctrine/mongodb 1.0.* -> satisfiable by doctrine/mongodb[1.0.0, 1.0.1, 1.0.2, 1.0.3].
    - doctrine/mongodb-odm 1.0.0-BETA8 requires doctrine/mongodb 1.0.* -> satisfiable by doctrine/mongodb[1.0.0, 1.0.1, 1.0.2, 1.0.3].
    - doctrine/mongodb-odm 1.0.0-BETA9 requires doctrine/mongodb 1.0.* -> satisfiable by doctrine/mongodb[1.0.0, 1.0.1, 1.0.2, 1.0.3].
    - doctrine/mongodb-odm 1.0.x-dev requires doctrine/mongodb 1.0.* -> satisfiable by doctrine/mongodb[1.0.0, 1.0.1, 1.0.2, 1.0.3].
    - Installation request for symfony/framework-standard-edition 2.3.x-dev -> satisfiable by symfony/framework-standard-edition[2.3.x-dev].

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.

Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.

Process finished with exit code 1 at 13:07:58.
Execution time: 9,008 ms.

i added this lines in composer.json (whitin require property) later and also i installed composer.phar :


"doctrine/mongodb-odm": "1.0.*@dev",
"doctrine/mongodb-odm-bundle": "3.0.*@dev"

Anyone know how i should solve this?

Colzak

unread,
Aug 16, 2013, 9:14:30 AM8/16/13
to mongod...@googlegroups.com
Hello,

I faced the same issue. Then I realised I updated my php.ini for the web server but not the one for the CLI, and composer is using this one.
It worked for me.

Regards,

Yunior Aguila Oria

unread,
Jan 6, 2014, 2:39:43 PM1/6/14
to mongod...@googlegroups.com
any idea ????

Stephen Steneker

unread,
Jan 7, 2014, 12:23:48 PM1/7/14
to mongod...@googlegroups.com
On Monday, January 6, 2014 11:39:43 AM UTC-8, Yunior Aguila Oria wrote:
any idea ????

Hi Yunior,

Please start a new discussion thread with details of your specific issue rather than replying to old discussions.  When you start a new discussion you can include a link to older discussion(s) that may be relevant, but replying on the same thread confuses the details.

Based on the previous comment on this thread, a problem one person had was that the MongoDB PHP driver module was installed in the php.ini used by the web server but not in the php.ini used by the command line "php".  You could check if the MongoDB module is available in your command line environment with "php -m | grep mongo" and follow the install guide if it isn't: http://www.php.net/manual/en/mongo.installation.php.

If that doesn't fix your issue, can you start a new thread with details of the error you are receiving?

Thanks,
Stephen

Дмитрий Морозов

unread,
Mar 11, 2014, 4:46:13 AM3/11/14
to mongod...@googlegroups.com
Pls, try to RE-CHECK   if the php.exe   used the MongoDB DLL.
I hav this problem too.
And when I re-checked it  correctly - I see that my php DON'T USE Mongodb library.




понедельник, 22 июля 2013 г., 11:57:02 UTC+3 пользователь Ali Bagheri Shakib написал:
Reply all
Reply to author
Forward
0 new messages