Created
October 19, 2011 18:14
-
-
Save ecentinela/1299170 to your computer and use it in GitHub Desktop.
install imagick on mamp 2 - lion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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