我在我的Ubuntu 10.04服务器上使用rbenv,我已经安装了ImageMagick,但我无法成功安装RMagick.我收到以下错误消息
Can't install RMagick 2.13.1. Can't find MagickWand.h
Run Code Online (Sandbox Code Playgroud)
有任何想法吗?
谢谢!
像许多其他人一样,我在运行bundle install时在Ubuntu上安装rmagick时遇到了麻烦.
我在bundle install命令上遇到这个错误:
Installing rmagick (2.13.1)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.8.7-p371/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/rvm/gems/ruby-1.8.7-p371/bin:/usr/local/rvm/gems/ruby-1.8.7-p371@global/bin:/usr/local/rvm/rubies/ruby-1.8.7-p371/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
*** 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.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib …Run Code Online (Sandbox Code Playgroud)