gpt4 book ai didi

windows - 不会让我在 Ruby 提示符下安装 Gem

转载 作者:可可西里 更新时间:2023-11-01 11:04:46 27 4
gpt4 key购买 nike

Windows Vista,Ruby 3.3.5 版

C:\>gem install rmagick

Building native extensions. This could take a while...

ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.

C:/Ruby19/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:/Ruby19/bin/ruby


Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/rmagick-2.
12.2 for inspection.
Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/rmagick-2.12.2/ext/RMagick/
gem_make.out

最佳答案

在 Windows 上,您应该使用 rmagick-win32 gem。

http://rmagick.rubyforge.org/install-faq.html#win

关于windows - 不会让我在 Ruby 提示符下安装 Gem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1972321/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com