0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

『CakePHP3入門』の環境設定でintlが見つからなくて困っている方へ

Posted at

概要

以下の本の最初の環境設定で、「intl」が見つからずに困ったので、同じような境遇の方に向けて。

エラーメッセージ

Your Composer dependencies require the following PHP extensions to be installed: intl.

対応

本に記載のあるXAMAPPは、AppleシリコンのMacだとうまくいかないことがあるようです。
MAMPを代わりにインストールすることで解決できました。
Webで調べると、手動でintlをインストールする方法も出てきたのですが、それでもうまくいかなかったので、同じような方の参考になれば幸いです。

インストール後、パスに以下手順で調べたパスを追加しました。

  • MAMPを起動します

  • 「PHP version」に表示されているPHPのバージョン(例: 8.2.12)を確認します。

  • MAMPのPHP実行ファイルのパスは、通常以下のようになります。 /Applications/MAMP/bin/php/php[バージョン番号]/bin/php

例:
export PATH="/Applications/MAMP/bin/php/php[MAMPで確認したPHPバージョン]/bin:$PATH"

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?