3

vim の CommandT プラグイン用の ruby​​ の開発キットをインストールしようとしていますが、

C:\Users\Administrator>gem install rdiscount --platform=ruby
ERROR:  Error installing rdiscount:
        The 'rdiscount' 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'

以下に示すように、すでに install devkit を実行しています

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

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

C:\devkit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.

C:/Ruby193

C:\devkit>ruby dk.rb install
[INFO] RubyGems override already in place for C:/Ruby193, skipping.
[WARN] DevKit helper library already exists for C:/Ruby193, skipping.

何がうまくいかない可能性がありますか?

編集:試してみました

c:\devkit>ruby dk.rb install --force

Configures an MSYS/MinGW based Development Kit (DevKit) for
each of the Ruby installations on your Windows system. The
DevKit enables you to build many of the available native
C-based RubyGems that don't yet have a binary gem.

Usage: ruby dk.rb COMMAND

where COMMAND is one of:

  init     prepare DevKit for installation
  review   review DevKit install plan
  install  install required DevKit executables

アンインストールして、クリーンなディレクトリで再度インストールしました。しかし、エラーは同じままです。

4

2 に答える 2

9

この行で:

C:\devkit>ruby dk.rb install
[INFO] RubyGems override already in place for C:/Ruby193, skipping.
[WARN] DevKit helper library already exists for C:/Ruby193, skipping.

以前の DevKit がそこに登録されていたため、Ruby 用の DevKit がインストールされなかったことを示しています。

DevKit の以前のインストールを再配置した可能性があります。その場合、ruby dk.rb install --force以前にスキップした RubyGems および DevKit ヘルパー スクリプトをオーバーライドする必要があります。

それが役立つことを願っています。

于 2012-06-02T14:21:22.327 に答える
1

ruby dk.rb のインストールでも同じ問題がありましたが、 --force オプションで提案されているように、devkit が正常にインストールされ、JSON 1.4.6 gem で発生していた gem インストールの失敗が解決されました。

于 2012-11-15T07:34:52.067 に答える