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

    俺もスタバアプリにログインできないよ
    3 ヶ月 前

  • 安藤拓郎 Takuro Ando

    安藤拓郎 Takuro Ando @takuroando

    ytyng

    これまでいろんなグッズを作ってきたけど、今回は「お米」と聞いて買うしかないなと。今夜の夕食はコシヒカリ!箸もセットだし^^ https://t.co/01ucQx9qtw #腰乃展 #マンガ展 https://t.co/4VL2vOe0Og
    3 ヶ月, 2 週間 前

  • ytyng

    ytyng @ytyng

    講談社さんとやった全部入り電子書籍セットがギネスブックに登録されたよー https://t.co/rbkd3IYub0
    3 ヶ月, 2 週間 前