Skip to content

Instantly share code, notes, and snippets.

@riccardobl
Created June 12, 2016 17:28
Show Gist options
  • Save riccardobl/3aabaf82f74675a7b75b5878a5411789 to your computer and use it in GitHub Desktop.
Save riccardobl/3aabaf82f74675a7b75b5878a5411789 to your computer and use it in GitHub Desktop.
sudo apt-get install build-essential
sudo apt-get build-dep imagemagick
wdir=/tmp/`tr -dc A-Za-z0-9 < /dev/urandom | head -c 4`-immgk
sudo rm -Rf "$wdir"
sudo mkdir -p "$wdir"
sudo chmod 777 -Rf "$wdir"
cd "$wdir"
echo "Working dir $wdir"
wget http://www.imagemagick.org/download/ImageMagick.tar.gz -O dl.tar.gz
tar -xzf dl.tar.gz
rm -f dl.tar.gz
cd *
./configure
make
sudo make install
sudo ldconfig
cd ~
sudo rm -Rf "$wdir"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment