$ brew install php70-intl
Updating Homebrew...
==> Installing php70-intl from homebrew/php
==> Installing dependencies for homebrew/php/php70-intl: icu4c
==> Installing homebrew/php/php70-intl dependency: icu4c
==> Downloading
Already downloaded: /Users/bear/Library/Caches/Homebrew/icu4c-61.1.high_sierra.bottle.tar.gz
==> Pouring icu4c-61.1.high_sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.bash_profile
  echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.bash_profile

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/icu4c/lib
    CPPFLAGS: -I/usr/local/opt/icu4c/include

==> Summary
🍺  /usr/local/Cellar/icu4c/61.1: 249 files, 67.2MB
==> Installing homebrew/php/php70-intl
==> Downloading
Already downloaded: /Users/bear/Library/Caches/Homebrew/php70-intl-7.0.27_24.high_sierra.bottle.tar.gz
==> Pouring php70-intl-7.0.27_24.high_sierra.bottle.tar.gz
==> Caveats
To finish installing intl for PHP 7.0:
  * /usr/local/etc/php/7.0/conf.d/ext-intl.ini was created,
   do not forget to remove it upon extension removal.
  * Validate installation via one of the following methods:
  * Using PHP from a webserver:
  * - Restart your webserver.
  * - Write a PHP page that calls "phpinfo();"
  * - Load it in a browser and look for the info on the intl module.
  * - If you see it, you have been successful!
  * Using PHP from the command line:
  * - Run `php -i "(command-line 'phpinfo()')"`
  * - Look for the info on the intl module.
  * - If you see it, you have been successful!
==> Summary
🍺  /usr/local/Cellar/php70-intl/7.0.27_24: 7 files, 503.7KB


$ php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/Cellar/php70-intl/7.0.27_24/' - dlopen(/usr/local/Cellar/php70-intl/7.0.27_24/, 9): Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.60.dylib
 Referenced from: /usr/local/Cellar/php70-intl/7.0.27_24/
 Reason: image not found in Unknown on line 0
PHP 7.1.14 (cli) (built: Feb  7 2018 18:33:30) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies

ここで、見つからないと言われているライブラリファイルは "/usr/local/opt/icu4c/lib/icui18n.60.dylib" で、確かにこいつは存在しない。あるのは、バージョンが60じゃなくて61のとかだ。

かといって、icu4c を入れ直しても状況は変わらない。


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS