{"id":7472,"date":"2014-06-19T04:00:30","date_gmt":"2014-06-19T04:00:30","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/19\/ubuntu-12-10-ruby-gem-rmagick-missing-dependency-issue-collection-of-common-programming-errors\/"},"modified":"2014-06-19T04:00:30","modified_gmt":"2014-06-19T04:00:30","slug":"ubuntu-12-10-ruby-gem-rmagick-missing-dependency-issue-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/19\/ubuntu-12-10-ruby-gem-rmagick-missing-dependency-issue-collection-of-common-programming-errors\/","title":{"rendered":"Ubuntu 12.10 &#8211; Ruby gem rmagick missing dependency issue-Collection of common programming errors"},"content":{"rendered":"<p>Like many others I&#8217;m having trouble installing rmagick on Ubuntu when running bundle install.<\/p>\n<p>I get this error on the bundle install command:<\/p>\n<pre><code>Installing rmagick (2.13.1) \nGem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.\n\n        \/usr\/local\/rvm\/rubies\/ruby-1.8.7-p371\/bin\/ruby extconf.rb \nchecking for Ruby version &gt;= 1.8.5... yes\nchecking for gcc... yes\nchecking for Magick-config... no\nCan't install RMagick 2.13.1. Can't find Magick-config in \/usr\/local\/rvm\/gems\/ruby-1.8.7-p371\/bin:\/usr\/local\/rvm\/gems\/ruby-1.8.7-p371@global\/bin:\/usr\/local\/rvm\/rubies\/ruby-1.8.7-p371\/bin:\/usr\/local\/rvm\/bin:\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin:\/usr\/games:\/usr\/local\/games\n\n*** extconf.rb failed ***\nCould not create Makefile due to some reason, probably lack of\nnecessary libraries and\/or headers.  Check the mkmf.log file for more\ndetails.  You may need configuration options.\n\nProvided configuration options:\n    --with-opt-dir\n    --without-opt-dir\n    --with-opt-include\n    --without-opt-include=${opt-dir}\/include\n    --with-opt-lib\n    --without-opt-lib=${opt-dir}\/lib\n    --with-make-prog\n    --without-make-prog\n    --srcdir=.\n    --curdir\n    --ruby=\/usr\/local\/rvm\/rubies\/ruby-1.8.7-p371\/bin\/ruby\n\n\nGem files will remain installed in \/home\/selfsale\/.bundler\/tmp\/2908\/gems\/rmagick-2.13.1 for inspection.\nResults logged to \/home\/selfsale\/.bundler\/tmp\/2908\/gems\/rmagick-2.13.1\/ext\/RMagick\/gem_make.out\n\nAn error occurred while installing rmagick (2.13.1), and Bundler cannot continue.\nMake sure that `gem install rmagick -v '2.13.1'` succeeds before bundling.\n<\/code><\/pre>\n<p>I then did some searching and found some suggestions for adding the missing libs:<\/p>\n<p>sudo apt-get install libmagick9-dev:<\/p>\n<pre><code>Reading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nPackage libmagick9-dev is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\nHowever the following packages replace it:\n  graphicsmagick-libmagick-dev-compat\n\nE: Package 'libmagick9-dev' has no installation candidate\n<\/code><\/pre>\n<p>sudo apt-get install graphicsmagick-libmagick-dev-compat:<\/p>\n<pre><code>Reading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n graphicsmagick-libmagick-dev-compat : Depends: libgraphicsmagick1-dev but it is not going to be installed\n                                       Depends: libgraphicsmagick++1-dev but it is not going to be installed\nE: Unable to correct problems, you have held broken packages.\n<\/code><\/pre>\n<p>sudo apt-get install libmagickwand-dev:<\/p>\n<pre><code>Reading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n libmagickwand-dev : Depends: libmagickcore-dev (= 8:6.6.9.7-5ubuntu3.2) but it is not going to be installed\nE: Unable to correct problems, you have held broken packages.\n<\/code><\/pre>\n<p>sudo apt-get install libmagickcore-dev:<\/p>\n<pre><code>Reading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n libmagickcore-dev : Depends: libbz2-dev but it is not going to be installed\n                     Depends: libfreetype6-dev but it is not going to be installed\n                     Depends: libpng-dev\n                     Depends: librsvg2-dev but it is not going to be installed\n                     Depends: libwmf-dev but it is not going to be installed\n                     Depends: libx11-dev but it is not going to be installed\n                     Depends: libxext-dev but it is not going to be installed\n                     Depends: libxt-dev but it is not going to be installed\nE: Unable to correct problems, you have held broken packages.\n<\/code><\/pre>\n<p>sudo apt-get install libmagick++-dev:<\/p>\n<pre><code>Reading package lists... Done\nBuilding dependency tree       \nReading state information... Done\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n libmagick++-dev : Depends: libmagickcore-dev (= 8:6.6.9.7-5ubuntu3.2) but it is not going to be installed\n                   Depends: libmagickwand-dev (= 8:6.6.9.7-5ubuntu3.2) but it is not going to be installed\nE: Unable to correct problems, you have held broken packages.\n<\/code><\/pre>\n<p>It seems that any attempt to install the correct packages comes up with this problem.<\/p>\n<p>I&#8217;ve just seen a post about installing imagemagick from source so I&#8217;m going to try that, but if anyone has any better ideas I&#8217;d love to hear them.<\/p>\n<p>Thanks<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Like many others I&#8217;m having trouble installing rmagick on Ubuntu when running bundle install. I get this error on the bundle install command: Installing rmagick (2.13.1) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. \/usr\/local\/rvm\/rubies\/ruby-1.8.7-p371\/bin\/ruby extconf.rb checking for Ruby version &gt;= 1.8.5&#8230; yes checking for gcc&#8230; yes checking for Magick-config&#8230; no Can&#8217;t install RMagick 2.13.1. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7472","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7472"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7472\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}