Error Installing Rmagick Ubuntu
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About ubuntu can't install rmagick 2.13.2. can't find magick-config Us Learn more about Stack Overflow the company Business Learn more about hiring gem install rmagick ubuntu developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the error installing rmagick mac Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Installing rmagick on Ubuntu up vote
Error Installing Rmagick Error Failed To Build Gem Native Extension
100 down vote favorite 27 I'm trying to get RMagick setup on Ubuntu 10.04. Looked here but had no joy. I even compiled and installed ImageMagick from source, but the instructions here still didn't help me when I try to install RMagick using RubyGems. I got this error: carcher@carcher-laptop:~/Code/temp/RMagick-2.13.1$ sudo gem install rmagick Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: error installing rmagick windows Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb extconf.rb:1:in `require': no such file to load -- mkmf (LoadError) from extconf.rb:1 Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/rmagick-2.13.1 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/rmagick-2.13.1/ext/RMagick/gem_make.out carcher@carcher-laptop:~/Code/temp/RMagick-2.13.1$ What does it all mean? :) I'm new to Ruby and RubyGems so please be gentle. My setup is as follows: Ruby: 1.8.7 RubyGems: 1.3.7 I'm pretty much out of ideas (and tired too!). I tired to compile RMagick from source using the link above but it failed as there was no ./configure script :( Any and all help appreciated! ruby linux ubuntu imagemagick rmagick share|improve this question asked Sep 13 '10 at 22:35 Ciaran Archer 7,17072745 Most of these answers are different than the official docs, You should install imagemagick, libmagickcore-dev, and libmagickwand-dev: github.com/rmagick/rmagick/wiki/Installing-on-Ubuntu –Robin Clowers Oct 16 '14 at 0:36 add a comment| 11 Answers 11 active oldest votes up vote 189 down vote accepted 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
here for a quick overview of the site Help Center Detailed answers to any questions install imagemagick on ubuntu you might have Meta Discuss the workings and policies of this
Install Rmagick Windows
site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers
E: Unable To Locate Package Libmagickwand-dev
or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community http://stackoverflow.com/questions/3704919/installing-rmagick-on-ubuntu of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Installing rmagick gem on ubuntu 14.04 up vote 12 down vote favorite 3 I'm trying to deploy an app on OpsWorks, but there are problems with installing rmagick gem. I have the following OS http://stackoverflow.com/questions/26106525/installing-rmagick-gem-on-ubuntu-14-04 packages: libmagickwand-dev imagemagick libmagickcore-dev Below is the log file with errors during deployment: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /usr/local/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 0.0.0. Can't find Magick-config in /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games *** 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: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/bin/ruby extconf failed, exit code 1 Gem files will remain installed in /home/deploy/.bundler/myapp/ruby/2.1.0/gems/rmagick-2.13.3 for inspection. Results logged to /home/deploy/.bundler/myapp/ruby/2.1.0/extensions/x86_64-linux/2.1.0/rmagick-2.13.3/gem_make.out An error occurred while installing rmagick (2.13.3), and Bundler cannot continue. Make sure that `gem install rmagick -v '2.13.3'` succeeds before bundling. STDERR: ---- End output of sudo su - deploy -c 'cd /srv/www/myapp/releases/20140929182350 && /usr/local/bin/bundle install --path /home/deploy/.bundler/myapp --without=test development' 2>&1 ---- Ran sudo su - deploy -c
implement a quick test script to figure out what will be needed to implement its core feature. I’d talk error installing more about it in the future but suffice it to say that one of the requirements is image manipulation. The best game in town where image manipulation is error installing rmagick concerned seems to beImageMagick. And based on my limited research the best Ruby binding isRMagick. I had a little trouble while installing the RMagick gem so I thought I’d just document the process for future me (and whoever else). sudo apt-get install imagemagick sudo apt-get install libmagickwand-dev gem install rmagick The problem occurred in Step 2 for me and it took me a while to find that solution. imagemagick rmagick ubuntu ubuntu 14.04 Apr 23rd, 2014 Open in app Facebook Tweet Mail Permalink
guess why you are here!what is the solution?Install imagemagick libraryInstall some more dependenciesInstall rmagick gemtl;dr for busy onessudo apt-get install graphicsmagick-libmagick-dev-compat sudo apt-get install imagemagick sudo apt-get install libmagickcore-dev sudo apt-get install libmagickwand-dev gem install rmagick Let me guess why you are here!You are about to install imagemagick gem in freshly setup laptop, and you try simple gem install imagemagick and currently your screen looks like this:$ gem install imagemagick Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. /home/untoldstory/.rvm/rubies/ruby-2.1.1/bin/ruby -r ./siteconf20160226-5081-j6qfa7.rb extconf.rb checking for gcc... yes checking for Magick-config... no checking for pkg-config... yes Package MagickCore was not found in the pkg-config search path. Perhaps you should add the directory containing `MagickCore.pc' to the PKG_CONFIG_PATH environment variable No package 'MagickCore' found checking for outdated ImageMagick version (<= 6.4.9)... *** 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: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/home/untoldstory/.rvm/rubies/ruby-2.1.1/bin/ruby extconf failed, exit code 1 Gem files will remain installed in /home/untoldstory/.rvm/gems/ruby-2.1.1/gems/rmagick-2.15.4 for inspection. Results logged to /home/untoldstory/.rvm/gems/ruby-2.1.1/extensions/x86_64-linux/2.1.0/rmagick-2.15.4/gem_make.out what is the solution?You need to inst