Skip to content

Instantly share code, notes, and snippets.

@rskelley9
Created October 1, 2017 05:43
Show Gist options
  • Save rskelley9/50e172a73196eb058ccbc9c0aee5d46f to your computer and use it in GitHub Desktop.
Save rskelley9/50e172a73196eb058ccbc9c0aee5d46f to your computer and use it in GitHub Desktop.
Install imagemagick, dependencies using homebrew automatedly.
#!/bin/sh
if [ ! -f "`which brew`" ] ; then
echo "installing homebrew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
brew update
fi
if brew ls --versions imagemagick > /dev/null; then
echo "installing imagemagick"
brew unlink imagemagick && brew install imagemagick@6 && brew link imagemagick@6 --force
else
brew install imagemagick@6 && brew link imagemagick@6 --force
fi
echo "installing dependencies for imagemagick."
sudo apt-get install libmagickwand-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment