我的 Rmagic 不工作
红宝石-v
ruby 1.8.7 (2010-01-10 补丁级别 249) [i386-mingw32]
导轨-v
导轨 3.0.0.beta4
irb
需要红宝石
真的
需要 rmagick
真的
但是,我把流程代码:
gem 'rmagick', :require => false
它错误:
检查 Ruby 版本 >= 1.8.5... 是
检查 stdint.h ... 否
检查 sys/types.h... 否
检查 wand/MagickWand.h... 否
无法安装 RMagick 2.13.1。找不到 MagickWand.h。
*** extconf.rb 失败 ***
由于某种原因无法创建 Makefile,可能缺少
必要的库和/或头文件。查看 mkmf.log 文件了解更多信息
细节。您可能需要配置选项。
提供的配置选项:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--没有-make-prog
--srcdir=。
--curdir
--ruby=C:/Ruby/bin/ruby
Gem 文件将继续安装在 C:/Ruby/lib/ruby/gems/1.8/gems/rmagick-2.13.1 以供检查。
结果记录到 C:/Ruby/lib/ruby/gems/1.8/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
来自 C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/installer.rb:446:in `each'
来自 C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/installer.rb:446:in `build_extensions'
来自 C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/installer.rb:198:in `install'
来自 C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/source.rb:100:in `install'
来自 C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/installer.rb:55:in `run'
来自 C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/spec_set.rb:12:in `each'
来自 C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/spec_set.rb:12:in `each'
来自 C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/installer.rb:44:in `run'
来自 C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/installer.rb:8:in `install'
来自 C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/cli.rb:217:in `install'
来自 C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/vendor/thor/task.rb:22:in `send'
来自 C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/vendor/thor/task.rb:22:in `run'
来自 C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/vendor/thor/invocation.rb:118:in `invoke
来自 C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/vendor/thor.rb:246:in `dispatch'
来自 C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/vendor/thor/base.rb:389:in `start'
来自 C:/Ruby/lib/ruby/gems/1.8/gems/bundler-1.0.0/bin/bundle:13
来自 C:/Ruby/bin/bundle:19:in `load'
来自 C:/Ruby/bin/bundle:19
请帮助我,谢谢!