Error Installing Rmagick Gem Windows
GuideChangelog, SecurityFAQ, HowTo'sPlugins, Themes Wiki Start page Index by title Index by date History HowTos » HowTo install rmagick gem on Windows¶ HowTo install rmagick gem on WindowsPrerequisiteInstallation of ImageMagickInstallation of the rmagick gemResult Prerequisite¶ You need to have the DevKit installed. Installation of ImageMagick¶ You can try to download last setup package from http://www.imagemagick.org/script/binary-releases.php#windows, but according to RMagick wiki, the last known version to work is 6.7.9.9. ImageMagick legacy binary versions are available at ftp://ftp.sunet.se/pub/multimedia/graphics/ImageMagick/binaries/. Run the setup package. In the Select Additional Tasks page of the wizard, make sure that both Add application directory to your system path and Install development headers and libraries for C and C++ options are checked: Note: Both the ImageMagick application directory and the Windows\System32 directory contain an executable named convert.exe. Unless ImageMagick's directory is added the front of the system path, its copy will not be found. This will cause the test suggested at the completion of the installation to fail with a message Invalid Drive Specification. Also note that Window's copy of convert.exe will not be found if ImageMagick is placed first in the path. Installation of the rmagick gem¶ Open a new command prompt. Change current directory to the Redmine installation directory Set CPATH and LIBRARY_PATH environment variables to point respectively to ImageMagick installation directory include and lib subdirectories (so the DevKit will find them at build time) set CPATH=C:\Program Files (x86)\ImageMagick-6.7.9-Q16\include set LIBRARY_PATH=C:\Program Files (x86)\ImageMagick-6.7.9-Q16\lib Install the gem by running bundle install. Note: bundler remembers the list of groups to skip set with --without option. If you have already run bundler install --without rmagick, you'll need to modify redmine\.bundle\config file. --- BUNDLE_WITHOUT: development:test Result¶ Check if the installation was successful on the Information page. rmagick_installation_prompt.jpg (82.4 KB) Etienne Massip, 2012-05-25 13:11 ImageMagick_setup_options.png (37.2 KB) Etienne Massip, 2012-05-25 13:11 redmine_informations.png (6.72 KB) Etienne Massip, 2012-05-25 13:28 rmagick-information.gif - Screenshot showing RMagick is available (8.88 KB) Dmitry Popov, 2015-03-03 12:59 rmagick-install-cmd.gif - Screenshot showing RMagick installation output (41.1 KB) Dmitry Popov, 2015-03-03 12:59 imagemagick-setup.gif (12.7 KB) Dmitry Popov, 2015-03-03 13:07 Loading... Powered by Redmine &
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 Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask http://www.redmine.org/projects/redmine/wiki/HowTo_install_rmagick_gem_on_Windows 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; it only takes a minute: Sign up How to install rmagick gem on Windows? up vote 8 down vote favorite 1 How http://stackoverflow.com/questions/14593055/how-to-install-rmagick-gem-on-windows do I install rmagick gem for Windows XP? I already installed ImageMagick with the header files, and I installed RailsInstaller.org which comes with DevKit. I don't know where to look to fix these errors. C:\RailsInstaller\ImageMagick-6.8.2-Q16>ruby -v ruby 1.9.3p125 (2012-02-16) [i386-mingw32] C:\RailsInstaller\ImageMagick-6.8.2-Q16>gem -v 1.8.16 C:\RailsInstaller\ImageMagick-6.8.2-Q16>path=%PATH%;C:\RailsInstaller\ImageMagick-6.8.2-Q16 C:\RailsInstaller\ImageMagick-6.8.2-Q16>identify Version: ImageMagick 6.8.2-0 2013-01-24 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2013 ImageMagick Studio LLC C:\RailsInstaller\ImageMagick-6.8.2-Q16>gem install rmagick Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. C:/RailsInstaller/Ruby1.9.3/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-d
process can be made easier with a bit of planning. On this page I'll try to answer the most common questions about installing RMagick. Give it a quick scan before you start downloading files. (If you encounter problems that aren't covered here, or http://rmagick.rubyforge.org/install-faq.html find a mistake in what I've written, let me know.) Go back to the home page. Index to Questions What operating systems can I install RMagick on? Does RMagick have to be compiled with a C compiler? What prerequisites http://positivealex.github.io/blog/posts/gem-install-rmagick-fails-with-error-on-windows does RMagick have? What prerequisites does ImageMagick/GraphicsMagick have? What RMagick package should I download? What about a third-party package such as an .rpm? How do I install RMagick on Microsoft Windows? I've got a version of ImageMagick for error installing Windows that is more recent than the bundled version. Can I use it? How do I install RMagick on OS X? How do I install RMagick on Linux, FreeBSD, or other *nix-like system? Help! Too many examples failed. What do I do? Help! I'm getting the message "No decode delegate for this image format." What does that mean? Help! I'm getting the message "unable to read font `(null)'." What should I do? Help! I'm getting the message "Can't error installing rmagick find libMagick, libMagickCore, or one of the dependent libraries." What should I do? Help! I'm getting the message "libMagickWand.so.1: cannot open shared object file: No such file or directory" I know ImageMagick is installed! What should I do? What should I do? Help! I'm getting the message "Error installing gem rmagick[.gem]: buffer error". What should I do? Help! I'm getting the message "unable to open X server `'." or "display: unable to open X server `:0.0'". How can I fix that? What operating systems can I install RMagick on? RMagick runs on Linux, FreeBSD, OS X, and *nix-like systems such as Solaris and Cygwin. You can also use RMagick on Microsoft Windows 2000, XP, and Vista. Does RMagick have to be compiled with a C compiler? It depends. No, if you're installing on Microsoft Windows using the rmagick-win32 gem. No, if you're installing on Linux, *BSD, or OS X using a pre-compiled binary package. Yes, if you're installing on Linux, *BSD, Cygwin, or OS X using the rmagick gem. Yes, if you're installing on Linux, *BSD, Cygwin, or OS X using the RMagick source tarball. What prerequisites does RMagick have? Ruby You need to have Ruby 1.8.x. You can get by with version 1.6.7 or 1.6.8 if you don't need to use RVG. If you want to use RMagick with Ruby 1.9.0 you must install RMagick 2. If you're installing on Microsoft
common is ruby, linux, php, html, css, js. My specialisation is testing automation. Github If you cannot install gem rmagick on Windows I’ve recently tried to install rmagick gem on my windows x64 distribution. Killed much time to resolve the problem so i hope this information became helpful for you. First things first i’ve downloaded the latest installator for ImageMagick. Then I tried to gem install rmagick But I could not build at all telling me that it cannot find required header files. So I need to reinstall ImageMagick with option to include header files in the installation directory. Reinstallation of a gem was failed. Surfing the internet I figured out that I need to point installation directory through command line arguments. gem install rmagick --platform=ruby -- --with-opt-dir=C:/ImageMagick But it still fails. gem install rmagick --platform=ruby -- --with-opt-lib=c:/ImageMagick/lib --with-opt-include=c:/ImageMagick/include Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. C:/Ruby193/bin/ruby.exe extconf.rb --with-opt-lib=c:/ImageMagick/lib --with-opt-include=c:/ImageMagick/include checking for Ruby version >= 1.8.5... yes checking for stdint.h... yes checking for sys/types.h... yes checking for wand/MagickWand.h... yes checking for snprintf() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... yes checking for AcquireImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no checking for AffinityImage() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,time.h,stdint.h,sys/types.h,wand/MagickWand.h... no checking for AffinityImages() in assert.h,ctype.h,stdio.h,stdlib.h,math.h,