找不到 Magick-config

发布于 2024-09-24 09:39:40 字数 839 浏览 8 评论 0原文

可能的重复:
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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

沉鱼一梦 2024-10-01 09:39:40

我通过安装 libmagickwand-dev 解决了这个问题

apt-get install libmagickwand-dev  
gem install rmagick

之前,我收到以下错误(即使在安装 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

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
薆情海 2024-10-01 09:39:40

看来这个问题在安装 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

静若繁花 2024-10-01 09:39:40

我遇到了类似的问题,因为我没有包含特定宝石的库。检查您的 gem,看看它们是否依赖于图像 gem 总是依赖的库。

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

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'
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文