【发布时间】:2016-03-26 23:19:38
【问题描述】:
我已经对此进行了研究,并且已经在我的一台计算机上研究了几个小时。
大约 3 周前,我在我的台式计算机上安装了 RMagick,它相当复杂。
我不记得我采取的确切步骤,我真的很沮丧。
我已将 ImageMagick 安装到我的机器上的 C:\ImageMagick 目录中
我也为 Ruby 安装了开发工具包。
我还将 rmagick-rmagick-v2-2-g564f157 放入了我的 C 中正确的 gems 文件夹: 它在 C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems
我收到以下错误:
我会输入:gem install rmagick -- '--with-opt-dir="c:\ImageMagick"'
并得到以下错误:
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-opt-dir="c:\ImageMagick"'
This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20160326-6132-157vnes.rb extconf.rb
'--with-opt-dir="c:\ImageMagick"
checking for main() in -lCORE_RL_magick_... no
searching PATH for the ImageMagick library...
checking for main() in -lCORE_RL_magick_... no
checking for main() in -lCORE_RL_magick_... no
checking for main() in -lCORE_RL_magick_... no
Can't install RMagick 2.15.4.
Can't find the ImageMagick library.
Retry with '--with-opt-dir' option.
Usage: gem install rmagick -- '--with-opt-dir="[path to ImageMagick]"'
e.g.
gem install rmagick -- '--with-opt-dir="C:Program FilesImageMagick-6.9.1-
Q16"'
*** 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
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby22-x64/bin/$(RUBY_BASE_NAME)
--with-CORE_RL_magick_lib
--without-CORE_RL_magick_lib
--with-CORE_RL_magick_lib
--without-CORE_RL_magick_lib
--with-CORE_RL_magick_lib
--without-CORE_RL_magick_lib
--with-CORE_RL_magick_lib
--without-CORE_RL_magick_lib
extconf failed, exit code 1
Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0
/gems/rmagick-2.15.4 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/rmagick-2.15.4/gem_make.out
在这一点上我很沮丧。它在我的台式电脑上工作,但在这里不起作用。有什么建议吗?
【问题讨论】:
-
聚会迟到了。查看此answer,了解如何在 Windows 10 上安装
rmagik。