Gem Rmagick安装错误:extconf.rb:171:在``':没有这样的文件或目录 - convert -version(Errno :: ENOE NT) [英] Gem Rmagick install error: extconf.rb:171:in ``': No such file or directory - convert -version (Errno::ENOE NT)

查看:304
本文介绍了Gem Rmagick安装错误:extconf.rb:171:在``':没有这样的文件或目录 - convert -version(Errno :: ENOE NT)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装rmagick时遇到此错误,我已经遵循了所有类型的指南并且每次都会得到相同的错误。这次我遵循了本指南: http://www.youtube.com /watch?v=gEWAVlNCKhg&feature=youtu.be

I get this error when installing rmagick, I have followed all kind of guides and get the same error every time. This time I have 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:\>


推荐答案

根据错误:

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

您似乎没有安装Imagemagick(或同等产品)。 Imagemagick套件中的主要应用程序是 convert 二进制文件。如果你确定安装了它,那么你应该检查它是否可以在 PATH 中访问。

it would appear that you don't have Imagemagick (or an equivalent) installed. The main application in the Imagemagick suite is the convert binary. If you're certain you do have it installed, then you should check that it's accessible in the PATH.

这篇关于Gem Rmagick安装错误:extconf.rb:171:在``':没有这样的文件或目录 - convert -version(Errno :: ENOE NT)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆