$ php
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php56-intl/intl.so' - dlopen(/usr/local/opt/php56-intl/intl.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicuuc.57.dylib
Referenced from: /usr/local/opt/php56-intl/intl.so
Reason: image not found in Unknown on line 0
When this happens,
looking into /usr/local/opt/icu4c/lib/, I found that icu version 58 is installed.
$ brew info icu4c
icu4c: stable 58.2 (bottled), HEAD [keg-only]
C/C++ and Java libraries for Unicode and globalization
http://site.icu-project.org/
/usr/local/Cellar/icu4c/52.1 (257 files, 59.8M)
Poured from bottle on 2013-12-11 at 10:59:53
/usr/local/Cellar/icu4c/54.1 (260 files, 64.5M)
Built from source on 2014-10-18 at 22:55:53
/usr/local/Cellar/icu4c/55.1 (262 files, 65M)
Poured from bottle on 2015-04-30 at 04:59:44
/usr/local/Cellar/icu4c/57.1 (265 files, 65.0M)
Poured from bottle on 2016-09-15 at 10:44:40
/usr/local/Cellar/icu4c/58.2 (243 files, 65M)
$ brew switch icu4c 57.1
Cleaning /usr/local/Cellar/icu4c/52.1
Cleaning /usr/local/Cellar/icu4c/54.1
Cleaning /usr/local/Cellar/icu4c/55.1
Cleaning /usr/local/Cellar/icu4c/57.1
Cleaning /usr/local/Cellar/icu4c/58.2
Opt link created for /usr/local/Cellar/icu4c/57.1
$ php -a
Interactive shell
No more errors.
Note
When I tried to use lessc,
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.59.dylib
Referenced from: /usr/local/bin/node
Reason: image not found
This might not be good?
For the time being, how about creating symbolic links? Currently testing.
$ brew switch icu4c 59.1
$ cd /usr/local/opt/icu4c/lib/
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libicudata.57.1.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libicudata.57.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libicui18n.57.1.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libicui18n.57.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libicuio.57.1.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libicuio.57.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libicule.57.1.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libicule.57.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libiculx.57.1.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libiculx.57.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libicutest.57.1.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libicutest.57.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libicutu.57.1.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libicutu.57.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libicuuc.57.1.dylib ./
$ ln -s /usr/local/Cellar/icu4c/57.1/lib/libicuuc.57.dylib ./
Comments