Compiled PHP into extension fails because of icy-libs shared library missing
I run a Docker PHP image using a the php-fpm-alpine docker image.
A few days ago, the image stopped building on our CI server, I’ve tracked this down to what seems to be an issue with icu-libs package.
When I compile the PHP intl package (NOT the alpine php-intl package), I get the following error when PHP starts:
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20160303/intl.so’ - Error loading shared library libicui18n.so.57: No such file or directory (needed by /usr/local/lib/php/extensions/no-debug-non-zts-20160303/intl.so) in Unknown on line 0
However, I have the packages ‘icu, icu-libs & icu-dev’ installed.
If I look for the shared library, I see it’s installed:
find / | grep libicui18n.so.57
Returns:
/usr/lib/libicui18n.so.57.1
/usr/lib/libicui18n.so.57
(from redmine: issue id 6857, created on 2017-02-13)