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.
installing rmagick gem on ubuntu 20.04 WSL on Windows 10
It seems like installing a newer version will work, try 7.0.10-33.
The reason being that there were some mixed up compilation flags in earlier versions, for details see github.com/rmagick/rmagick/issues/1228
Installing RMagick Gem
use rvm to install ruby (preferred) or use apt-get install ruby ruby-dev
aptitude install build-essential imagemagick libmagickcore-dev libmagickwand-dev
gem install rmagick
--Edit 1--
sudo apt-get install ruby-dev
You will also need ruby-dev (or ruby-full) for successfully compiling the RMagick before gem install.
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
Related Topics
Class ≪≪ Self VS Self.Method With Ruby: What's Better
When Do I Need to Restart Server in Rails
Why Not Use Shared Activerecord Connections For Rspec + Selenium
Devise Custom Routes and Login Pages
How to Stub Things in Minitest
How to Run Rake Tasks Within a Ruby Script
In Ruby, Is There an Array Method That Combines 'Select' and 'Map'
Getaddrinfo: Nodename Nor Servname Provided, or Not Known
Rails Each Loop Insert Tag Every 6 Items
Checking If a Variable Is Defined in Sass
How to Convert Datetime.Now to Utc in Ruby
Running a Command from Ruby Displaying and Capturing the Output
Purpose of "Consider_All_Requests_Local" in Config/Environments/Development.Rb
Bundler Not Working with Rbenv, Could Not Find [Gem]
Using Rvm on Ubuntu 12.04 to Use Rails. the Program 'Rails' Is Currently Not Installed