5

Pik を使用して 2 つの Ruby をインストールしましたが、pik 以外の Ruby はインストールしていません。

Pik を使用して Ruby を選択し、devkit をセットアップしようとすると、生成された config.yml ファイルにバイナリが追加されません。

# This configuration file contains the absolute path locations of all
# installed Rubies to be enhanced to work with the DevKit. This config
# file is generated by the 'ruby dk.rb init' step and may be modified
# before running the 'ruby dk.rb install' step. To include any installed
# Rubies that were not automagically discovered, simply add a line below
# the triple hyphens with the absolute path to the Ruby root directory.
#
# Example:
#
# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
---

config.yml があるように、pik 内のバイナリをパスに追加しようとしました。

- C:/pik/rubies/ruby-1.9.2-p136
- C:/Users/agrimm/.pik/rubies/JRuby-170preview1

しかし、私は得る

bash-3.1$ ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/pik/rubies/ruby-1.9.2-p136'
[INFO] Installing 'C:/pik/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/devkit.rb'
[ERROR] Unable to find RubyGems in site_ruby or core Ruby. Please
install RubyGems and rerun 'ruby dk.rb install'.

C:\DevKit>ruby dk.rb install
[INFO] Skipping existing gem override for 'C:/pik/rubies/ruby-1.9.2-p136'
[WARN] Skipping existing DevKit helper library for 'C:/pik/rubies/ruby-1.9.2-p136'
[ERROR] Unable to find RubyGems in site_ruby or core Ruby. Please
install RubyGems and rerun 'ruby dk.rb install'.

C:\DevKit>gem --version
1.3.7

C:\DevKit>echo %PATH%
C:\pik\rubies\ruby-1.9.2-p136\bin;C:\Program Files (x86)\Parallels\Parallels Tools\Applications;C:\pik\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\DevKit\bin

C:\DevKit>PATH=%PATH%;C:\Users\agrimm\.pik\rubies\JRuby-170preview1\bin

C:\DevKit>echo %PATH%
C:\pik\rubies\ruby-1.9.2-p136\bin;C:\Program Files (x86)\Parallels\Parallels Tools\Applications;C:\pik\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\DevKit\bin;C
:\Users\agrimm\.pik\rubies\JRuby-170preview1\bin

C:\DevKit>ruby dk.rb install
[INFO] Skipping existing gem override for 'C:/pik/rubies/ruby-1.9.2-p136'
[WARN] Skipping existing DevKit helper library for 'C:/pik/rubies/ruby-1.9.2-p136'
[ERROR] Unable to find RubyGems in site_ruby or core Ruby. Please
install RubyGems and rerun 'ruby dk.rb install'.

devkit を機能させるには、pik の外部に Ruby をインストールする必要がありますか?

4

1 に答える 1

2

この質問は古いですが、まだ回答がありません。あなたの投稿には、pik を使用して Ruby バージョンをインストールしたことが記載されています。ruby をインストールするときに pik が裏で何をしているのかはわかりませんが、私は常に Rubyinstallers を直接使用してきました。それらは pik で問題なく動作し、問題なく DevKit をインストールしました。DevKit docsからのこのビットに注意してください:

ruby dk.rb initを実行して、このステップの後半で使用する config.yml ファイルを生成します。インストール済みの Ruby がそこに一覧表示されます (現在、RubyInstaller パッケージによってインストールされたもののみが検出されます)。

于 2013-07-16T20:33:19.823 に答える