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
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?