2

Ruby gem を使用してガードをインストールしようとしています。このリンクを参照して以前のバージョンをインストールしようとしても、次のエラーが表示されました。

C:\>gem install guard
Fetching: thor-0.18.1.gem (100%)
Successfully installed thor-0.18.1
Fetching: timers-1.1.0.gem (100%)
Successfully installed timers-1.1.0
Fetching: celluloid-0.15.2.gem (100%)
Successfully installed celluloid-0.15.2
Fetching: rb-fsevent-0.9.3.gem (100%)
Successfully installed rb-fsevent-0.9.3
Fetching: ffi-1.9.3.gem (100%)
ERROR:  Error installing guard:
        The 'ffi' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'


C:\>gem install ffi --version='1.0.9'
Fetching: ffi-1.0.9.gem (100%)
ERROR:  Error installing ffi:
        The 'ffi' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
4

1 に答える 1

3

インストーラーを入手する

1.Rubyインストーラー

2.開発キット

お使いの 32 ビットまたは 64 ビット マシンに応じて、必要に応じてダウンロードします。ここから開発キットをダウンロードできます。ここから開発キットをダウンロードします。

DevKit を C:\RubyDevKit に解凍した後、コマンド プロンプトで次のコマンドを実行します: C:\RubyDevKit>devkitvars.bat

C:\RubyDevKit>ruby dk.rb init [INFO] found RubyInstaller v1.9.3 at C:/Ruby193

初期化完了!自動生成された「config.yml」ファイルを確認して変更し、DevKit で拡張するインストール済みのすべての Ruby のルート ディレクトリが含まれていることを確認してください。

C:\RubyDevKit>ruby dk.rb install

[情報] 'C:/Ruby193' の利便性通知 gem オーバーライドを更新しています [情報] 'C:/Ruby193/lib/ruby/site_ruby/devkit.rb' をインストールしています

次に、コマンドプロンプトに入力してコンパスをインストールします

"gem install compass"

終わった!!!

于 2015-11-19T08:21:33.677 に答える