[英]rmagick gem is not getting installed on Windows
I am trying to install all ruby gems ion windows for redmine.我正在尝试为 redmine 安装所有 ruby gems 离子窗口。 Everytime I am getting below exception
每次我低于例外
C:\xampp\htdocs\dev-ruby\redmine>gem install rmagick
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
C:/xampp/ruby/RailsInstaller/Ruby2.2.0/bin/ruby.exe extconf.rb
*** 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:/xampp/ruby/RailsInstaller/Ruby2.2.0/bin/$(RUBY_BASE_NAME)
extconf.rb:141:in ``': No such file or directory - identify -version (Errno::ENOENT)
from extconf.rb:141:in `configure_compile_options'
from extconf.rb:16:in `initialize'
from extconf.rb:548:in `new'
from extconf.rb:548:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in C:/xampp/ruby/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rmagick-2.16.0 for inspection.
Results logged to C:/xampp/ruby/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/rmagick-2.16.0/gem_make.out
rmagick is just a wrapper for ImageMagick . rmagick 只是ImageMagick的包装器。
extconf.rb
is checking for the presence of ImageMagick by running identify
, which is one of the programs provided by ImageMagick. extconf.rb
通过运行identify
检查 ImageMagick 的存在,它是 ImageMagick 提供的程序之一。 It isn't finding it, hence the No such file or directory
message.它没有找到它,因此
No such file or directory
消息。
You need to install ImageMagick and make sure that its executables are in your path.您需要安装 ImageMagick 并确保其可执行文件在您的路径中。
Make sure that in the same place you run gem install rmagick
you can also run identify -version
successfully.确保在你运行
gem install rmagick
的同一个地方你也可以成功运行identify -version
。
This topic is kind of hard to solve, due to the problems with ImageMagick can be caused by any number of reasons.这个话题有点难解决,因为 ImageMagick 的问题可能是由多种原因引起的。
For anyone feeling a bit lost like i did, i recommend this link which helped me solve my issue: https://medium.com/ruby-on-rails-web-application-development/install-rmagick-gem-on-windows-7-8-10-imagemagick-6-9-4-q16-hdri-5492c3fef202对于任何像我一样感觉有点迷茫的人,我推荐这个帮助我解决问题的链接: https : //medium.com/ruby-on-rails-web-application-development/install-rmagick-gem-on-windows -7-8-10-imagemagick-6-9-4-q16-hdri-5492c3fef202
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.