2012-09-26 50 views
5

我已經安裝使用碧兩顆紅寶石安裝的devkit,但我還沒有碧雲外安裝的任何紅寶石。爲碧雲安裝紅寶石

當我選擇一個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具有

- 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的utside?

回答

2

我看到這個問題是舊的,但仍然沒有答案。你的文章提到你使用pik安裝了ruby版本。我不知道pik在安裝ruby時做了什麼,但是我總是直接使用Rubyinstallers。他們在pik中工作得很好,我已經安裝了DevKit沒有問題。注意從DevKit docs此位:

紅寶石dk.rb初始化以生成要在這個步驟之後使用的config.yml文件。您安裝的紅寶石將在那裏列出(目前只有由RubyInstaller軟件包安裝的紅寶石纔會被檢測到)。

+0

爲什麼downvote?它直接回答了OP在帖子結尾處提出的問題,這就是我如何讓pik和devkit一起發揮出色。請參閱downvoting上的幫助頁面[here](http://stackoverflow.com/help/privileges/vote-down) – BitMask777