2014-11-14 126 views
1
ImageMagick的用於Ruby on Rails的

我安裝Ruby on Rails與XAMPP管理平臺本文檔如下:錯誤,而在Windows上安裝

http://nlb-creations.com/2013/06/26/installing-ruby-on-rails-and-redmine-with-xampp-on-windows-7/

第12步需要安裝rmagick,我遵循正確的步驟,直到我達到了12-d:

在cmd窗口中運行以下命令:

gem install rmagick --platform=ruby -- --with-opt-lib=c:/ImageMagick/lib --with-opt-include=c:/ImageMagick/include 

我得到了以下錯誤:

C:\xampp\htdocs\dev-ruby\redmine>gem install rmagick --platform=ruby -- --with-o 
    pt-lib=c:/ImageMagick/lib --with-opt-include=c:/ImageMagick/include 

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:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb --with-opt-lib=c:/Im 
ageMagick/lib --with-opt-include=c:/ImageMagick/include 
checking for Ruby version >= 1.8.5... yes 
Invalid drive specification. 
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=${opt-dir}/include 
     --with-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.3 for inspection. 
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rmagick-2 
.13.3/ext/RMagick/gem_make.out 

我下載了ImageMagick-devel-6.8.9.9.aarch64.rpm cz它可能會解決我的問題,但我不知道如何安裝它。請有任何想法嗎?

回答

1

聽起來像你想安裝的ImageMagick之前安裝RMagick寶石:

的轉速是一定的Linux發行版。

嘗試安裝http://www.imagemagick.org/script/binary-releases.php#windows那麼寶石。