Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 264 Vote(s) - 3.56 Average
  • 1
  • 2
  • 3
  • 4
  • 5
php70-mongo install doctrine/mongodb-odm fails

#1
I try to install doctrine/mongodb-odm[1.0.5] over composer but drops me

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.
- doctrine/mongodb 1.2.1 requires ext-mongo ^1.2.12 -> the requested PHP extension mongo is missing from your system.
- doctrine/mongodb 1.2.0 requires ext-mongo ^1.2.12 -> the requested PHP extension mongo is missing from your system.
- doctrine/mongodb-odm 1.0.5 requires doctrine/mongodb ~1.2 -> satisfiable by doctrine/mongodb[1.2.0, 1.2.1, 1.2.2, 1.3.0].
- Installation request for doctrine/mongodb-odm ~1.0.5 -> satisfiable by doctrine/mongodb-odm[1.0.5].


mongo extension is already installed

php -i | grep mongo

/usr/local/etc/php/7.0/conf.d/ext-mongodb.ini
mongodb
mongodb support => enabled
mongodb version => 1.1.6
mongodb stability => stable
libmongoc version => 1.3.5
mongodb.debug => no value => no value


what went wrong in this case?
Reply

#2
PHP has 2 extensions for MongoDB:

1. The legacy one found at

[To see links please register here]

2. The current one

[To see links please register here]


In case of "doctrine/mongodb-odm" it expects to find the legacy one "mongo" but what you have installed is the newer one "mongodb".

In order to use the legacy extension you need to use php <= 5.6, for php 7 only mongodb is available.
Reply

#3
On PHP7 you have `mongodb` extension as @xaben mentioned. You can use this with doctrine until it support `mongodb` but by installing additional library

[To see links please register here]


First install via composer:

composer require alcaeus/mongo-php-adapter

and later install doctrine. It's works very well in my case.
Reply

#4
I had the problem , but install and config symfony 3.1 with php 5.6 and mysql , After need installer mongodb, so udpate 7.1

problem composer.json :

"config": {
"platform": {"php": "5.6"}
}

Change:

"config": {
"platform": {"php": "7.1"}
}
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through