我已经用谷歌搜索了几次这个错误,并从他们的网站上获得了安装rMagick win-32的说明。然而,win32版本看起来有点过时,是为Ruby1.8.6设计的,而我的版本是1.9.3。
有没有人能帮我安装这个宝石?我真的不能在我的电脑上安装imageMagick,因为在接下来的几周里,代码会被移动到其他电脑上几次(学校作业,你知道我怎么做的)。这样看来,imageMagick可以与这个gem一起安装(在我的例子中,这是最好的选择)。尽管如此,我还是找不出这个错误,因为当涉及到这些事情时,我是一个相当大的n00b。
C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
checking for Ruby version >= 1.8.5... yes
Ongeldige stationsspecificatie.
Unable to get ImageMagick version
*** 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
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/RailsInstaller/Ruby1.9.3/bin/ruby
Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9
.1/gems/rmagick-2.13.1 for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rmagick-2
.13.1/ext/RMagick/gem_make.out
An error occured while installing rmagick (2.13.1), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.13.1'` succeeds before bundling.发布于 2014-04-21 22:45:27
在这里,我遇到了同样的问题。经过搜索,我在这里找到了解决方案
http://www.waydotnet.com/2010/02/12/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/
http://phosphor-escence.blogspot.in/2010/12/if-you-fail-install-rmagick-on-mingw.html
发布于 2017-11-23 02:39:02
您需要安装dev包:
sudo apt-get install libmagick++-dev希望这能有所帮助:)
https://stackoverflow.com/questions/12870971
复制相似问题