rmagick installation error ubuntu

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/home/taimoor/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5… yes
checking for gcc… yes
checking for Magick-config… no
Can’t install RMagick 2.13.2. Can’t find Magick-config in /usr/local/heroku/bin:/home/taimoor/.rvm/gems/ruby-2.0.0-p247/bin:/home/taimoor/.rvm/gems/ruby-2.0.0-p247@global/bin:/home/taimoor/.rvm/rubies/ruby-2.0.0-p247/bin:/home/taimoor/.rvm/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/taimoor/.rvm/bin

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:

Gem files will remain installed in /home/taimoor/.rvm/gems/ruby-2.0.0-p247/gems/rmagick-2.13.2 for inspection.
Results logged to /home/taimoor/.rvm/gems/ruby-2.0.0-p247/gems/rmagick-2.13.2/ext/RMagick/gem_make.out

An error occurred while installing rmagick (2.13.2), and Bundler cannot continue.
Make sure that `gem install rmagick -v ‘2.13.2’` succeeds before bundling.


This error occurs because of missing the necessary library to compile the rmagick. In Debian (I use SID/UNSTABLE version) to fix this error you must install the library libmagickwand-dev.


 sudo aptitude install libmagickwand-dev

If you get this error

$ aptitude: command not found
 sudo apt-get install libmagickwand-dev

I am Senior Software Engineer. I love reading, writing, sharing,developing, hiking, movies, trips, mountains, brooks, hills etc.

Tagged with: , ,
Posted in Gems and plugins, missing liberaries

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: