Created
July 23, 2014 10:06
-
-
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 file contains hidden or 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
# 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