###拡張に認識されていないと思った理由
・phpinfo()にintlがない
・php -i | grep intlとしても何も表示されない
###環境
・Mac OS X Yosemite
・ターミナル
・Homebrew
###Homebrewでインストールしたパッケージ
・apache2.4
・php70
・php70-intl
・php70-mcrypt
・phpmyadmin
・composer
###やってみたこと
brew reinstall php70-intl(再インストール)
==> Reinstalling homebrew/php/php70-intl ==> Downloading https://homebrew.bintray.com/bottles-php/php70-intl-7.0.18_12.yosemite.bottle.tar.gz Already downloaded: /Users/自分の名前/Library/Caches/Homebrew/php70-intl-7.0.18_12.yosemite.bottle.tar.gz ==> Pouring php70-intl-7.0.18_12.yosemite.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.18_12: 6 files, 512.3KB
以下のサイトの内容
http://blog.verygoodtown.com/2015/11/mac-os-x-el-caption-cakephp3/
###ComposerでCakePHPアプリを作成しようとした時のエラー
内容
Problem 1 - cakephp/cakephp 3.4.5 requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 3.4.4 requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 3.4.3 requires ext-intl * -> the requested PHP extension intl is missing from your system. - cakephp/cakephp 3.4.2 requires lib-icu >=4.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it. - cakephp/cakephp 3.4.1 requires lib-icu >=4.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it. - cakephp/cakephp 3.4.0 requires lib-icu >=4.8 -> the requested linked library icu has the wrong version installed or is missing from your system, make sure to have the extension providing it. - Installation request for cakephp/cakephp 3.4.* -> satisfiable by cakephp/cakephp[3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.4.5]. To enable extensions, verify that they are enabled in your .ini files: - /usr/local/etc/php/7.0/php.ini You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
###補足
php -i | grep intl
で何も表示されないということはintlがないと思います。
homebrew list
でphp70-intlは表示されているので、インストール自体はうまくいっているかと。
php --ini
で表示される内容です。
Configuration File (php.ini) Path: /usr/local/etc/php/7.0 Loaded Configuration File: /usr/local/etc/php/7.0/php.ini Scan for additional .ini files in: /usr/local/etc/php/7.0/conf.d Additional .ini files parsed: (none)
/usr/local/etc/php/7.0/php.ini
にextension=intl.so
を追加しても同じエラーのままでした。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/04/29 11:19