2012-09-26 4 views
5

pik을 사용하여 두 개의 루비를 설치했지만 pik 외부에 루비를 설치하지 않았습니다. ,pik 설치 루비 용 devkit 설치

# 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 내에서 바이너리를 추가하는 시도 :

나는 PIK 사용하여 루비를 선택하고, 어떤 바이너리가 생성 config.yml 파일에 추가되지 않습니다 devkit을 설정하려고하면 그래서 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'. 

내가 루비 (을)를 설치해야합니까 얻을 devkit 작업을하기 위해 pik의 utside?

답변

2

나는이 질문이 오래되었지만 여전히 답을 찾지 못했다. 귀하의 게시물은 pik을 사용하여 루비 버전을 설치했다는 것을 언급합니다. Ruby를 설치할 때 pik이 커버 밑에 무엇을하는지는 모르지만 Rubyinstallers를 직접 사용했습니다. 그들은 pik에서 잘 작동했으며 DevKit을 문제없이 설치했습니다. 이 단계에서 나중에 사용되는 config.yml 파일을 생성

루비 dk.rb 초기화 다음 DevKit docs에서이 비트를합니다. 설치된 루비가 목록에 표시됩니다 (현재 RubyInstaller 패키지에 의해 설치된 루비 만 감지됩니다).

+0

왜 downvote? 그것은 게시물의 끝에 OP에 의해 제기 된 질문에 직접 대답하고, 그것은 내가 함께 잘 놀기 위해 pik와 devkit을 얻은 방법입니다. downvoting [here] (http://stackoverflow.com/help/privileges/vote-down)의 도움말 페이지를 참조하십시오. – BitMask777