我试图在我的Windows 8中使用octopress。虽然我使用命令
捆绑安装
我收到以下错误。
e:\PROJECTS\octopress>bundle install
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies...
Using rake 10.5.0
Using RedCloth 4.2.9
Using addressable 2.4.0
Using blankslate 2.1.2.4
Using chunky_png 1.3.6
Installing fast-stemmer 1.0.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
Invalid argument - C:/Ruby193/bin/ruby.exe extconf.rb 2>&1
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/fast-stem
mer-1.0.2 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/fa
st-stemmer-1.0.2/gem_make.out
Using coffee-script-source 1.10.0
Using execjs 2.7.0
Using colorator 0.1
Using multi_json 1.12.1
Using sass 3.4.22
Using rb-fsevent 0.9.7
Using ffi 1.9.14
Using multipart-post 2.0.0
Using tilt 2.0.5
Using jekyll-paginate 1.1.0
Using kramdown 1.12.0
Using liquid 2.6.3
Using mercenary 0.3.6
Installing posix-spawn 0.3.11 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
Invalid argument - C:/Ruby193/bin/ruby.exe extconf.rb 2>&1
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/posix-spa
wn-0.3.11 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/po
six-spawn-0.3.11/gem_make.out
Installing yajl-ruby 1.2.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
Invalid argument - C:/Ruby193/bin/ruby.exe extconf.rb 2>&1
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/yajl-ruby
-1.2.1 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/ya
jl-ruby-1.2.1/gem_make.out
Installing redcarpet 3.3.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
Invalid argument - C:/Ruby193/bin/ruby.exe extconf.rb 2>&1
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/redcarpet
-3.3.4 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/re
dcarpet-3.3.4/gem_make.out
Using safe_yaml 1.0.4
Using rack 1.6.4
Installing rdiscount 2.2.0.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
Invalid argument - C:/Ruby193/bin/ruby.exe extconf.rb 2>&1
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/rdiscount
-2.2.0.1 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/rd
iscount-2.2.0.1/gem_make.out
Using stringex 1.4.0
Using bundler 1.12.5
Installing jekyll-sitemap 0.11.0
Errno::EINVAL: Invalid argument - C:/Ruby193/lib/ruby/gems/1.9.1/gems/jekyll-sit
emap-0.11.0/spec/fixtures/_posts/2016-04-01-i¶↓h
Using parslet 1.5.0
An error occurred while installing fast-stemmer (1.0.2), and Bundler cannot
continue.
Make sure that `gem install fast-stemmer -v '1.0.2'` succeeds before bundling.
如何解决此错误?我正在使用以下版本的红宝石和宝石。
答案 0 :(得分:0)
在尝试了很多解决方案后,我找到了解决此错误的方法。现在我在我的Windows机器中使用octopress。
中提到了这个问题和解决方案