错误:安装jekyll时出错:错误:无法构建gem本机扩展 [英] ERROR: Error installing jekyll: ERROR: Failed to build gem native extension
问题描述
我的系统有:
当我尝试运行 gem install jekyll
时,出现此错误:
D:\devKit> gem install jekyll
临时增强PATH以包含DevKit ...
构建原生扩展。这可能需要一段时间...
错误:安装jekyll时出错:
错误:无法构建gem本机扩展。
D:/ Program Files(x86)/Ruby200-x64/bin/ruby.exeextconf.rb
D:/ Program Files(x86)/ Ruby200-x64 / bin / ruby.exe:RUBYOPT中的无效开关:-F(
RuntimeError)
extconf失败,退出代码1
Gem文件将保留安装在D:/ Program用于检查的文件(x86)/ Ruby200-x64 / lib / ruby / g
ems / 2.0.0 / gems / fast-stemmer-1.0.2。
结果记录到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
太。为我运行以下Jekyll:
lockquote
$ \curl -L https://get.rvm.io | bash -s stable --rails --autolibs =已启用
$ sudo gem install jekyll
这会安装RVM,更新Rails并安装Jekyll。
顺便说一句 - 我发现的大多数帖子都表明这是Xcode没有开发者的问题工具已安装。我有一个较新的MacBook Pro,默认情况下安装了这些东西,所以试图安装Xcode开发工具对我没有任何帮助(与上述不同,它完成了我所需要的一切)。
My system has:
- ruby 2.0.0p451 (2014-02-24) [x64-mingw32]
- gem -version 2.2.2
- devKit : DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe
When I try to run gem install jekyll
, I get this error:
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
I ran into this problem too. Running the following installed Jekyll for me:
$ \curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled
$ sudo gem install jekyll
This installs RVM, updates Rails and installs Jekyll.
BTW - Most of the posts I've found indicate it's a problem with Xcode not having the developer tools installed. I have a newer MacBook Pro on which this stuff was installed by default, so attempting to install the Xcode dev tools did nothing for me (unlike the above, which did everything I needed).
这篇关于错误:安装jekyll时出错:错误:无法构建gem本机扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!