Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't find Magick-config [duplicate]

Possible Duplicate:
ImageMagick / RMagick - Can't install RMagick 2.13.1. Can't find Magick-config

I am getting the following error when I try to run my dev console (MAC OS X / Snow Leopard). Does anyone know the solution?

/usr/local/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.1. Can't find Magick-config in .:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.
like image 334
keruilin Avatar asked Sep 21 '10 02:09

keruilin


2 Answers

I solved it by Installing libmagickwand-dev

apt-get install libmagickwand-dev  
gem install rmagick

Before, I was getting following error (even after installing libmagick9-dev):

apt-get install libmagick9-dev
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package libmagick9-dev is a virtual package provided by:
libmagickwand-dev 7:6.4.5.4.dfsg1-1ubuntu3.1
You should explicitly select one to install.
E: Package libmagick9-dev has no installation candidate
like image 86
Suhas Deshpande Avatar answered Nov 04 '22 10:11

Suhas Deshpande


It seems that this problem is common in time to install the RMagick gem ... I had the same problem, and I've found the solution in this same site. Follow the link here.

Solution:

sudo apt-get install libmagick9-dev

like image 26
Robson Avatar answered Nov 04 '22 11:11

Robson