-
-
Notifications
You must be signed in to change notification settings - Fork 396
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
xdebug installation fails on 8.x debian (missing lib/php-header.h) #613
Comments
Docs:
The latest xdebug release on PECL (3.2.0alpha, 2022-07-20) is not stable, but alpha. A workaround until that's fixed would be to tag a specific version:
Or require stable:
On an image building on 8.1:fpm-alpine, the error was:
|
Having the same problem with Alpine. Actually, this is kinda strange, because the version is marked as beta on pecl: For me @mlocati, what do you think about the issue? |
@mlocati @CodeCasterNL I tried to modify all extension installations to But with this image https://github.com/yiisoft/yii2-docker/actions/runs/2718005323 I run into problems for PHP <7.2 now. Actually either I should be able to install a |
I am reopening this, please let us know if we should create a new ticket for the issues described above. |
That's a different issue AFAIK. |
Yes, but I am stuck there, because I can not build all images from 5.6 to 8.1, due to the fact that for 8.x it tries to install the 3.2alpha. That's why I followed your advice also there to use If I just use it for |
Issue is not resolved for me using
Do we need to do any extra step to have it working agian? |
@igoooor use |
thanks for the quick answer. |
So two days ago it used to work? Did it detect the PHP version and according Mongo (and other extension) version or did Mongo recently publish a new version that won't work with PHP < 7.2? |
@igoooor this issue consist of multiple problems.
If xdebug alpha release had no errors, then you'd silently get an alpha version this thread wouldn't exist at all :D So this is not a docker-php-extension-installer issue at all. I'll try to dig the problem with pickle. |
Yes, these builds went just fine: https://github.com/yiisoft/yii2-docker/actions/runs/2702056407 Then, 2 days ago, the 8.x builds broke, due to the alpha version. |
@schmunk42 Build (7.1-fpm, debian, 1, -2.9.8) today failed with
This would indicate that it (but which "it"? Pickle?) doesn't properly detect the PHP version in use anymore to determine the extension version to install, and that it tries to install 1.12 or up (which dropped PHP 7.1 support). |
That's because I also added Because I thought that would be the proper way to install a stable version for the installed PHP version. |
Okay, looks like I figured out the problem with pickle and prepared a fix – FriendsOfPHP/pickle#259 |
I'm closing this issue, since it's not related to the install-php-extensions (see https://bugs.xdebug.org/view.php?id=2105 and FriendsOfPHP/pickle#247 instead) |
@mlocati Just to understand how things work under the hood... This needs to be fixed in pickle and/or xdebug itself, right? |
The xdebug bug has already been fixed in the latest beta version, but pickle should install the last stable version by default. |
I created a PR to fix that, please review when you have time: FriendsOfPHP/pickle#259 |
Version of install-php-extensions
v.1.5.29
Error description
Build fails in Docker build for
RUN install-php-extensions xdebug
.With
fatal error: lib/php-header.h: No such file or directory
See for example https://github.com/yiisoft/yii-docker/runs/7444548717?check_suite_focus=true#step:6:752 - also tested with the command above.
Docker image
php:8.x
Minimal Dockerfile
The text was updated successfully, but these errors were encountered: