Ruby: Installing rmagick on Ubuntu

Install the packages imagemagick and libmagickwand-dev (or libmagick9-dev). You should then be able to install the Rmagick Gem. sudo apt-get install imagemagick libmagickwand-dev If not, you are missing ruby related development packages like build-essential and ruby1.8-dev. If that’s the case, a generic “ubuntu install ruby 1.8” query in google should sort you out.

ERROR: Error installing rmagick: in Windows with Ruby 2.2

I had this same issue myself until I finally stumbled upon the answer on Stackoverflow here and here. Basically you need to follow these steps: Install DevKit. Since I used RailsInstaller to install Ruby on Rails on my laptop, it was already included in the default directory ‘C:\Serever\RailsInstaller\DevKit‘. Otherwise, find the .exe at the RubyInstallers … Read more

exif image rotation issue using carrierwave and rmagick to upload to s3

Well I got this working using fog instead or carrierwave_direct. Below is the code that ended up working for me: app/uploaders/image_uploader.rb class ImageUploader < CarrierWave::Uploader::Base include CarrierWave::MiniMagick include Sprockets::Helpers::RailsHelper include Sprockets::Helpers::IsolatedHelper storage :fog # Override the directory where uploaded files will be stored. # This is a sensible default for uploaders that are meant to … Read more

rmagick gem install “Can’t find Magick-config”

When building native Ruby gems, sometimes you’ll get an error containing “ruby extconf.rb”. This is often caused by missing development libraries for the gem you’re installing, or even Ruby itself. Do you have apt installed on your machine? If not, I’d recommend installing it, because it’s a quick and easy way to get a lot … Read more