gpt4 book ai didi

ruby-on-rails - 找不到魔法配置

转载 作者:行者123 更新时间:2023-12-04 09:03:02 24 4
gpt4 key购买 nike

这个问题在这里已经有了答案:




9年前关闭。




Possible Duplicate:
ImageMagick / RMagick - Can't install RMagick 2.13.1. Can't find 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.

最佳答案

我通过安装 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

关于ruby-on-rails - 找不到魔法配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3756908/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com