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
composer keeps on saying "You must set up the project dependencies using composer install ..."
#7499
Comments
|
how are you installing composer ? |
|
I am using this official guide provided here. https://getcomposer.org/download/ |
|
I have found where the issue was, composer isn't working with php version 7.3.0 alpha. Maybe until that issue is resolved. |
|
Does not work in beta either. As a workaround, you can extract the PHAR: php -r '(new Phar("composer.phar"))->extractTo("composer-extracted");' and run Composer with This might be related to https://bugs.php.net/bug.php?id=76510. |
fwiw, the workaround there, adding "-fno-optimize-strlen" to build flags, does the trick. with no more "You must set up the project dependencies ..." issue. Will retest once an official 'fix' is in place. |
|
Does it make sense to have the "You must set up the project dependencies ..." error message in case composer is packaged as phar? This could constitute a bug as the error message is misleading: Here this is an issue with the PHP runtime and not w/ missing dependencies. The phar package should never miss dependencies hence the error message is wrong. |
|
also have this problem on php7.4.13 |
|
@videni: is composer installed as phar (guess so, just clarifaying). and is this problem new? was there a configuration change like switching xdebug version 2 to xdebug version 3 or something similiar? /edit: can you provide the exact composer version? and the php version, please check with |
|
@ktomk , thanks for your quick reply, both composer 1.10.19, composer 2.0.8 has the same error on php7.4.13, no xdebug installed |
|
@videni can you tell where/how you obtained the php binary on the system where it fails? and perhaps some details about the system. from the original report this was related to how the php binary was compiled. I've also tested with PHP 7.4.13 and for me it's all fine: Using Ubuntu 18.04 and PHP from Sury.org. |
|
I ran into this today with a project still on PHP 7.4. Defining |
|
Ran into this today within a Docker container. The problem was that composer was also included in the PHP project, and the $PATH points to both the global composer and the project-specific composer, and the first time I ran The solution was to directly call the global composer to try again. In my case that was |

I am trying to install composer on Antergos using the official guide.
It has completed without errors without errors.
But whenever
composerorcomposer -V, I keep getting this output.On going the link and repeating the process or even running
composer install, It keeps giving the same output. I want to install composer so that I can be able to install LaravelThe text was updated successfully, but these errors were encountered: