为pik安装的Rubies安装devkit

时间:2012-09-26 06:46:00

标签: ruby windows devkit pik

我用pik安装了两颗红宝石,但我没有在pik外面安装任何红宝石。

当我选择使用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
#
---

我尝试将pik中的二进制文件添加到路径中,以便config.yml具有

- 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'.

我是否需要在pik外部安装ruby才能使devkit工作?

1 个答案:

答案 0 :(得分:2)

我看到这个问题已经过时了,但仍然没有答案。您的帖子提到您使用pik安装了ruby版本。我不知道在安装ruby时pik做了什么,但我总是直接使用Rubyinstallers。他们用pik工作得很好,我安装了DevKit没问题。请注意DevKit docs

中的这一位
  

ruby​​ dk.rb init 生成将在本步骤稍后使用的config.yml文件。您安装的Rubies将在那里列出(目前只检测由RubyInstaller软件包安装的那些)。

相关问题