Browse the Ruby on Rails Community.

You are here: Forums Ask a Rails expert RMagick...

Replytotopic

RMagick

Posted in Forums : Ask a Rails expert

 
Profile

Authority 37
Posting Rating 63
Sign in to rate this post

Hi to all..

I tried to install RMagick in my application..
I installed ImageMagick…

when i tried

sudo gem install rmagick

Its giving following error

Building native extensions. This could take a while…
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError) ERROR: Failed to build gem native extension.

ruby extconf.rb install RMagick
extconf.rb:1:in `require’: no such file to load—mkmf (LoadError) from extconf.rb:1

Gem files will remain installed in /var/lib/gems/1.8/gems/rmagick-2.5.2 for inspection.
Results logged to /var/lib/gems/1.8/gems/rmagick-2.5.2/ext/RMagick/gem_make.out

can any one help to sortout this

 
Mikegunderloyheadshot

Authority 62
Posting Rating 94
Sign in to rate this post

If you’re on Debian/Ubuntu, you probably don’t have all the Ruby bits. Try doing

sudo apt-get install ruby1.8-dev

And then

sudo gem clean rmagick
sudo gem install rmagick

 
Robin

Authority 12
Posting Rating 80
Sign in to rate this post

I’m agree with Mike, I could be possible your problem

 
Profile

Authority 37
Posting Rating 63
Sign in to rate this post

Thank you Mike
Its working fine..
I can able to install rmagick

Thank again..

Replytotopic

Other Recent Topics

Ask a Rails expert : Keeping the databse clean

Ask a Rails expert : How to redirect single app to 2 different URLs

Ask a Rails expert : Dealing with nested models

Ask a Rails expert : restful_authentication login form rendering without layout in lightbox

Ask a Rails expert : Production Problem

Ask a Rails expert : Ruby script to add contact in existing email list

Ask a Rails expert : Not able to see the error message on registration page.

Ask a Rails expert : Kopete / Pidgin interface for Rails

Ask a Rails expert : how to embded exl in rails

Ask a Rails expert : Remembering associations

Formatting Help
  • *bold*       _italics_      
    bq. (quotes)
  • "DSC":http://www.dsc.net
  • * or # (lists)
or cancel