找不到 Magick-config
可能的重复:
ImageMagick / RMagick - 无法安装RMagick 2.13.1。找不到 Magick-config
当我尝试运行我的开发控制台(MAC OS X / Snow Leopard)时,出现以下错误。有谁知道解决方案吗?
/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.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我通过安装 libmagickwand-dev 解决了这个问题
之前,我收到以下错误(即使在安装 libmagick9-dev 之后):
I solved it by Installing
libmagickwand-dev
Before, I was getting following error (even after installing
libmagick9-dev
):看来这个问题在安装 RMagick gem 时很常见...我也遇到了同样的问题,并且我在同一个站点中找到了解决方案。点击此处链接。
解决方案:
sudo apt-get install libmagick9-dev
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
我遇到了类似的问题,因为我没有包含特定宝石的库。检查您的 gem,看看它们是否依赖于图像 gem 总是依赖的库。
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.