PinoyTech.org

CodeIgniter, Kohana, Mootools, jQuery and CSS

Image Magick installation on Ubuntu

Posted by teejay on March 31, 2012

I recently tried to install the rmagick gem for Carrierwave on my VPS, unfortunately, ImageMagick wasn't installed but fortunately installing is quite easy.


 ** [out :: domain.com] Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
 ** [out :: domain.com] 
 ** [out :: domain.com] /home/user/.rbenv/versions/1.9.2-p290/bin/ruby extconf.rb
 ** [out :: domain.com] checking for Ruby version >= 1.8.5... yes
 ** [out :: domain.com] checking for /usr/bin/gcc... yes
 ** [out :: domain.com] checking for Magick-config... no
 ** [out :: domain.com] Can't install RMagick 2.13.1. Can't find Magick-config in /home/user/.rbenv/versions/1.9.2-p290/bin:/home/user/.rbenv/libexec:/home/user/.rbenv/plugins/rbenv-installer/bin:/home/user/.rbenv/plugins/rbenv-vars/bin:/home/user/.rbenv/plugins/ruby-build/bin:/home/user/.rbenv/shims:/home/user/.rbenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 ** [out :: domain.com] 
 ** [out :: domain.com] *** extconf.rb failed ***
 ** [out :: domain.com] Could not create Makefile due to some reason, probably lack of
 ** [out :: domain.com] necessary libraries and/or headers.  Check the mkmf.log file for more
 ** [out :: domain.com] details.  You may need configuration options.
 ** [out :: domain.com] 
 ** [out :: domain.com] Provided configuration options:
 ** [out :: domain.com] --with-opt-dir
 ** [out :: domain.com] --without-opt-dir
 ** [out :: domain.com] --with-opt-include
 ** [out :: domain.com] --without-opt-include=${opt-dir}/include
 ** [out :: domain.com] --with-opt-lib
 ** [out :: domain.com] --without-opt-lib=${opt-dir}/lib
 ** [out :: domain.com] --with-make-prog
 ** [out :: domain.com] --without-make-prog
 ** [out :: domain.com] --srcdir=.
 ** [out :: domain.com] --curdir
 ** [out :: domain.com] --ruby=/home/user/.rbenv/versions/1.9.2-p290/bin/ruby
 ** [out :: domain.com] 
 ** [out :: domain.com] 
 ** [out :: domain.com] Gem files will remain installed in /home/user/apps/domain/shared/bundle/ruby/1.9.1/gems/rmagick-2.13.1 for inspection.
 ** [out :: domain.com] Results logged to /home/user/apps/domain/shared/bundle/ruby/1.9.1/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
 ** [out :: domain.com] An error occured while installing rmagick (2.13.1), and Bundler cannot continue.
 ** [out :: domain.com] Make sure that `gem install rmagick -v '2.13.1'` succeeds before bundling.

Ever seen that error before? Yep that's what you get when you don't have ImageMagick

Categories: How To

Tags: imagemagick, rmagick

No Comments

Comments are not allowed