Skip to content

Instantly share code, notes, and snippets.

@rodleviton
Created May 26, 2014 07:37
Show Gist options
  • Save rodleviton/74e22e952bd6e7e5bee1 to your computer and use it in GitHub Desktop.
Save rodleviton/74e22e952bd6e7e5bee1 to your computer and use it in GitHub Desktop.
Installing Image Magick on Ubuntu 14.04
sudo -i
cd
apt-get install build-essential checkinstall && apt-get build-dep imagemagick -y
wget http://www.imagemagick.org/download/ImageMagick-6.8.7-7.tar.gz
tar xzvf ImageMagick-6.8.9-1.tar.gz
cd ImageMagick-6.8.9-1/
./configure --prefix=/opt/imagemagick-6.8 && make
checkinstall
@babnik63
Copy link

babnik63 commented Oct 8, 2014

This is the latest version tar.gz file:
wget http://www.imagemagick.org/download/ImageMagick.tar.gz

you should change other codes regarding to latest version number
;-)

@meteormatt
Copy link

@babnik63 👍

@devoxel
Copy link

devoxel commented Jul 15, 2015

Might be useful to include the checkinstall input, although it's prompts are very descriptive.

@thanhcuong1990
Copy link

I'm using a simple way to install imagemagick:
sudo apt-get install imagemagick

@terrysahaidak
Copy link

@thanhcuong1990 in my case it doesn't working, I've got this error

After this operation, 67.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgs9-common all 9.10~dfsg-0ubuntu10.3
  404  Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgs9 amd64 9.10~dfsg-0ubuntu10.3
  404  Not Found [IP: 91.189.92.200 80]
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main ghostscript amd64 9.10~dfsg-0ubuntu10.3
  404  Not Found [IP: 91.189.92.200 80]
Unable to correct missing packages.
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/ghostscript/libgs9-common_9.10~dfsg-0ubuntu10.3_all.deb  404  Not Found [IP: 91.189.92.200 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/ghostscript/libgs9_9.10~dfsg-0ubuntu10.3_amd64.deb  404  Not Found [IP: 91.189.92.200 80]

E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/ghostscript/ghostscript_9.10~dfsg-0ubuntu10.3_amd64.deb  404  Not Found [IP: 91.189.92.200 80]

E: Aborting install.

I'm using Ubuntu 14.04.2 LTS.

@faysalmehmood
Copy link

After checkinstall when I do "ldconfig /usr/local/lib"
It give error "/sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
"

@faysalmehmood
Copy link

here is my output of checkinstall:
ghost@ghost-protocol:~/ImageMagick-6.9.2-1$ checkinstall

checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.


**** Debian package creation selected ***


*** Warning: The package name "ImageMagick-6.9.2" contains upper case
*** Warning: letters. dpkg might not like that so I changed
*** Warning: them to lower case.

This package will be built according to these values:

0 - Maintainer: [ ghost@ghost-protocol ]
1 - Summary: [ Package created with checkinstall 1.6.2 ]
2 - Name: [ imagemagick-6.9.2 ]
3 - Version: [ 1 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ ImageMagick-6.9.2-1 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ imagemagick-6.9.2 ]
12 - Conflicts: [ ]
13 - Replaces: [ ]

Enter a number to change any of them or press ENTER to continue:

@faysalmehmood
Copy link

I'm confused. Can anyone help me to check whether I have correctly installed ImageMagick or not?

@nasikshafeek
Copy link

@avideyes Hi, I think this might help you.
After installing if you want to check whether you have successfully installed an configured ImageMagick you could run
$ convert -version - Will give the version information about the ImageMagick package
$ convert or $ convert -h or $ convert -help will show the information about how to use ImageMagick or basically the help information.

And if you need more information about how to perform ImageMagick functions using the terminal, you could read this page from ImageMagick website.

@drc-systems
Copy link

from above step i got this result
checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.


**** Debian package creation selected ***


*** Warning: The package name "ImageMagick-6.9.3" contains upper case
*** Warning: letters. dpkg might not like that so I changed
*** Warning: them to lower case.

This package will be built according to these values:

0 - Maintainer: [ root@rajen ]
1 - Summary: [ Package created with checkinstall 1.6.2 ]
2 - Name: [ imagemagick-6.9.3 ]
3 - Version: [ 7 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ ImageMagick-6.9.3-7 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ imagemagick-6.9.3 ]
12 - Conflicts: [ ]
13 - Replaces: [ ]

Enter a number to change any of them or press ENTER to continue:

--What to do next..?
Because when i press enter for continue, it displays the message that "Installation Failed" ...!

@radik909
Copy link

👍

@typomaker
Copy link

👍👍👍

@LuisSevillano
Copy link

Thanks from Spain!

@nhattan
Copy link

nhattan commented Sep 28, 2016

Short answer:

sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev libmagic-dev
sudo apt-get install imagemagick

@ziaenezhad
Copy link

@peakBreaker
Copy link

Fantastic!

@danielgasser
Copy link

👍

@vijaychandra800
Copy link

Thanks you so much bro..very useful .,.really great info

@shridharkalagi
Copy link

ubuntu:~$ checkinstall

checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.

The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs? [y]: y

Preparing package documentation...OK

*** No known documentation files were found. The new package
*** won't include a documentation directory.


**** Debian package creation selected ***


This package will be built according to these values:

0 - Maintainer: [ ubuntu@ip-172-31-38-121 ]
1 - Summary: [ aa ]
2 - Name: [ ubuntu ]
3 - Version: [ 20170323 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ ubuntu ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ ubuntu ]
12 - Conflicts: [ ]
13 - Replaces: [ ]

Enter a number to change any of them or press ENTER to continue:

Installing with make install...

========================= Installation results ===========================
make: *** No rule to make target `install'. Stop.

**** Installation failed. Aborting package creation.

Cleaning up...OK

Bye.

Installation is failing with above error on UBUNTU machine. Can some one please help?

@EdgarOrtegaRamirez
Copy link

EdgarOrtegaRamirez commented Apr 24, 2017

You should be able to install ImageMagick directly from Ubuntu software sources:

sudo apt-get update
sudo apt-get install imagemagick

More info:
https://help.ubuntu.com/community/ImageMagick

@vandamon
Copy link

why is identify not working with this?

@deejayingo
Copy link

deejayingo commented Aug 2, 2017

I had a similar problem and tried sudo apt install and sudo apt update, ...apt upgrade, ...apt-get partitial... purge... autoreinstall etc. etc.
but i didn't recognized that apt-get and aptitude are different ways to get packages.

At the end that was my solution:
sudo aptitude reinstall <package/app/missing deb>
an other version i found is following (but I don't tried because that worked fine):
sudo aptitude reinstall -f <package/app/missing deb pkg>

{In my case it was sudo aptitude reinstall libmagick++-6.q16-7:amd64 just to make it clear}

I hope it helps someone like it helped me

@ronzillia
Copy link

@terrysahaidak Try capital Y

@dangkhoaow
Copy link

Best place to execute ImageMagick online for you. Supporting all ImageMagick feature with output file and console log, no need to install.
https://freetoolonline.com/imagemagick-online.html

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