我正在尝试使用以下命令安装 RmMagic:
宝石安装 rmagick -v=2.12.2
运行此命令后,我收到一些错误:
暂时增强 PATH 以包含 DevKit...
构建原生扩展。这可能需要一段时间...
错误:安装 rmagick 时出错:
错误:无法构建 gem 原生扩展。
D:/ruby/bin/ruby.exe extconf.rb
检查 Ruby 版本 >= 1.8.5... 是
驱动器规格无效。
无法获取 ImageMagick 版本
*** 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=D:/ruby/bin/ruby
Gem 文件将继续安装在 D:/ruby/lib/ruby/gems/1.8/gems/rmagick-2
.12.2 检查。
结果记录到 D:/ruby/lib/ruby/gems/1.8/gems/rmagick-2.12.2/ext/RMagick
/gem_make.out
请在这方面帮助我。提前致谢。