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
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 2.13.1. Can't find Magick-config
It isn't quite the answer to the question, but the recommended way of installing Imagemagick and Rmagick on Mac is through homebrew. It's the only way I could get Imagemagick and Rmagick playing nicely together on Mac.
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
Error in installation of rmagick [in rails 2.3.5]
If you don't need the very latest version, you could try:
gem install rmagick -v 2.13.3
And see if the previous one works for you.
error installing RMagick from gem
problem solved.
RMagick was unable to find ImageMagick because I neglected to build the shared objects (there were no .so files installed as you can see from the "ls" in the original question). The solution was to add --with-shared
to my configure options.
This however caused other problems. Most notably, make
failing with "undefined symbol" messages for libiconv. This was solved by setting CFLAGS to point to libiconv:
export CFLAGS="-liconv"
Ultimately, my successful configure command was:
./configure --disable-static --with-modules --without-perl --with-quantum-depth=8 --with-bzlib=no --with-libiconv
and after that, make
, make install
, and gem install rmagick
all worked smoothly.
thanks,
R
Related Topics
How to Ignore or Skip a Test Method Using Rspec
Ruby on Rails Webpacker Can't Find Images Under Asset_Pack_Path
Trouble Downgrading Ruby on Os X Mavericks
How to Make the Url's in Ruby on Rails Seo Friendly Knowing a @Vendor.Name
How to Configure Config.Yml So That I Can Install Devkit
Ruby on Rails Named Scope Implementation
Ruby W/ Sinatra: What Is the Equivalent of a .Js.Erb from Rails
Why Doesn't Module.Method_Defined(:Method) Work Correctly
Xpath Parent Attribute of Selection
Limiting Characters/Words in View - Ruby on Rails
I18N: Error Message Localization for Particular Model
How to Set a Request.Referrer Inside My Rspec