How to install rmagick extension to ruby on Ubuntu ?

That's a very good question as the rubygems embedded in the debian package is a limited edition where you are not able to make an "update –system".

So first thing to do:

 sudo apt-get remove rubygems

Then, from, follow the rubygems installation tutorial:
download the archive delivered from rubyforge,
tar -zxvf rubygems-1.3.1.tgz

 cd /rubygems-1.3.1
 sudo ruby setup.rb

and follow with a :
 sudo gem update –system

OK, rubygems is now up to date.

Go on installation of rmagick:

 sudo apt-get install ruby1.8-dev
 sudo apt-get install g++ automake autoconf
 sudo apt-get install libmagick++10
 sudo apt-get install libmagick++9-dev
 sudo gem install rmagick

and then you will get the following console output:

frederic@nostromo2:~/Logiciels/development/ruby/rubygems-1.3.1$ sudo gem install rmagick
Building native extensions.  This could take a while…
Successfully installed rmagick-2.9.0
1 gem installed

And now, you will be able to use the Rails plugin named file_column; cd into your rails project:
 cd myprojectsrails

 script/plugin install

And enjoy !


Les commentaires sont fermés.

Créez un site Web ou un blog gratuitement sur

Retour en haut ↑

%d blogueurs aiment cette page :