2010-10-26 75 views
2

我很感激任何幫助 - 我敢肯定這是一個簡單的錯誤。RMagick不工作

我的應用程序的位置是C:\sanj\rubyjobs。我已成功將ImageMagick安裝在其默認位置:C:\Program Files (x86)\ImageMagick

我也通過運行gem install rmagick --localC:\sanj\rubyjobs\vendor\RMagick Extract安裝了rmagick寶石。

在運行bundle install,我得到以下錯誤:

C:/Sanj/Ruby192/bin/ruby.exe extconf.rb 
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 
     --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:/Sanj/Ruby192/bin/ruby 

Gem files will remain installed in C:/Sanj/Ruby192/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1 for inspection. 
Results logged to C:/Sanj/Ruby192/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/ext/RM 
agick/gem_make.out 

安裝:Windows Vista中的64位,紅寶石1.9.2,Rails 3中,Heroku的

編輯 當我運行identify -version從ruby命令提示符下,我得到: 版本:ImageMagick 6.5.6-8 2009-10-03 Q8 OpenMP http://www.imagemagick.org 版權所有:Copyright(C)1999-2009 ImageMagick Studio LLC

如果ImageMagick已安裝並且提示符正在查找它,爲什麼它說它無法獲取該版本?

回答

0

退房的RMagick FAQ。據他們說,你不應該安裝官方的RMagick gem,而應該使用與ImageMagick安裝程序捆綁在一起的gem。

0

以下是如何讓RMagic工作! https://github.com/rmagick/rmagick/wiki

這不是一個簡單的錯誤。它的設計很差。像在你的道路上需要ImageMagick的東西只是奧術!儘管如此,它並不適用於最新版本的ImageMagick 6.8。

+0

THanks Chloe但我正在運行OS X. – sscirrus 2013-01-30 16:40:37

+0

什麼?你的路徑說'C:\ Program Files文件(x86)\ ImageMagick'和'C:/ Sanj/Ruby192/bin/ruby​​.exe' – Chloe 2013-02-06 16:34:34

+0

哈哈 - 忘記最後一條評論。當我在2010年發佈這個問題時,我正在運行Windows。沒關係! – sscirrus 2013-02-08 05:36:51