我正在尝试在Windows上安装ImageMagick。我所做的是安装Windows RailsInstaller,创建我的版本,现在我需要使用ImageMagick,但由于某些原因,它不能工作。
我获取了二进制源代码,并从这个页面安装并运行了它,但似乎没有使用Link
我也尝试了下面的http://www.youtube.com/watch?v=gEWAVlNCKhg,但它不起作用
对于cmd中的第一个示例,我所要做的就是按照我的理解使用下面的命令,让它在这里工作。
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>然后我看到了这个。从声明它包含rmagick的https://github.com/rmagick/rmagick中,然后我运行捆绑包并得到以下内容
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.谢谢你的帮助。
发布于 2013-06-08 15:18:48
接下来,安装ImageMagick并构建RMagick gem并使其正常工作。
请按照以下步骤操作:
除了当前最新的版本之外,
Version: ImageMagick 6.6.1-10 2010-05-15 Q16 http://www.imagemagick.org版权所有: Copyright (C) 1999-2010 ImageMagick Studio LLC功能:如果您没有already.
(确保路径指向安装imagemagick的位置)
它应该会打印出来
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...几分钟后,如果一切正常,您应该会看到
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 blog和2 blog
发布于 2013-06-08 14:59:34
发布于 2017-05-02 03:48:31
如何在Windows8.1上安装ImageMagick,截至2017年5月1日:
-version”。而不是一个“无效的驱动器规范”的结果,这让我抓狂,你应该看到当前的版本,你的叔叔,你有ImageMagick!
https://stackoverflow.com/questions/16996718
复制相似问题