Can't find Magick-config [duplicate]

邮差的信 提交于 2019-12-05 05:49:57

I had a similar problem because I didn't include a library for a specific gem. Check your gems and see if they depend on a library which image gems always do.

config.gem gem_name, :lib => 'path_of_your_library'
Suhas Deshpande

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
Robson

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!