jmikola / mongoqp

A frontend for MongoDB's query profiler collection.
MIT License
170 stars 25 forks source link

Installation with composer : The requested PHP extension ext-mongo ~1.3 is missing from your system. #7

Closed mdennisa closed 11 years ago

mdennisa commented 11 years ago

I am using

I have changed the PATH , when I run which php via terminal it will show to this location /Applications/MAMP/bin/php/php5.4.4/bin/php

but somehow, when I run composer install , this error appeared The requested PHP extension ext-mongo ~1.3 is missing from your system.

I tried to run php -m , but the mongo didnt show up. I tried also composer show --platform , and the ext-mongo didnt show up too

what is the problem ?

jmikola commented 11 years ago

Your PHP distribution likely isn't loading the extension for the CLI environment. There may be separate INI files for the web/CLI environments. If you can't resolve that, and don't plan on running the application through the CLI webserver, you can remove the extension dependency from composer.json to get the other dependencies installed.

mdennisa commented 11 years ago

thanks @jmikola , I'll try to figure out the CLI environment on my system. meanwhile, I have removed the extension dependency from composer.json and it works.