我正在尝试在 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>
然后我看到了这个。从https://github.com/rmagick/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.
感谢您的帮助。