0

So I'm trying to install the MongoDB driver. After I ran the following command, I get the error messages in the screenshot. Can anyone help me please?

php -c /Applications/MAMP/bin/php/php7.2.8/conf/php.ini composer.phar require mongodb/mongodb

Screenshot of output from terminal

1
  • If screen output is text, it may be preferable to copy that text as formatted code block to the question. Commented Feb 19, 2019 at 23:17

1 Answer 1

1

The problem is that you are missing the PHP extension for mongodb.

See php.net mongodb driver

Sign up to request clarification or add additional context in comments.

4 Comments

I did install it using sudo install pecl mongodb
Then it is not enabled in your php.ini file.
I did add extension=mongodb.so in my php.ini file. I don't know why it's not working
In which php.ini file did you add the line?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.