Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem while installing #822

Closed
trololosha4real opened this issue Apr 21, 2016 · 20 comments
Closed

Problem while installing #822

trololosha4real opened this issue Apr 21, 2016 · 20 comments

Comments

@trololosha4real
Copy link

Mongo driver is compiled from the source and seen in both CLI and Apache versions. But when trying to install getting error...

~/www/ArtCrawler/PHP $ composer require jenssegers/mongodb
Using version ^3.0 for jenssegers/mongodb
./composer.json has been updated
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
    - jenssegers/mongodb v3.0.0 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1, 1.0.2].
    - jenssegers/mongodb v3.0.1 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1, 1.0.2].
    - jenssegers/mongodb v3.0.2 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.0.0, 1.0.1, 1.0.2].
    - mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
    - mongodb/mongodb 1.0.1 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
    - mongodb/mongodb 1.0.0 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
    - Installation request for jenssegers/mongodb ^3.0 -> satisfiable by jenssegers/mongodb[v3.0.0, v3.0.1, v3.0.2].

  To enable extensions, verify that they are enabled in those .ini files:
    - /etc/php5/cli/php.ini
    - /etc/php5/cli/conf.d/05-opcache.ini
    - /etc/php5/cli/conf.d/10-mysqlnd.ini
    - /etc/php5/cli/conf.d/10-pdo.ini
    - /etc/php5/cli/conf.d/20-curl.ini
    - /etc/php5/cli/conf.d/20-gd.ini
    - /etc/php5/cli/conf.d/20-json.ini
    - /etc/php5/cli/conf.d/20-mcrypt.ini
    - /etc/php5/cli/conf.d/20-mongo.ini
    - /etc/php5/cli/conf.d/20-mysql.ini
    - /etc/php5/cli/conf.d/20-mysqli.ini
    - /etc/php5/cli/conf.d/20-pdo_mysql.ini
    - /etc/php5/cli/conf.d/20-pdo_pgsql.ini
    - /etc/php5/cli/conf.d/20-pgsql.ini
    - /etc/php5/cli/conf.d/20-readline.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.
~/www/ArtCrawler/PHP $ php --ini
Configuration File (php.ini) Path: /etc/php5/cli
Loaded Configuration File:         /etc/php5/cli/php.ini
Scan for additional .ini files in: /etc/php5/cli/conf.d
Additional .ini files parsed:      /etc/php5/cli/conf.d/05-opcache.ini,
/etc/php5/cli/conf.d/10-mysqlnd.ini,
/etc/php5/cli/conf.d/10-pdo.ini,
/etc/php5/cli/conf.d/20-curl.ini,
/etc/php5/cli/conf.d/20-gd.ini,
/etc/php5/cli/conf.d/20-json.ini,
/etc/php5/cli/conf.d/20-mcrypt.ini,
/etc/php5/cli/conf.d/20-mongo.ini,
/etc/php5/cli/conf.d/20-mysql.ini,
/etc/php5/cli/conf.d/20-mysqli.ini,
/etc/php5/cli/conf.d/20-pdo_mysql.ini,
/etc/php5/cli/conf.d/20-pdo_pgsql.ini,
/etc/php5/cli/conf.d/20-pgsql.ini,
/etc/php5/cli/conf.d/20-readline.ini

~/www/ArtCrawler/PHP $ php --ri mongo | grep Version
Version => 1.4.5

selection_163

@likeadeckofcards
Copy link

@trololosha4real I believe your issue is that you are using the old Mongo database connector. In the newest version on this package, this connector has been deprecated. Try downloading and installing the connector listed below and then retry installing the package.

http://pecl.php.net/package/mongodb

@munotsagar
Copy link

Added php_mongo.dll in php/ext folder, but still facing same issue,

Could you please explain in detail steps ?

@munotsagar
Copy link

mongodb

@munotsagar
Copy link

Facing this issue could you please tell me what would be the solution.

@likeadeckofcards
Copy link

Did you add mongodb.dll/mongodb.so to the dynamic extension section ofor your php.ini files?

@munotsagar
Copy link

Yes added "extension=php_mongo.dll" in php.ini file.

@munotsagar
Copy link

capture

@likeadeckofcards
Copy link

It looks like you might be using the deprecated version of the driver. You want to use mongodb. Found here http://pecl.php.net/package/mongodb. If you do not want to use this new driver, then you will have to go to a previous version of this package.

@IgorDePaula
Copy link

I have the same problem and all required extensions enabled.

@IgorDePaula
Copy link

I read this issue #797 and resolved the problem.

@mmuflih
Copy link

mmuflih commented Aug 5, 2016

I have the same problem
image

I use mongodb v 2.4.9 and this is my phpinfo
image

@acidjazz
Copy link

acidjazz commented Oct 7, 2016

to fix this issue on AWS I did:

echo "extension=mongodb.so" > /etc/php.d/20-mongo.ini

@BillKeenan
Copy link

pretty sure you want double >
echo "extension=mongodb.so" >> /etc/php.d/20-mongo.ini

@acidjazz
Copy link

acidjazz commented Dec 1, 2016

@BillKeenan either/or works, > will overwrite what was ever in there and >> will append, there shouldn't be anything else in there.

@jorgeomarmh
Copy link

my solution was
sudo apt-get install php-mongodb

@xinnah
Copy link

xinnah commented Aug 19, 2017

now I have the same problem..

D:\xampp\htdocs\laravel-mongodb>composer 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
- jenssegers/mongodb v3.2.0 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.1.2, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1].
- jenssegers/mongodb v3.2.1 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.1.2, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1].
- jenssegers/mongodb v3.2.2 requires mongodb/mongodb ^1.0.0 -> satisfiable by mongodb/mongodb[1.1.2, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1.0, 1.1.1].
- mongodb/mongodb 1.0.5 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.4 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.3 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.2 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.1 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.0.0 requires ext-mongodb ^1.1.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.1.2 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.1.1 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.1.0 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
- mongodb/mongodb 1.1.2 requires ext-mongodb ^1.2.0 -> the requested PHP extension mongodb is missing from your system.
- Installation request for jenssegers/mongodb ^3.2 -> satisfiable by jenssegers/mongodb[v3.2.0, v3.2.1, v3.2.2].

To enable extensions, verify that they are enabled in your .ini files:
- D:\xampp\php\php.ini
You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

@ouahibAbdou
Copy link

capture
I install the drivers and I add the extention but it's not work

@xinnah
Copy link

xinnah commented Jan 20, 2018

i solve this problem..
when your local server is 32 bit install and you mongodb driver setup 64bit.
then create a problem.

php_mongodb.zip
firstly you download this file and unzip this.
and paste xampp\php\ext
secondly change your php.ini file.
extension=php_mongodb.dll paste this code .
and check phpinfo();
mongo

lets enjoy.

@lordfhi
Copy link

lordfhi commented Dec 7, 2020

i solve this problem..
when your local server is 32 bit install and you mongodb driver setup 64bit.
then create a problem.

php_mongodb.zip
firstly you download this file and unzip this.
and paste xampp\php\ext
secondly change your php.ini file.
extension=php_mongodb.dll paste this code .
and check phpinfo();
mongo

lets enjoy.

doesnt work for me , help please

@divine
Copy link
Contributor

divine commented Dec 7, 2020

If you still having an issue, please don't reply on old issues - it's really hard to keep eye on it.

Before creating new issue, please kindly check all suggestions that simply suggest to install mongodb extension.

Thanks!

@mongodb mongodb locked as resolved and limited conversation to collaborators Dec 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests