-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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 doesn't see all installed PHP extensions #5749
Comments
Can you share some more about your docker setup? Does everything use the same container? |
I think you are using the image that extends ubuntu stuff. It could be their fpm image has a separate php ini for fpm and cli. Did you try running |
When I run
Content of
and content of
|
Can you show me how you run the command + output, both for php -m and composer show -p ? |
Exactly like this (I login via putty to PHP container) and:
If you need any more details, please tell me what commands should I type :) |
Just in case when I run
|
Can you run and share the output of
|
Can you past the output of this command too ?
|
@alcohol I don't have any .ini files in /tmp directory, I have ini files only in directories I showed yesterday:
@stof The result of command is as below:
|
@alcohol Any update on this? |
I have no way to reproduce this, so, no. But I can say with high confidence that this is probably related with the way you've setup your docker images. Also, the output of that |
I have the same problem on Windows. I've recently added 3 extension dependencies to It works fine on Linux dockerized CI server though.
|
@maryo unless you show us the full output of the following commands run on your windows local host, we cannot help you:
Please also include the lines that show how you run the command and in what directory you run the command. Do not hide anything that you might think is irrelevant, because it most likely is relevant. |
@RobLoach Sorry for taking your time. My fault. I forgot I created a batch file running composer with only some extensions enabled because of xdebug few years ago. How silly. |
@alcohol @maryo I had exact same problem. I've created alias like this:
to not load Xdebug (but obviously all other extensions) and that's why Composer didn't see GD2 extension when installing packages. Sorry for reporting. It was obviously not Composer fault but mine. |
Note that latest composer (1.3+) disables xdebug automatically so you don't need to do such hacks like running it via |
@Seldaek Didn't know about it. Thanks for sharing |
In case this could help : I ran into the same issue, I was running PHP locally with GD and composer thru a docker container. To solve the problem, I've installed Composer locally and now it runs fine. |
I'm using Docker and have installed GD in recommended way as showed in official PHP Docker repository. My Dockerfile looks like this:
When I run:
php -m
I'm getting:
but when running
composer show -p
I'm getting:There's no GD here, so when I try to install for example
barryvdh/laravel-dompdf
I'm getting following error:The only way to install it is using
--ignore-platform-reqs
parameter but I need to use it each time and obviously it doesn't solve issue when my virtual machine misses some libs that are required and not installed.Also when I run:
in console I'm getting something like this:
For some extensions version is missing but for example for
ctype
it's missing but it's available in output ofcomposer show -p
andgd
is not there at all.I've already seen https://github.com/composer/composer/issues/4353 but it's not solving the issue. The question is - what's the reason that composer doesn't see GD extension? What's the way composer finds what extensions are available in system? Or maybe official way of installing GD is broken and it should be installed somehow else?
The strange thing is that GD is working without a problem after such installation, the only issue is that Composer doesn't see it.
I'm using
Composer version 1.2.1 2016-09-12 11:27:19
The text was updated successfully, but these errors were encountered: