Can't Install Rmagick Gem on Ubuntu 13.04

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



Leave a reply



Submit