質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Apache

Apacheは、Apache HTTP Serverの略で、最も人気の高いWebサーバソフトウェアの一つです。安定性が高いオープンソースソフトウェアとして商用サイトから自宅サーバまで、多くのプラットフォーム向けに開発・配布されています。サーバーソフトウェアの不具合(NCSA httpd)を修正するパッチ(a patch)を集積、一つ独立したソフトウェアとして開発されました。

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

Q&A

解決済

1回答

2949閲覧

Homebrewでphp70-intlの拡張が認識されません

ssk

総合スコア332

Apache

Apacheは、Apache HTTP Serverの略で、最も人気の高いWebサーバソフトウェアの一つです。安定性が高いオープンソースソフトウェアとして商用サイトから自宅サーバまで、多くのプラットフォーム向けに開発・配布されています。サーバーソフトウェアの不具合(NCSA httpd)を修正するパッチ(a patch)を集積、一つ独立したソフトウェアとして開発されました。

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

0グッド

0クリップ

投稿2017/04/23 10:27

###拡張に認識されていないと思った理由
・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を追加しても同じエラーのままでした。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

たしかに、php70-intl がうまく入っていないようですね。
私の環境(Sierra + PHP7.1)で行ったところ何の問題も無くインストールされたので、とりあえず各種バージョンを上げてみてはどうでしょうか?

(オープンソースソフトウェアに古い環境のサポートは望めません)

投稿2017/04/23 13:32

miyahan

総合スコア3095

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

ssk

2017/04/29 11:19

返信が遅くなってしまい、申し訳ございません。 Macのバージョンを最新にして、再構築で正常に動作することができました。 今後はバージョンも意識していきたいと思います。 助言、ありがとうございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問