Created
October 1, 2017 05:43
-
-
Save rskelley9/50e172a73196eb058ccbc9c0aee5d46f to your computer and use it in GitHub Desktop.
Install imagemagick, dependencies using homebrew automatedly.
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
#!/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