簡體   English   中英

rmagick gem 未安裝在 Windows 上

[英]rmagick gem is not getting installed on Windows

我正在嘗試為 redmine 安裝所有 ruby​​ gems 離子窗口。 每次我低於例外

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 只是ImageMagick的包裝器。 extconf.rb通過運行identify檢查 ImageMagick 的存在,它是 ImageMagick 提供的程序之一。 它沒有找到它,因此No such file or directory消息。

您需要安裝 ImageMagick 並確保其可執行文件在您的路徑中。

確保在你運行gem install rmagick的同一個地方你也可以成功運行identify -version

這個話題有點難解決,因為 ImageMagick 的問題可能是由多種原因引起的。

對於任何像我一樣感覺有點迷茫的人,我推薦這個幫助我解決問題的鏈接: 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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM