ImageMagick安装Windows [英] ImageMagick Install Windows

查看:620
本文介绍了ImageMagick安装Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows上安装ImageMagick。我做的是安装Windows RailsInstaller创建我的版本,现在我需要使用ImageMagick但由于某种原因它不起作用。

I am trying to install ImageMagick on Windows. What I did is install Windows RailsInstaller created my version and now I need to use ImageMagick but for some reason it doesn't work.

我拿了二进制源代码并安装并从这个页面运行它,但似乎没有诀窍 http:// www.imagemagick.org/script/binary-releases.php#windows

I took the binary source code and install and run it from this page but didn't seem to do the trick http://www.imagemagick.org/script/binary-releases.php#windows

我还尝试以下 http://www.youtube.com/watch?v=gEWAVlNCKhg 但它不起作用

I also try the following http://www.youtube.com/watch?v=gEWAVlNCKhg but it doesn't work

对于第一个例子在cmd中我所要做的就是以下命令让我明白让它在我的工作中得到的东西

For the first example In cmd all I have to do is the following command to my understand to make it work here what I get

C:\Sites\case>convert wizard: wizard.jpg
Invalid Parameter - wizard.jpg

C:\Sites\case>convert wizard.jpg
Invalid drive specification.

C:\Sites\case>convert logo: logo.gif
Invalid Parameter - logo.gif

C:\Sites\case>$ convert logo: logo.gif
'$' is not recognized as an internal or external command,
operable program or batch file.

C:\Sites\case>

然后我看到了这个。来自 https://github.com/rmagick/rmagick ,其中包括rmagick,但后来我运行捆绑并得到这个

Then i saw this. From the https://github.com/rmagick/rmagick which state it include rmagick but then i run bundle and get this

Installing rmagick (2.13.2)
Gem::Installer::ExtensionBuildError: 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-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=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.2 for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/rmagick-2
.13.2/ext/RMagick/gem_make.out
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.

感谢您的帮助。

推荐答案

在这里,你可以安装ImageMagick并构建RMagick gem并使其全部工作。

Here yo go, to install ImageMagick and build the RMagick gem and make it all work.

按照以下步骤操作:


  1. 这里镜像。

  2. 下载任何版本的ImageMagick除了当前最新版本,但有一些问题

  3. 安装它with options:添加到PATH和开发标题。 安装路径不应包含空格

  4. 在命令行中键入convert -version以检查一切是否正常。它应该打印如下:

  1. Go here mirror images.
  2. Download ImageMagick of any version except the currently latest release, which has some issues
  3. Install it with options: Add to PATH and development headers. Installation path should not contain spaces.
  4. In the command line type convert -version to check if everything works. It should print something like:

版本:ImageMagick 6.6.1-10 2010-05-15 Q16 http://www.imagemagick.org
版权所有:Copyright(C)1999-2010 ImageMagick Studio LLC
Features:OpenMP

Version: ImageMagick 6.6.1-10 2010-05-15 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC Features: OpenMP

安装 DevKit 已经。

(确保路径指向您安装imagemagick的任何地方)

(Making sure the paths point to wherever you installed imagemagick)

它应该打印

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...

几分钟后如果一切正常,你应该看到

And after a few minutes if everything goes right, you should see

Successfully installed rmagick-2.13.1
1 gem installed
Installing ri documentation for rmagick-2.13.1...
Installing RDoc documentation for rmagick-2.13.1...

和而已。还有两个有用的链接: 1博客 2博客如果仍然无法安装

And that's it. Just two more links that were helpful: 1 blog and 2 blog if you still can't install

这篇关于ImageMagick安装Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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