Created
March 8, 2012 10:42
-
-
Save huyttq/2000353 to your computer and use it in GitHub Desktop.
Install imagemagick
This file contains 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/bash | |
mkdir -p ~/local | |
command -v identify > /dev/null | |
if [ $? -eq 1 ]; then | |
echo "${bldgrn}Installing imagemagick into ${txtwht}$HOME/local/imagemagick${txtrst}" | |
wget -N --retr-symlinks ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz | |
tar -xzvf ImageMagick.tar.gz | |
cd ImageMagick-* | |
./configure --prefix=$HOME/local/imagemagick | |
make | |
make install | |
cd .. | |
rm -rf ImageMagick-* | |
fi | |
.bashrc | |
export PATH=$HOME/local/imagemagick/bin:$PATH | |
export LD_LIBRARY_PATH=$HOME/local/imagemagick/lib:$LD_LIBRARY_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment