Skip to content

Instantly share code, notes, and snippets.

@ecentinela
Created October 19, 2011 18:14
Show Gist options
  • Save ecentinela/1299170 to your computer and use it in GitHub Desktop.
Save ecentinela/1299170 to your computer and use it in GitHub Desktop.
install imagick on mamp 2 - lion
# install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
# install imagemagick
brew install imagemagick
# install imagick
brew install 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 and add (the route can be different)
extension="/usr/local/Cellar/imagick/3.0.1/lib/php/extensions/imagick.so"
# restart web server
# 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:/opt/local/bin"
# you may need ghostscript for conversions
brew install gs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment