Skip to content

Instantly share code, notes, and snippets.

@sadawie
Created June 23, 2022 14:21
Show Gist options
  • Save sadawie/a9d55494cba4f1589a535580335eb23c to your computer and use it in GitHub Desktop.
Save sadawie/a9d55494cba4f1589a535580335eb23c to your computer and use it in GitHub Desktop.
Install ImageMagick on Amazon Linux2
wget https://github.com/ImageMagick/ImageMagick/archive/7.1.0-39.tar.gz -O ImageMagick.tar.gz
mkdir ImageMagick
tar -vxf ImageMagick.tar.gz --strip-components 1 -C /tmp/ImageMagick
sudo yum -y install libpng-devel libjpeg-devel libtiff-devel
cd ImageMagick
./configure --without-x
make
sudo make install
sudo ldconfig /usr/local/lib
sudo ln -s /usr/local/bin/magick /usr/bin/magick
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment