Error installing Gem Rmagick: extconf.rb: 171: in ``: No such file or directory - convert -version (Errno :: ENOE NT)

I get this error when installing rmagick, I followed all kinds of manuals and got the same error every time. This time I followed this guide: http://www.youtube.com/watch?v=gEWAVlNCKhg&feature=youtu.be

   C:/Ruby192/bin/ruby.exe extconf.rb --with-opt-include=C:/ImageMagick/Sou
    rceCode --with-opt-lib=C:/ImageMagick
    checking for Ruby version >= 1.8.5... yes
    *** 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=${opt-dir}/include
            --with-opt-lib=${opt-dir}/lib
            --with-make-prog
            --without-make-prog
            --srcdir=.
            --curdir
            --ruby=C:/Ruby192/bin/ruby
    extconf.rb:171:in ``': No such file or directory - convert -version (Errno::ENOE
    NT)
            from extconf.rb:171:in `<main>'


    Gem files will remain installed in C:/Ruby192/lib/ruby/gems/1.9.1/gems/rmagick-2
    .13.1 for inspection.
    Results logged to C:/Ruby192/lib/ruby/gems/1.9.1/gems/rmagick-2.13.1/ext/RMagick
    /gem_make.out

    c:\>
+3
source share
2 answers

By mistake:

extconf.rb:171:in ``': No such file or directory - convert -version
(Errno::ENOENT)

it looks like you do not have Imagemagick installed (or equivalent). The main application in the Imagemagick suite is binary convert. If you are sure that you have it, you should check that it is available at PATH.

+4
source

, .

:

set DFImageMagick = C:\ImageMagick
set PATH=%DFImageMagick%;%PATH% (if you don't already have it in PATH)
set CPATH=%DFImageMagick%\include;%CPATH%
set LIBRARY_PATH=%DFImageMagick%\lib;%LIBRARY_PATH%

gem install rmagick

!

+1

All Articles