-
Notifications
You must be signed in to change notification settings - Fork 2k
iconv on Alpine 3.13 #1121
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
Comments
|
Ah okay so it only doesn't work with edge for now but v3.13 will be fine. Good to know but still it means that the current workaround might not work later. |
To anyone visiting this issue, the current workaround is -apk add gnu-libiconv
+apk add gnu-libiconv=1.15-r2 |
I looked at the documentation , used 3.12 is good. thanks~
|
my current workaround is the stick with alpine3.13 and gnu-libiconv=1.15-r3 |
For easy copy&pasting: RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/v3.13/community/ gnu-libiconv=1.15-r3
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php |
I have the same problem on Alpine 3.14 with php7.4. However, You can just install the same extensions from 3.13 repo:
It works great! |
are you using php-7.4 with alpine 3.14? then install the gnu-libiconv from 3.13 repo? |
Yes. I'm using |
I confirm it also works with 3.15 at this time. |
Are you sure this will work on Alpine 3.15?I tried it and it failed:
|
This should not be necessary anymore, as it has been fixed here: #1264 |
thanks i know |
Using the PHP alpine images, this code...:
...causes this error:
This is a long-known issue, however the situation has changed significantly so I think a new issue is appropriate.
Until now the problem was commonly solved by this workaround:
This however no longer works with gnu-libiconv 1.16-r0 because the
preloadable_libiconv.so
has been removed (see alpine aports issue and related libiconv commit).On Alpine 3.12 we can use
gnu-libiconv=1.15-r2
.On Alpine 3.13 however the version no longer exists and consequently the workaround is not available.EDIT: My bad. The version is available in 3.13, just missing in edge.
Is there any other way to fix this? Perhaps somehow using
--with-iconv
when building PHP? (Not sure, just an idea.)The text was updated successfully, but these errors were encountered: