Comments (9)
Hi,
I'm afraid I can not help you with that. you are getting an error form composer itself.
it seems it can not satisfy the package dependencies
the requested PHP extension mongo is missing from your system.
I think you need to manually install the php extension for mongo db
from composer-sublime.
Hi,
Sorry I may not have explained it very well. Yes that error does appear, but the php extension for mongo db is already installed correctly, and if I run Composer via Terminal the check for that extension passess and the package is installed correctly.
However, when I try to run composer through the ST2 plugin, for some reason it cannot find the mongo extension, and I see that error. I assume this is something to do with the way that the ST2 plugin is running Composer?
from composer-sublime.
I did misunderstood you, sorry.
Can you paste your composer.json file, so I can test on my system ?
thanks
nuno
from composer-sublime.
Sure, this is the bear minimum that produces the error (just composer.json in an otherwise empty directory):
{
"require": {
"doctrine/mongodb-odm": "1.0.*@dev"
}
}
In Terminal it works, and I get:
$ /bin/composer.phar update -n -v
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing doctrine/common (2.3.0)
Downloading: 100%
Extracting archive
- Installing doctrine/mongodb (1.0.2)
Downloading: 100%
Extracting archive
- Installing symfony/console (v2.2.0)
Loading from cache
Extracting archive
- Installing doctrine/mongodb-odm (dev-master ecb57e8)
Cloning ecb57e843227269b3fed192dc6619f719a75dd0d
Cloning into '.../mongodb-odm'...
- Marking doctrine/mongodb-odm (1.0.x-dev ecb57e8) as installed, alias of doctrine/mongodb-odm (dev-master ecb57e8)
doctrine/mongodb-odm suggests installing symfony/yaml (Enables the YAML metadata mapping driver)
Writing lock file
Generating autoload files
But in ST2 I get:
-- Starting Composer --
binary : /bin/composer.phar
command : update
arguments: -n -v
executing: /bin/composer.phar update -n -v
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
- doctrine/mongodb-odm 1.0.0-BETA6 requires doctrine/mongodb >=1.0.0-beta1,<1.1-dev -> satisfiable by doctrine/mongodb 1.0.0, doctrine/mongodb 1.0.1, doctrine/mongodb 1.0.2.
- doctrine/mongodb-odm 1.0.0-BETA7 requires doctrine/mongodb 1.0.* -> satisfiable by doctrine/mongodb 1.0.0, doctrine/mongodb 1.0.1, doctrine/mongodb 1.0.2.
- doctrine/mongodb-odm 1.0.0-BETA8 requires doctrine/mongodb 1.0.* -> satisfiable by doctrine/mongodb 1.0.0, doctrine/mongodb 1.0.1, doctrine/mongodb 1.0.2.
- doctrine/mongodb-odm 1.0.x-dev requires doctrine/mongodb 1.0.* -> satisfiable by doctrine/mongodb 1.0.0, doctrine/mongodb 1.0.1, doctrine/mongodb 1.0.2.
- doctrine/mongodb 1.0.2 requires ext-mongo >=1.2.12,<1.4-dev -> the requested PHP extension mongo is missing from your system.
- doctrine/mongodb 1.0.1 requires ext-mongo >=1.2.12,<1.4-dev -> the requested PHP extension mongo is missing from your system.
- doctrine/mongodb 1.0.0 requires ext-mongo >=1.2.12,<1.4-dev -> the requested PHP extension mongo is missing from your system.
- doctrine/mongodb-odm 1.0.0-BETA5 requires doctrine/mongodb 1.0.0-BETA1 -> no matching package found.
- doctrine/mongodb-odm 1.0.0-BETA4 requires doctrine/mongodb 1.0.0-BETA1 -> no matching package found.
- Installation request for doctrine/mongodb-odm 1.0.*@dev -> satisfiable by doctrine/mongodb-odm 1.0.0-BETA4, doctrine/mongodb-odm 1.0.0-BETA5, doctrine/mongodb-odm 1.0.0-BETA6, doctrine/mongodb-odm 1.0.0-BETA7, doctrine/mongodb-odm 1.0.0-BETA8, doctrine/mongodb-odm 1.0.x-dev.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
from composer-sublime.
I tried it on my system and had no problems
-- Starting Composer --
binary : /bin/composer.phar
command : update
arguments: -n -v
executing: /bin/composer.phar update -n -v
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing doctrine/common (2.3.0)
Loading from cache
Extracting archive
- Installing doctrine/mongodb (1.0.2)
Loading from cache
Extracting archive
- Installing symfony/console (v2.2.0)
Loading from cache
Extracting archive
- Installing doctrine/mongodb-odm (dev-master ecb57e8)
Cloning ecb57e843227269b3fed192dc6619f719a75dd0d
Cloning into '/home/nuno/projects/personal/tests/vendor/doctrine/mongodb-odm'...
- Marking doctrine/mongodb-odm (1.0.x-dev ecb57e8) as installed, alias of doctrine/mongodb-odm (dev-master ecb57e8)
doctrine/mongodb-odm suggests installing symfony/yaml (Enables the YAML metadata mapping driver)
Generating autoload files
-- Terminated --
I'm on Linux running sublime 2.0.1 build 2217 and Composer version d929a0813ae473272d151d9ebb2af7ebae451e48
I'm lost, I don't really know what is happening, it might be something specific with OSX, do have any ideas ?
nuno
from composer-sublime.
I'll have a poke around and see if I can figure it out, I'm wondering if Composer is using a different PATH when running through ST2? OS X does have it's own PHP version, which I do not use (and doesn't have mongo enabled), however as far as I'm aware everything (including the default PATH) is set correctly and should be using the MacPorts version.
from composer-sublime.
it might as well be that you are using a different php version in ST2.
can you try setting your composer path to a simple shell script
{
"composer_command": "/bin/st_composer.sh"
}
ans st_composer.sh is something like
#!/bin/bash
/path/to/php /bin/composer.phar $@
from composer-sublime.
Yup, can confirm that the default OS X php install is the problem (I added a new show --platform
command to the plugin and mongo was missing). Instead of creating a script, I decided to remove the default php in /usr/bin/php
and symlink /usr/bin/php
to the MacPorts version at /opt/local/bin/php
, so that it works for anything else that may be using the wrong binary.
Still be nice to figure out how to ensure /opt/local/bin/php
is the only php version that's ever used, but that's obviously not an issue with your plugin.
Thanks for the help!
from composer-sublime.
To correct the error it is necessary to make
composer update
then
composer require friendsofsymfony/user-bundle "~2.0@dev"
Thanks
from composer-sublime.
Related Issues (11)
- Add dump-autoload HOT 2
- User defined setting not overridding default settings HOT 2
- Composer & PHP aliasing and Mcrypt errors HOT 3
- Dump-autoload not working in SublimeText3
- Open composer.phar
- Sublime Text 3 HOT 7
- Package Control installation does not work with ST3 HOT 1
- composer commands via standard OS CLI? HOT 5
- How to use on Windows? HOT 12
- Composer from global installation. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from composer-sublime.