2016-11-08 15 views
0

私はredmineのためにすべてのruby gems ion windowsをインストールしようとしています。毎回私は例外の下に取得していますrmagick gemがWindowsにインストールされていません

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 

答えて

0

rmagickはImageMagickのための単なるラッパーです。 extconf.rbは、ImageMagickが提供するプログラムの1つであるidentifyを実行して、ImageMagickの存在を確認しています。見つからないため、No such file or directoryというメッセージが表示されます。

ImageMagickをインストールし、実行ファイルがあなたのパスにあることを確認する必要があります。

+0

ありがとうMax、私はすでにImageMagickをインストールしていますが、どうすれば実行可能ファイルを設定することもできます –

+0

http://stackoverflow.com/questions/9546324/adding-directory-to-path-environment-variable-in- windows – Max

+0

Hello Max、環境変数はすでに設定されており、ImageMagickをc:/ ImageMagickにインストールしましたが、同じ問題に直面しています –

関連する問題