1. Install Homebrew http://brew.sh/
3. Disable the DYLD_LIBRARY_PATH variable in Apache's environmental variables.
6. Check if imagick is included in phpinfo()
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"2. Install ImageMagick for the PHP version your MAMP is running.
brew search imagick brew install php55-imagickAfter installation, the ImageMagick PHP extension is created in /usr/local/Cellar/php55-imagick/3.1.0RC2/imagick.so
3. Disable the DYLD_LIBRARY_PATH variable in Apache's environmental variables.
vi /Applications/MAMP/Library/bin/envvarsComment out the following line:
export DYLD_LIBRARY_PATH4. Update php.ini to include imagick.so
vi /Applications/MAMP/bin/php/php5.5.3/conf/php.iniAdd the following line.
extension="/usr/local/Cellar/php55-imagick/3.1.0RC2/imagick.so";5. Restart MAMP
6. Check if imagick is included in phpinfo()
Comments