It's quick and dirty here when installing the latest version (version 6.8.4-6 at the time of this writing) ImageMagick on Ubuntu 12.04.
Start by uninstalling old versions previously installed with apt-get:
sudo apt-get remove imagemagick
Then update apt-get and install some supporting packages:
sudo apt-get update sudo apt-get install libperl-dev gcc libjpeg-dev libbz2-dev libtiff4-dev libwmf-dev libz-dev libpng12-dev libx11-dev libxt-dev libxext-dev libxml2-dev libfreetype6-dev liblcms1-dev libexif-dev perl libjasper-dev libltdl3-dev graphviz pkg-config
Use wget to capture the source from ImageMagick.org.
After downloading the source, unzip it:
tar -xzf ImageMagick.tar.gz
Now configure and run:
cd ImageMagick-6.8.4-6 ./configure sudo make sudo make install
To avoid an error, for example:
convert: error while loading shared libraries: libMagickCore.so.2: cannot open shared object file: No such file or directory
Add the following line to ~/.bashrc :
export LD_LIBRARY_PATH=/usr/local/lib
Update. If you still get an error similar to the above, try running ldconfig:
sudo ldconfig
You can confirm the installation and available formats with:
identify -list format
Chandan
source share