Cocolabs-SAS / cocorico

👐 Cocorico is an open source marketplace solution for services and rentals. More information right here: https://www.cocorico.io/ 🚀 Cocorico is also available in an off-the-shelf SaaS package, check out https://www.hatch.li to launch your platform today. 😍 We are hiring (telecommute welcome 🏡): https://www.welcometothejungle.com/en/companies/cocorico/jobs/candidatures-spontanees#apply
https://www.cocolabs.com
MIT License
857 stars 610 forks source link

Not able to run the composer.. #379

Closed ibrahimbm closed 5 years ago

ibrahimbm commented 5 years ago

Installing dependencies (including require-dev) from lock file Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them. Your requirements could not be resolved to an installable set of packages.

Problem 1

tiretdusix commented 5 years ago

Hello.

Composer is telling you that your system is lacking MongoDB and/or MongoDB extension for PHP.

In order to make full usage of Cocorico's booking system, you will need MongoDB installed, as well as the php mongodb extension.

the requested PHP extension mongodb is missing from your system.

Please have a look at the documentation for server installation at installation-server.md

alcaeus/mongo-php-adapter installation is disallowed by composer until then.

Best regards.

ibrahimbm commented 5 years ago

I have already installed the MongoDB on mac and also on the PHP

MongoDB support enabled
MongoDB extension version 1.2.9
MongoDB extension stability stable
libbson bundled version 1.5.5
libmongoc bundled version 1.5.5
libmongoc SSL enabled
libmongoc SSL library OpenSSL
libmongoc crypto enabled
libmongoc crypto library libcrypto
libmongoc crypto system profile disabled
libmongoc SASL enabled

I would be needing your help to set up this on my local server

cocolabssas commented 5 years ago

Hi @ibrahimbm

Could you send us what php -i | grep Mongo is returning.

ibrahimbm commented 5 years ago

MongoDB support => enabled MongoDB extension version => 1.2.9 MongoDB extension stability => stable

cocolabssas commented 5 years ago

Could you update your mongodb PHP ext to a version greater than 1.3?

ibrahimbm commented 5 years ago

now i have succesfully installed the composer and app installed perfectly.

Some issue still.. not able to see the admin dashboard: http://local.cocorico.com/admin/dashboard (i set this virtual host as this) not found error.

ibrahimbm commented 5 years ago

SQL database initialisation: i am getting the below error..

./bin/init-db php --env=dev Could not open input file: app/console Could not open input file: app/console Could not open input file: app/console Could not open input file: app/console

cocolabssas commented 5 years ago

Hi @ibrahimbm

The init-db script is fixed in this commit https://github.com/Cocolabs-SAS/cocorico/commit/33e767819d280d8e2bc85d8c6ca09b122943da36. I suggest you to update to the last version of Cocorico.

ibrahimbm commented 5 years ago

Thank you .. its udpated. but still error with the mongodb

:
Server at localhost:27017 reports wire version 0, but this version of libmongoc requires at least 3 (MongoDB 3.0) root@vagrant-ubuntu-trusty-64:/var/www/html/proptech# php -i | grep Mongo MongoDB support => enabled MongoDB extension version => 1.5.3 MongoDB extension stability => stable

cocolabssas commented 5 years ago

Could you send us the version of mongodb you use and check this answers: