gpt4 book ai didi

ruby - 错误 : Error installing jekyll: ERROR: Failed to build gem native extension

转载 作者:可可西里 更新时间:2023-11-01 13:28:59 25 4
gpt4 key购买 nike

我的系统有:

  • ruby 2.0.0p451 (2014-02-24) [x64-mingw32]
  • gem -version 2.2.2
  • 开发工具包:DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe

当我尝试运行 gem install jekyll 时,出现此错误:

D:\devKit>gem install jekyll
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing jekyll:
ERROR: Failed to build gem native extension.

"D:/Program Files (x86)/Ruby200-x64/bin/ruby.exe" extconf.rb
D:/Program Files (x86)/Ruby200-x64/bin/ruby.exe: invalid switch in RUBYOPT: -F (
RuntimeError)

extconf failed, exit code 1

Gem files will remain installed in D:/Program Files (x86)/Ruby200-x64/lib/ruby/g
ems/2.0.0/gems/fast-stemmer-1.0.2 for inspection.
Results logged to D:/Program Files (x86)/Ruby200-x64/lib/ruby/gems/2.0.0/extensi
ons/x64-mingw32/2.0.0/fast-stemmer-1.0.2/gem_make.out

最佳答案

我在 Linux(Mint 17,基于 Ubuntu 14.04)上安装 Jekyll 时遇到此错误。

我最终找到了解决方案 here .我需要 ruby​​-dev 包和 nodejs (the latter due to a bug in Jekyll) .

sudo apt-get install ruby ruby-dev make
sudo gem install jekyll --no-rdoc --no-ri
sudo apt-get install nodejs

关于ruby - 错误 : Error installing jekyll: ERROR: Failed to build gem native extension,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22460117/

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