在Mac OS X El Capitan中獲取錯誤Mcrypt PHP extension required.
與Laravel
。在Mac OS X El Capitan中需要Mcrypt PHP擴展
已經使用brew
安裝了mcrypt。
brew install mcrypt
brew install homebrew/php/php55-mcrypt
sudo apachectl restart
的PHP
/usr/local/bin/php
PHP --version
PHP 5.5.30 (cli) (built: Oct 3 2015 23:48:03)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
PHP --ini
Configuration File (php.ini) Path: /usr/local/etc/php/5.5
Loaded Configuration File: /usr/local/etc/php/5.5/php.ini
Scan for additional .ini files in: /usr/local/etc/php/5.5/conf.d
Additional .ini files parsed: /usr/local/etc/php/5.5/conf.d/ext-mcrypt.ini
工作HTTP:// coolestguidesontheplanet。 com/install-mcrypt-for-php-on-mac-osx-10-10-yosemite-for-a-development-server/ – zod
'$ brew install php55-mcrypt'看到這個http://stackoverflow.com/questions/26493762/yosemite-el-captian-php-gd-mcrypt-installation – Kyslik
@Kyslik我已經安裝php56使用這個答案,它的工作正常。謝謝。 – devo