Mac brew の PHP で dlopen(/usr/local/opt/php56-intl/intl.so, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicuuc.57.dylib

(コメント)

$ 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


となったら

/usr/local/opt/icu4c/lib/ を見てみると、icu の 58 はインストールされている。

$ 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


エラー出なくなる

追記

lessc を使おうとしたら

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.59.dylib
Referenced from: /usr/local/bin/node
Reason: image not found

になったので良くないかも?

ひとまず、シンボリックリンクしてみたらどうだろう。試験中

$ 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 ./

現在未評価

コメント

最近のツイート

  • ytyng

    ytyng @ytyng

    ホセ・リサール氏のマンガの反応が良い。 https://t.co/Lwqjx5nn8n #MANGACLUB @Mangadotclubさんから
    2 日, 14 時間 前

  • ytyng

    ytyng @ytyng

    Python の Typing で、Generator[MangazenkanOrderAdapter, None, None] は Iterator[MangazenkanOrderAdapter] とアノテーションをつけること… https://t.co/SqG9hOtEiF
    3 日, 16 時間 前

  • ytyng

    ytyng @ytyng

    近所に、スーパーバリューっていうスーパーがあるんだけど、店内にいるとたまにBGMが5拍子のアコースティックプログレみたいな音楽になる。めっちゃ耳に残る。あのBGMはなんか意味があるのかなー。
    4 日, 11 時間 前