mcrypt をインストール1
brew install homebrew/php/php55-mcrypt
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
→APP から Xcode を起動して agree
undefined method `desc’ for Php55Mcrypt:Class
→brew update で大量のエラー
homebrew メンテ
→ brew doctor
Warning: The /usr/local is not writable.
sudo chown $(whoami):admin /usr/local
→sudo brew update
Warning: /usr/bin occurs before /usr/local/bin
→echo ‘export PATH=”/usr/local/bin:$PATH”‘ >> ~/.xxx
source ~/.xxx
mcrypt, ACP をインストール2
sudo を付けずにインストールしてしまったのでいろいろ不具合がありそう。
Error: You must `brew link libpng freetype unixodbc php55 mhash mcrypt` before homebrew/php/php55-mcrypt can be installed
→sudo brew link libpng freetype unixodbc php55 mhash mcrypt
→sudo brew reinstall homebrew/php/php55-mcrypt
* /usr/local/etc/php/5.5/conf.d/ext-mcrypt.ini was created,
* /usr/local/etc/php/5.5/conf.d/ext-apcu.ini was created,
で、ソケットを見ると、
[mcrypt]
extension=”/usr/local/opt/php55-mcrypt/mcrypt.so”
[apcu]
extension=”/usr/local/opt/php55-apcu/apcu.so”
apc.enabled=1
apc.shm_size=64M
apc.ttl=7200
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
これを php.ini に記述。APC動かず。