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

Can't install Sylius, composer.phar error #376

Closed
ghost opened this issue Oct 5, 2013 · 16 comments
Closed

Can't install Sylius, composer.phar error #376

ghost opened this issue Oct 5, 2013 · 16 comments
Labels
Potential Bug Potential bugs or bugfixes, that needs to be reproduced.

Comments

@ghost
Copy link

ghost commented Oct 5, 2013

Hi,

I can't install sylius from the last composer.phar, I tried on two different computers and it's the same problem.

I runed :

php composer.phar self-update
php composer.phar create-project sylius/sylius -s dev

My outputs are :

Installing sylius/sylius (dev-master b611c01c3f6d524fda857e32209f1230795235dc)
  - Installing sylius/sylius (dev-master master)
    Cloning master

Created project in /Applications/MAMP/htdocs/TaPlace/sylius
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for doctrine/mongodb 1.0.3 -> satisfiable by doctrine/mongodb[1.0.3].
    - doctrine/mongodb 1.0.3 requires ext-mongo >=1.2.12,<1.5-dev -> the requested PHP extension mongo is missing from your system.
  Problem 2
    - doctrine/mongodb 1.0.3 requires ext-mongo >=1.2.12,<1.5-dev -> the requested PHP extension mongo is missing from your system.
    - doctrine/mongodb-odm dev-master requires doctrine/mongodb 1.0.* -> satisfiable by doctrine/mongodb[1.0.3].
    - Installation request for doctrine/mongodb-odm dev-master -> satisfiable by doctrine/mongodb-odm[dev-master].

Last week it worked and now Impossible to install.

@smoench
Copy link

smoench commented Oct 6, 2013

You have to install (e.g. apt-get install php5-mongo) or uncomment (in php.ini) the mongodb extension for php. It is required for dev/travis-ci.

@ghost
Copy link
Author

ghost commented Oct 7, 2013

I did what you said but it's the same, I installes php5-mongo then move mongo.ini in my mamp extensions folder and add extension=mongo.so inside php.ini.

One week ago I could install without problem then now I can't and it's the same for my mates.

@smoench
Copy link

smoench commented Oct 7, 2013

@ghost
Copy link
Author

ghost commented Oct 7, 2013

It's exactly what I did but still the same error

@amenophis
Copy link
Contributor

Is your cli php using the good php.ini ?

php -i | grep 'Configuration File'


Jérémy LEHERPEUR
jeremy@leherpeur.net

2013/10/7 nenl notifications@github.com

It's exactly what I did but still the same error


Reply to this email directly or view it on GitHubhttps://github.com//issues/376#issuecomment-25830936
.

@ghost
Copy link
Author

ghost commented Oct 7, 2013

Configuration File (php.ini) Path => /Applications/MAMP/bin/php/php5.4.10/conf
Loaded Configuration File => /Applications/MAMP/bin/php/php5.4.10/conf/php.ini

It's the good php.ini

@amenophis
Copy link
Contributor

Do you activate mongo-db extension ?


Jérémy LEHERPEUR
jeremy@leherpeur.net

2013/10/7 nenl notifications@github.com

Configuration File (php.ini) Path =>
/Applications/MAMP/bin/php/php5.4.10/conf
Loaded Configuration File =>
/Applications/MAMP/bin/php/php5.4.10/conf/php.ini

It's the good php.ini


Reply to this email directly or view it on GitHubhttps://github.com//issues/376#issuecomment-25831205
.

@ghost
Copy link
Author

ghost commented Oct 7, 2013

I have this : extension=mongo.so
And I moved the mongo.so in the folder : /Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/

@amenophis
Copy link
Contributor

check php logs to see what is wrong ;)

or
php -i | grep 'mongo' ?


Jérémy LEHERPEUR
jeremy@leherpeur.net

2013/10/7 nenl notifications@github.com

I have this : extension=mongo.so
And I moved the mongo.so in the folder :
/Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/


Reply to this email directly or view it on GitHubhttps://github.com//issues/376#issuecomment-25831479
.

@ghost
Copy link
Author

ghost commented Oct 7, 2013

When I run php -i | grep 'mongo' I have nothing

@amenophis
Copy link
Contributor

Mongo is not enabled ;)


Jérémy LEHERPEUR
jeremy@leherpeur.net

2013/10/7 nenl notifications@github.com

When I run php -i | grep 'mongo' I have nothing


Reply to this email directly or view it on GitHubhttps://github.com//issues/376#issuecomment-25831647
.

@ghost
Copy link
Author

ghost commented Oct 7, 2013

Oh I didn't saw it befor but I have an error while running : sudo pecl install mongo

/private/tmp/pear/temp/mongo/php_mongo.c:16:10: fatal error: 'php.h' file not found
#include <php.h>
^
1 error generated.
make: *** [php_mongo.lo] Error 1
ERROR: `make' failed

@ghost
Copy link
Author

ghost commented Oct 7, 2013

Ok now mongo is install, I can run mongd and mongo that works but I still have the same error with Sylius and nothing with php -i | grep 'mongo'

@amenophis
Copy link
Contributor

do you have install the mongodb driver for php ?
apt-get install php5-mongo sur debian/ubuntu par exemple


Jérémy LEHERPEUR
jeremy@leherpeur.net

2013/10/7 nenl notifications@github.com

Ok now mongo is install, I can run mongd and mongo that works but I still
have the same error with Sylius and nothing with php -i | grep 'mongo'


Reply to this email directly or view it on GitHubhttps://github.com//issues/376#issuecomment-25840960
.

@ghost
Copy link
Author

ghost commented Oct 8, 2013

It's the file mongo.so right ? I did sudo pecl install mongo

@ghost
Copy link
Author

ghost commented Oct 9, 2013

Ok I have some problems to install php5-mongo but I fixed the problem by removing in the composer.json file in the array require dev the mongodb bundle so it's ok now.

Thanks a lot for help

@ghost ghost closed this as completed Oct 9, 2013
pamil pushed a commit to pamil/Sylius that referenced this issue Mar 21, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Potential Bug Potential bugs or bugfixes, that needs to be reproduced.
Projects
None yet
Development

No branches or pull requests

2 participants