在Windows上安装适用于Ruby on Rails的ImageMagick时出错 [英] Error while installing ImageMagick for Ruby on Rails on Windows

查看:385
本文介绍了在Windows上安装适用于Ruby on Rails的ImageMagick时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在rails上安装ruby并使用xampp redmine以下文档:

I'm installing ruby on rails and redmine with xampp following this documentation:

http://nlb-creations.com/2013/06/26/installing -ruby-on-rails-and-redmine-with-xampp-on-windows-7 /

第12步需要安装rmagick,我按照步骤操作正确到达12-d:

Step 12 requires installing rmagick, I followed the steps correctly till I reached 12-d :

在cmd窗口中,运行以下命令:

In the cmd window, run the following:

gem install rmagick --platform=ruby -- --with-opt-lib=c:/ImageMagick/lib --with-opt-include=c:/ImageMagick/include

我收到以下错误:

    C:\xampp\htdocs\dev-ruby\redmine>gem install rmagick --platform=ruby -- --with-o
    pt-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:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb --with-opt-lib=c:/Im
ageMagick/lib --with-opt-include=c:/ImageMagick/include
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=${opt-dir}/include
        --with-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/RailsInstaller/Ruby1.9.3/bin/ruby


Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9
.1/gems/rmagick-2.13.3 for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rmagick-2
.13.3/ext/RMagick/gem_make.out

我下载了ImageMagick-devel-6.8.9.9.aarch64.rpm cz它可能解决了我的问题,但我不知道如何安装它。请问有什么想法吗?

I downloaded ImageMagick-devel-6.8.9.9.aarch64.rpm cz it might solve my problem but I don't know how to install it. Any ideas please?

推荐答案

听起来你在安装ImageMagick之前想要安装RMagick gem:

Sounds like you're trying to install the RMagick gem before installing ImageMagick:

RPM适用于某些Linux发行版。

The RPM is for certain Linux distributions.

尝试安装 http://www.imagemagick.org/ script / binary-releases.php #windows 然后是gem。

Try installing http://www.imagemagick.org/script/binary-releases.php#windows then the gem.

这篇关于在Windows上安装适用于Ruby on Rails的ImageMagick时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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