Skip to content

Instantly share code, notes, and snippets.

@ahmadhasankhan
Last active December 4, 2022 18:57
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ahmadhasankhan/3d172098a8890f3a9851ced1690d4df6 to your computer and use it in GitHub Desktop.
Save ahmadhasankhan/3d172098a8890f3a9851ced1690d4df6 to your computer and use it in GitHub Desktop.
Install ImageMagick 6.7.7-10 on Unix using binary

Remove imagemagick

sudo apt-get --purge remove imagemagick
sudo apt autoremove

Install Required package:

sudo apt-get install build-essential 
sudo apt-get install checkinstall
sudo apt-get install libgs-dev
sudo apt-get install ghostscript

Create a new directory

mkdir ~/src
cd ~/src

Download the Binary:

wget http://www.imagemagick.org/download/releases/ImageMagick-6.7.7-10.tar.xz

Extract the tar

tar xf ImageMagick-6.7.7-10.tar.xz
cd ImageMagick-6.7.7-10/

Proceed to instaltion:

sudo ./configure --with-gslib=yes
sudo make
sudo checkinstall
sudo ldconfig

Verify the version:

identify -version

@ngekoding
Copy link

Getting error when run sudo checkinstall

/bin/mkdir -p '/usr/local/bin'
/usr/bin/install -c magick/Magick-config magick/MagickCore-config wand/Wand-config wand/MagickWand-config Magick++/bin/Magick++-config '/usr/local/bin'
/bin/mkdir -p '/usr/local/etc/ImageMagick-6/'
/bin/mkdir: cannot create directory '/usr/local/etc': No such file or directory
Makefile:10712: recipe for target 'install-configlibDATA' failed
make[2]: *** [install-configlibDATA] Error 1
make[2]: Leaving directory '/home/teknikdev/magic/ImageMagick-6.9.9-51'
Makefile:11354: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/home/teknikdev/magic/ImageMagick-6.9.9-51'
Makefile:11348: recipe for target 'install' failed
make: *** [install] Error 2

**** Installation failed. Aborting package creation.

Cleaning up...OK

Bye.

How to solving this?

@chaoswey
Copy link

chaoswey commented Oct 14, 2021

Proceed to instaltion:

sudo ./configure --with-gslib=yes
sudo make
sudo make install
sudo ldconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment