LoginSignup
2

More than 5 years have passed since last update.

Mac での Mcrypt PHP extension required. 対処方法(別バージョン)

Posted at

はじめに

homebrew でインストールした PHP で Mcrypt PHP extension required.のメッセージが出るようになったけど、こちらの現象ではなかったっぽくて、最終的にここを参考に再インストールしたら直った。という話。

環境

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.12.4
BuildVersion:   16E195


$ brew list | grep php
php-cs-fixer
php70
php70-mcrypt


$ php -m | grep mcrypt
## 無反応

手順

php70-mcryptをソースから再インストール
$ brew reinstall -fs php70-mcrypt
確認
$ php -m | grep mcrypt
mcrypt


## 表題のメッセージもでなくなりました。

おわり

ここに至るまで php.ini に mcrypt のパスを書いたりなど色々やったのですが、最終的には再インストールが正解でした。

homebrew-php のスレ主ありがとう。

おわりです:whale2:

参考と注釈

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
2