[英]ERROR: Error installing jekyll: ERROR: Failed to build gem native extension
My system has: 我的系统有:
When I try to run gem install jekyll
, I get this error: 当我尝试运行
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
I got this error while installing Jekyll on Linux (Mint 17, which is based on Ubuntu 14.04). 我在Linux上安装Jekyll时遇到此错误(Mint 17,它基于Ubuntu 14.04)。
I eventually found the solution here . 我最终在这里找到了解决方案。 I needed both the ruby-dev package and nodejs (the latter due to a bug in Jekyll) .
我需要ruby-dev包和nodejs (后者由于Jekyll中的错误) 。
sudo apt-get install ruby ruby-dev make
sudo gem install jekyll --no-rdoc --no-ri
sudo apt-get install nodejs
I ran into this problem too. 我也遇到了这个问题。 Running the following installed Jekyll for me:
为我运行以下安装的Jekyll:
$ \\curl -L https://get.rvm.io |
$ \\ curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled
bash -s stable --rails --autolibs = enabled
$ sudo gem install jekyll
$ sudo gem install jekyll
This installs RVM, updates Rails and installs Jekyll. 这将安装RVM,更新Rails并安装Jekyll。
BTW - Most of the posts I've found indicate it's a problem with Xcode not having the developer tools installed. 顺便说一句 - 我发现的大多数帖子都表明Xcode没有安装开发人员工具是个问题。 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).
我有一个较新的MacBook Pro默认安装这个东西,所以试图安装Xcode开发工具对我没有任何作用(不像上面那样,我做了我需要的一切)。
try 尝试
gem update
宝石更新
then 然后
gem install jekyll
宝石安装杰基尔
And you may want to try with Ruby 1.9.3 and compatible DevKit. 您可能想尝试使用Ruby 1.9.3和兼容的DevKit。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.