Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am new to composer which seems to be required to run guzzle for the flux modules...
how do i fix this?
I tried 2 hours guessing and reading, but still getting errors
I did
php composer.phar require guzzle/guzzle:dev-master
php composer.phar require doctrine/collections:dev-master
in the sites/all/modules/composer_manager folder
I would need a hint in the right direction
thanks
Comment | File | Size | Author |
---|---|---|---|
Bildschirmfoto 2013-08-27 um 14.58.23.png | 78.72 KB | stevenx |
Comments
Comment #1
crizHi,
did you follow the recommendation in the readme?
* Install the module and its module dependencies as usual.
* Then, required libraries must be added in via composer manager - for that run
the following drush commands:
Comment #2
stevenx CreditAttribution: stevenx commentedYeah, I did. Where shall I look to get the requirements right?
Comment #3
crizInteresting, this works for us...
We have to check, in the meantime you can use the vendor files from the github project: https://github.com/drunomics/fluxkraft_distro/tree/master/sites/all/vendor
Comment #4
stevenx CreditAttribution: stevenx commentedDanke.
Solved this issue.
Comment #5
stevenx CreditAttribution: stevenx commentedwell I thought it works - but does not
Comment #6
crizPlease go sure to have the composer files only once in your system. And run
drush rr
after changes.Comment #7
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedWhen I run
drush composer-manager update
I get the following:
[RuntimeException]
The .git directory is missing from /fluxkraft_distro-1.1/sites/all/vendor/guzzle/guzzle, see http://getcomposer.org/commit-deps for more information
Comment #8
crizSocialNicheGuru, seems as you are using the packaged distro from github. You don`t need to run these commands in this case.
However, there is currently a bug so you get a missing dependency message: https://drupal.org/node/2086659 But everything should work though.
Comment #9
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedno it says that they are not installed once I enable the distro. that's why I went through all the steps :(
Comment #10
crizYes, this is what I am saying. This message is misleading.
Comment #11
fubhy CreditAttribution: fubhy commentedThe issue you described here ("Your requirements could not be resolved to an installable set of packages.") is caused if you don't have composer-8.x-1.x installed.
Do this in order to solve it:
rm ~/.drush/composer -rf
drush dl composer-8.x-1.x
Yes, it's weird that you have to run composer-8.x-1.x, but that's how it's done ;)