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.
Can't install rmagick gem on Ubuntu 13.04
Solution is to add ppa where those libs could be found.
Add PPA:
sudo add-apt-repository ppa:ricotz/testing
Then update package list:
sudo apt-get update
Finally install it with:
sudo apt-get install libmagickwand-dev
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 of development libraries.
If you see people suggest installing "libmagick9-dev", that's an apt package that you'd install with:
$ sudo apt-get install libmagickwand-dev imagemagick
or on centOs:
$ yum install ImageMagick-devel
On Mac OS, you can use Homebrew:
$ brew install imagemagick
Related Topics
How to Extend Redcarpet to Support Auto Linking User Mentions
Validates_Inclusion_Of No Longer Working the Same in Rails 4.1
Creating a Test Suite Using Ruby Minitest
Converting an Array of Hashes to One Hash in Ruby
Rails: How to to Download a File from a Http and Save It into Database
Cannot Load Such File -- Rack/Handler/Puma
Extract All Urls Inside a String in Ruby
Generate Random String Based on Regex
How to Use Link_To to Link an Image and a Text
How to Source Environment Variables for a Command Shell in a Ruby Script
Ruby Google_Drive Gem Oauth2 Saving
Expected #Count to Have Changed by 1, But Was Not Given a Block
Converting String "2½" (Two and a Half) into 2.5
Ruby Errors with Os X Yosemite
Need Help Maximizing 3 Factors in Multiple, Similar Objects and Ordering Appropriately
Creating Spectral Heat Maps or Intensity Maps from Cdip Data Using Ruby