Error Installing Rmagick Extconf.rb Failed
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have error installing rmagick error failed to build gem native extension Meta Discuss the workings and policies of this site About Us error installing rmagick mac Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with
Error Installing Rmagick Ubuntu
us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just
Error Installing Rmagick Error Failed To Build Gem Native Extension Windows
like you, helping each other. Join them; it only takes a minute: Sign up Error installing rmagick: ERROR: Failed to build gem native extension up vote 32 down vote favorite 6 I am trying to run one project on my local machine. I installed Ruby and Rails on my Mac OS system. It is working properly. I error installing rmagick windows can create a new project and can run it properly without any error, but when I try to run the existing project it says that we have to bundle install. When I run that command I get the following error: "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." When I run gem install rmagick -v '2.13.2' it gives me the following error: ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. /usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb checking for Ruby version >= 1.8.5... yes checking for gcc-4.2... yes checking for Magick-config... no Can't install RMagick 2.13.2. Can't find Magick-config in /usr/local/rvm/gems/ruby-1.9.3-p392/bin:/usr/local/rvm/gems/ruby-1.9.3-p392@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p392/bin:/usr/local/rvm/gems/ruby-1.9.3-p392/bin:/usr/local/rvm/gems/ruby-1.9.3-p392@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p392/bin:/usr/local/rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/sm/bin:/opt/sm/pkg/active/bin:/opt/sm/pkg/active/sbin *** 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/rvm/rubies/ruby-1.9.3-p392/bin/ruby Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p392/gems/rmagick-2.13.2 for
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Package Magickcore Was Not Found In The Pkg-config Search Path.
and policies of this site About Us Learn more about Stack can't find the imagemagick library or one of the dependent libraries. Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs install rmagick gem Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; http://stackoverflow.com/questions/19274293/error-installing-rmagick-error-failed-to-build-gem-native-extension it only takes a minute: Sign up Error installing rmagick: ERROR: Failed to build gem native extension up vote 3 down vote favorite 2 I am trying to install RmMagic using the below command: gem install rmagick -v=2.12.2 After running this command i get some error : Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a http://stackoverflow.com/questions/10028320/error-installing-rmagick-error-failed-to-build-gem-native-extension while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. D:/ruby/bin/ruby.exe extconf.rb checking for Ruby version >= 1.8.5... yes Invalid drive specification. Unable to get ImageMagick version *** 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=D:/ruby/bin/ruby Gem files will remain installed in D:/ruby/lib/ruby/gems/1.8/gems/rmagick-2 .12.2 for inspection. Results logged to D:/ruby/lib/ruby/gems/1.8/gems/rmagick-2.12.2/ext/RMagick /gem_make.out Please help me in this regard. Thanks in advance. ruby rmagick share|improve this question edited Aug 7 '12 at 12:20 Travesty3 11.9k23074 asked Apr 5 '12 at 12:10 Surjan Singh 5035 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote I had same problem with rmagick to solve this add System Environment Variable CLASSPATH .;C:\ImageMagick-6.5.6-Q8\include lib C:\ImageMagick-6.5.6-Q8\lib Then do gem install rmagick --platform=ruby -- --with-opt-lib=C:\ImageMagick-6.5.6-Q8\lib --with-opt-include=C:\ImageMagick-6.5.6-Q8\include share|improve this answer answered Apr 5 '12 at 13:25 Mukesh 689417 Hi Mukesh , Thank
Sign in Pricing Blog Support Search GitHub This repository Watch 93 Star 779 Fork 186 ttscoff/Slogger Code Issues 119 Pull requests https://github.com/ttscoff/Slogger/issues/344 3 Projects 0 Pulse Graphs New issue Can't install RMagick 2.13.4. Can't find MagickWand.h #344 Open voigt opened this Issue Jan 14, 2015 · 18 comments Projects None http://codeofalice.com/code/installing-rmagick-on-windows-7/ yet Labels None yet Milestone No milestone Assignees No one assigned 14 participants voigt commented Jan 14, 2015 Hey, I just tried to install Slogger error installing but failed ;) CLI Tools are installed - I also installed imagemagick via brew. I am not sure what MagickWand.h even is - so I hoped you have an idea how to make the engine running... $ bundle install Fetching gem metadata from https://rubygems.org/........ Fetching additional metadata from https://rubygems.org/.. Resolving dependencies... Using rake 10.4.2 Using addressable 2.3.6 error installing rmagick Using buftok 0.2.0 Using safe_yaml 1.0.4 Using crack 0.4.2 Using thread_safe 0.3.4 Using descendants_tracker 0.0.4 Using diff-lcs 1.2.5 Using digest 0.0.1 Using equalizer 0.0.9 Using multipart-post 2.0.0 Using faraday 0.9.1 Using faraday_middleware 0.9.1 Using hpricot 0.8.6 Using simple-rss 1.3.1 Using feed-normalizer 1.5.2 Using hashie 3.3.2 Using http_parser.rb 0.6.0 Using http 0.5.1 Using multi_json 1.10.1 Using instagram 1.1.3 Using json 1.8.2 Using memoizable 0.4.2 Using mime-types 2.4.3 Using mini_portile 0.6.2 Using multimap 1.1.3 Using nokogiri 1.6.5 Using oauth 0.4.7 Using rack 1.6.0 Using rack-protection 1.5.3 Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb checking for Ruby version >= 1.8.5... yes checking for xcrun... yes checking for Magick-config... yes checking for ImageMagick version >= 6.4.9... yes /usr/local/bin/Magick-config: line 41: pkg-config: command not found /usr/local/bin/Magick-config: line 47: pkg-config: command not found /usr/local/bin/Magick-config: line 50: pkg-config: command not found /usr/local/bin/Magick-config: line 53: pkg-config: command not found checking for stdint.h... yes checking for sys/types.h... yes checking for wand/MagickWand.h... no Can't install RMagick 2.13.4. Can't find MagickWand.h. *** extconf.rb failed *** Could not
SpreeCommerce on my Windows 7 laptop, the problem that stumped me the longest was the ‘spree install my_store‘ command that gave me the error: 'identify' is not recognized as an internal or external command,
operable program or batch file.
Image magick must be installed. I tried running ‘gem install rmagick‘ first, which installed something, but it was still not sufficient to let me run the ‘spree install my_store‘ command without aborting in an error. After much searching on Google and concatenating all these outdated sources, I finally figured it out. Steps (and troubleshooting details) are below. Instructions: Install the Ruby DevKit if you do not have it already. Since I used RailsInstaller to install Ruby on Rails on my laptop, it was already included in the default directory ‘C:\RailsInstaller\DevKit‘. Otherwise, find the .exe at the RubyInstallers downloads. To install, Download it, run it to extract it somewhere (permanent). Then cd to it, run “ruby dk.rb init” and “ruby dk.rb install” to bind it to ruby installations in your path. [source] Install a compatible version of ImageMagick on your Windows machine. The version that worked for me with Ruby v1.9.3v484 and Rails v4.0.4 was ImageMagick v6.7.7.9, 32-bit (direct download here). Supposedly, ImageMagick v6.7.9.9 is the latest version that will work. [source] For different archived versions, see here. The most recent ImageMagick v6.8.x gave me errors which made me go hunting for more troubleshooting instructions. If the ImageMagick installer hangs when you try to open it from your downloads folder, try right-clicking and ‘Run as administrator‘. Make sure to install 32-bit even if you have a 64-bit machine. Installing the 64-bit version will make your rmagick gem installation fail. [source] If you have a previous installation of ImageMagick, make sure to uninstall it first. If you can't find the ImageMagick uninstaller in your ‘Add/Remove Programs‘, check your installation folder (e.g. C:\ImageMagick) for unins000.exe. Deleting the installation folder will not properly remove all registry and path settings. [source] If you have a previous incompati