Skip to content

Instantly share code, notes, and snippets.

@nitschmann
Created July 23, 2014 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nitschmann/2fc9131e55d8de35ce55 to your computer and use it in GitHub Desktop.
Save nitschmann/2fc9131e55d8de35ce55 to your computer and use it in GitHub Desktop.
Shell script to install Ruby rmagick -v '2.12.2' Gem with Homebrew under Mac OS X Mavericks
# This is a quick and dirty script for Max OS X Mavericks to install
# the Ruby rmagick Gem (Version 2.12.2) correct with Homebrew and ImageMagick
# Uninstall current ImageMagick (if installed)
if brew list -1 | grep -q "imagemagick"; then
brew uninstall imagemagick --force
fi
# Get all versions of ImageMagick via Homebrew
brew versions imagemagick
cd $( brew --prefix )
git checkout 321b293 Library/Formula/imagemagick.rb
brew install imagemagick
# change into the ImageMagick Dir and create some symlinks
cd "`Magick-config --prefix`"
ln -s libMagick++-Q16.7.dylib libMagick++.dylib
ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib
ln -s libMagickWand-Q16.7.dylib libMagickWand.dylib
# change also same stuff in the ./lib Dir
cd "`Magick-config --prefix`/lib"
ln -s libMagick++-Q16.7.dylib libMagick++.dylib
ln -s libMagickCore-Q16.7.dylib libMagickCore.dylib
ln -s libMagickWand-Q16.7.dylib libMagickWand.dylib
# Finally: Install the Gem
cd ~
gem install rmagick -v '2.12.2'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment