Skip to content

Instantly share code, notes, and snippets.

@dzuelke
Created Feb 25, 2016
Embed
What would you like to do?
COMPOSER Y U NO REPLACE OR PROVIDE PLATFORM PACKAGES
dzuelke-ltm1:wat dzuelke$ PHP_INI_SCAN_DIR= php -c /usr/local/etc/php/5.6/conf.d/ext-mongodb.ini $(which composer) require alcaeus/mongo-php-adapter:dev-master
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing mongodb/mongodb (1.0.0)
Loading from cache
- Installing alcaeus/mongo-php-adapter (dev-master 4adcbe7)
Cloning 4adcbe7a75f3c684bc1651ccdb7addefc089066c
Writing lock file
Generating autoload files
dzuelke-ltm1:wat dzuelke$ PHP_INI_SCAN_DIR= php -c /usr/local/etc/php/5.6/conf.d/ext-mongodb.ini $(which composer) require ext-mongo:*
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Writing lock file
Generating autoload files
dzuelke-ltm1:wat dzuelke$ rm -rf composer.lock vendor/
dzuelke-ltm1:wat dzuelke$ PHP_INI_SCAN_DIR= php -c /usr/local/etc/php/5.6/conf.d/ext-mongodb.ini $(which 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
- The requested PHP extension ext-mongo * is missing from your system. Install or enable PHP's mongo extension.
dzuelke-ltm1:wat dzuelke$ ls
composer.json
dzuelke-ltm1:wat dzuelke$ cat composer.json
{
"require": {
"alcaeus/mongo-php-adapter": "dev-master",
"ext-mongo": "*"
}
}
dzuelke-ltm1:wat dzuelke$ ls
composer.json
dzuelke-ltm1:wat dzuelke$ rm composer.json
dzuelke-ltm1:wat dzuelke$ PHP_INI_SCAN_DIR= php -c /usr/local/etc/php/5.6/conf.d/ext-mongodb.ini $(which composer) require alcaeus/mongo-php-adapter:dev-composer-provide
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing mongodb/mongodb (1.0.0)
Loading from cache
- Installing alcaeus/mongo-php-adapter (dev-composer-provide 698d301)
Cloning 698d3012c306af299491aa166dc9aa29a4bce5b8
Writing lock file
Generating autoload files
dzuelke-ltm1:wat dzuelke$ PHP_INI_SCAN_DIR= php -c /usr/local/etc/php/5.6/conf.d/ext-mongodb.ini $(which composer) require ext-mongo:*
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Writing lock file
Generating autoload files
dzuelke-ltm1:wat dzuelke$ PHP_INI_SCAN_DIR= php -c /usr/local/etc/php/5.6/conf.d/ext-mongodb.ini $(which composer) update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
dzuelke-ltm1:wat dzuelke$ rm -rf composer.lock vendor/
dzuelke-ltm1:wat dzuelke$ PHP_INI_SCAN_DIR= php -c /usr/local/etc/php/5.6/conf.d/ext-mongodb.ini $(which 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
- The requested PHP extension ext-mongo * is missing from your system. Install or enable PHP's mongo extension.
@dzuelke

This comment has been minimized.

Copy link
Owner Author

@dzuelke dzuelke commented Feb 25, 2016

I do this weird PHP_INI_SCAN_DIR= php -c mongodb.ini to ensure my local ext-mongodb gets installed but my ext-mongo does not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment