ここで頭がおかしくなりそうだったので、次のように質問します。
どうやってRuby Gem JekyllをWindowsにインストールするの?
Jekyll は fast-stemmer-1.0.0 に依存しており、ネイティブ拡張としてビルドする必要があります
RubyDevKitでこの便利なガイドを見つけて、Windows に「健全な」環境をインストールしましたが、動作しますが、fast-stemmer は依然として nmake を使用してバイナリをビルドすることに熱心であり、次のエラーが返されます。
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>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.
C:/Ruby/bin/ruby.exe extconf.rb
creating Makefile
nmake
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
cl -nologo -I. -IC:/Ruby/lib/ruby/1.8/i386-mswin32 -IC:/Ruby/lib/ruby/1.
8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c -Tcporter.c
cl : Command line warning D9035 : option 'Og-' has been deprecated and will be r
emoved in a future release
cl : Command line warning D9002 : ignoring unknown option '-G6'
porter.c
porter.c(31) : fatal error C1083: Cannot open include file: 'stdlib.h': No such
file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/fast-stemmer-1
.0.0 for inspection.
Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/fast-stemmer-1.0.0/ext/gem_make
.out
他の記事で提案されているように、 C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin にある Visual Studio 2010 に付属の nmake を使用しています。しかし、それでもうまくいきません。
DevKit に付属の MSYS シェルから gem インストールを実行しようとしたので、その時点で Unix の make を使用していますが、Ruby に nmake の代わりに make を使用するように指示する方法がわかりません (および mkmf. rbも私を啓発しませんでした)。nmake の使用に熱中しており、上記のエラー メッセージでかなり失敗します。
これに関する助けがあれば大歓迎です!
更新 RubyInstaller.org から Ruby をインストールしていないことにようやく気付きました。インストーラーを使用して再インストールしたところ、DevKit を使用した jekyll のビルドが正常に機能するようになりました。
それを指摘してくれてありがとう!