# I battled for hours trying to install imagick via macports, trying to follow various tutorials. # If you've been battling with macports, completely uninstall everything related to # macports (http://guide.macports.org/chunked/installing.macports.uninstalling.html) # and trying with Home Brew instead, using the instructions below # install brew (http://mxcl.github.com/homebrew/) ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" # install imagemagick brew install imagemagick # tap dupes brew tap homebrew/dupes # tap homebrew php brew tap josegonzalez/homebrew-php # install imagick (Note: change this command to refer to your relevant PHP version. Eg, for PHP 5.4, execute "brew install php54-imagick") brew install php53-imagick # if giving errors on the installation, comment the content on ~/.bash_profile or ~/.profile, open a new terminal and retry # edit php.ini file (in MAMP, choose "File" -> "Edit template" with the PHP version you are using) # and add to the extensions (the route can be different) extension="/usr/local/Cellar/php53-imagick/3.0.1/imagick.so" # restart MAMP # once ImageMagick is installed, head to: /Applications/MAMP/Library/bin/envvars # comment out the two lines DYLD_LIBRARY_PATH="/Applications/MAMP/Library/lib:$DYLD_LIBRARY_PATH" export DYLD_LIBRARY_PATH # and add the line export PATH="$PATH:/usr/local/bin" # you may need ghostscript for conversions brew install gs # restart MAMP again