[英]How to install Rmagick and imageMagick for Ruby on Rails in windows 7 32 bit
我需要為我的應用程序安裝Rmagick,所以我已經搜索了所有相關的我的問題在網絡和放樣流程,但沒有這些為我工作。 我也遵循了這一點,但沒有奏效
http://stackoverflow.com/questions/6473853/ruby-on-rails-rmagick-on-windows-7
我的Ruby版本 - > 1.9.3
Rails版本 - > 3.2.9
ImageMagick版本 - > ImageMagick-6.8.3-2-Q16-x86-dll.exe
我在這里安裝了ImageMagick - > C:\\ ImageMagick-6.8.3-Q16
我打開CMD然后輸入
gem install rmagick --platform = ruby - --with-opt-lib = C:\\ ImageMagick-6.8.3-Q16 \\ lib --with-opt-include = C:\\ ImageMagick-6.8.3-Q16 \\ include
錯誤是
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
d:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb --with-opt-lib=C:ImageMagick-6.8.3-Q16lib --with-opt-include=C:ImageMagick-6.8
.3-Q16include
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=d:/RailsInstaller/Ruby1.9.3/bin/ruby
Gem files will remain installed in d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2 for inspection.
Results logged to d:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2/ext/RMagick/gem_make.out
復制評論中的答案,以便從“未答復”過濾器中刪除此問題:
我找到了解決方案並且工作了http://rorashish.blogspot.in/2012/08/installing-rmagick-with-imagemagic-on.html
〜每個Gagan回答
有關完整詳細信息,請參閱上面的鏈接,但高級步驟(截至2012年8月9日)是:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.