Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

So I was doing the following:

sudo apt-get install php-pear php5-dev
sudo apt-get install imagemagick libmagickwand-dev
sudo pecl install imagick

It all works till I get the error:

make: *** [imagick_class.lo] Error 1
ERROR: `make' failed

Which according to blog posts and forms is because of libmagick9-dev, how ever when trying to install this I get:

 sudo apt-get install libmagick9-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libmagick9-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  graphicsmagick-libmagick-dev-compat

E: Package 'libmagick9-dev' has no installation candidate

Thoughts?

share|improve this question
    
What version of ubuntu are you running? –  nikhil Dec 14 '12 at 17:15

1 Answer 1

up vote 0 down vote accepted

Your error message says that the package is no longer available. Try running this before executing those commands.

sudo apt-get install graphicsmagick-libmagick-dev-compat

Also as a side note try installing packages from the repository if they are available.

share|improve this answer
    
I already ran those commands..... Should I run this one and then do the pecl install? There was a problem with your command: checking if ImageMagick version is at least 6.2.4... configure: error: no. You need at least Imagemagick version 6.2.4 to use Imagick. ERROR: `/tmp/pear/temp/imagick/configure --with-imagick' failed –  Kyle Adams Dec 14 '12 at 17:05
    
Yes you should run this before the pecl install –  nikhil Dec 14 '12 at 17:06
    
Well I did and I still got that error where it want's 6.2.4 - I am doing this all via ssh - is there a way to install 6.2.4 from repos? –  Kyle Adams Dec 14 '12 at 17:12
    
What version does it install from the repos? Were you able to get it to work? –  nikhil Dec 14 '12 at 17:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.