How to install rmagick gem on Windows?
RMagic won't work with ImageMagic 6.8. I updated the RMagick Github wiki with detailed instructions.
https://github.com/rmagick/rmagick/wiki
There I found gems (haha) such as
If ImageMagick isn't first in your system path, you'll get an "Invalid
drive specification" error when extconf.rb tries to identify the
ImageMagick version.
and
gem install rmagick -- '--with-opt-dir="[path to ImageMagick]"'
(Obvious, huh?)
I believe RMagick is a dead project. There hasn't been a commit for 2 years!
Can't install gem rmagick [Windows 7 64 bit]
CarrierWave is indeed a great solution for managing image uploads in Rails.
RMagick is very powerful, but you won't believe how much trouble me and my friends had through the years while installing and upgrading RMagick and ImageMagick in various environments and operating systems (especially Windows and Mac).
If you have ImageMagick installed, and you don't worry too much about performance, you can use MiniMagick instead of RMagick. It's much easier to install it. In your uploader class you can include MiniMagick:
class MyUploader < CarrierWave::Uploader::Base
include CarrierWave::MiniMagick
...
end
This complexity of image processing tools is one of the reason I would suggest you take a look at our solution for integrating CarrierWave while all image transformations are done in the cloud (no need to install RMagick or ImageMagick at all). This blog post describes the solution. Just switch the CarrierWave plugin you include:
class MyUploader < CarrierWave::Uploader::Base
include Cloudinary::CarrierWave
...
end
Error occurred while installing rmagick
Try this:
apt-get install libmagickwand-dev
gem install rmagick
Related Topics
Ruby Class Instance Variables and Inheritance
Rails 3, Check CSV File Encoding Before Import
Heroku: How to Push Seeds.Rb to Existing Rails App
Star Rating in Ajax with Ruby on Rails
How to Convert String to Bytes in Ruby
Deleting While Iterating in Ruby
Rails Check_Box_Tag How to Pass Value When Checked Ajaxily
Rails 3.1 Actioncontroller::Routingerror (No Route Matches [Get] "/Assets/Rails.Png"):
Rubocop Error 'Class Definition Is Too Long Ruby'
Rails - Displaying Foreign Key References in a Form
Why Do I Get "No Implicit Conversion of String into Integer (Typeerror)"
Installing Ruby 2.3 on Wsl (Windows Subsystem for Linux)
Resetting a Singleton Instance in Ruby
No Such File to Load Bundler Error for Rails 3
Appending to Rake Db:Seed in Rails and Running It Without Duplicating Data
Ruby Split String by Repeating Characters or a Space
Using Ruby and Net-Ssh, How to Authenticate Using the Key_Data Parameter with Net::Ssh.Start