LoginSignup
0
0

More than 1 year has passed since last update.

peclが中々インストールできなかったMac

Posted at

phpインストールしなおしても入らなかった

phpが既に入っていてもbrewで入れ直さないとだめ、という記事を見て実施。
すごく時間かけてphp@7.3をインストールしなおしましたが結局peclは入らず。

これで解決

$ brew link --force php@7.3
$ pecl install --force xdebug
$ brew unlink php@7.3

上のでエラーが出たら

peclインストール(2行目コマンド)でエラーが出ました。

ERROR: failed to mkdir /usr/local/Cellar/php@7.3/7.3.30/pecl/20180731

シンボリックリンクを貼ってますが、元の方の該当ディレクトリがないよってことらしいので作成してあげます。

$ mkdir -p /usr/local/lib/php/pecl/yyyyMMdd
$ pecl install --force xdebug
$ brew unlink php@7.3

これでOK!

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