Can't install RMagick 0.0.0. Can't find Magick-config

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 12:06:02

For whoever runs into this problem in the future: It took me long but it's fixed. This is what I did:

  • sudo apt-get purge imagemagick libmagickcore-dev libmagickwand-dev
  • sudo rm -R /usr/include/ImageMagick-6/magick
  • sudo ln -s /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/Magick-config /usr/bin/Magick-config
  • sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev

I think you have to install libmagickwand-dev from the ubuntu archive:

This package included the static libraries needed to compile programs using MagickWand.It contains the MagickWand.h file

This is a transition package that depends on default quantum libmagickwand development files.

sudo apt-get install libmagickwand-dev

After install this dependency you need to install rmagick:

gem install rmagick

I'm on mac os, but I had to specify version 6

brew install imagemagick@6
brew link --overwrite --force imagemagick@6
user1358180
apt-get install libmagickcore-dev

worked well for me.

Renato

In centos 7 I had to do the following to make it work:

 yum install ImageMagick-devel.x86_64

It failed all the time when this package was not installed.

Had the same problem, but ImageMagic was installed. Symlinking worked but url is slightly different then answers above. Please pay attention to caps. For Ubuntu 18.04 there are 2 options:

Option 1:

Add symlink:

sudo ln -s /usr/lib/x86_64-linux-gnu/ImageMagick-6.9.7/bin-q16/Magick-config /usr/bin/Magick-config

Option 2:

Export path in ~/.profile

export PATH="/usr/lib/x86_64-linux-gnu/ImageMagick-6.9.7/bin-q16/:$PATH"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!