2014-09-02 89 views
0

嘗試過紅寶石安裝導軌:錯誤安裝導軌 - 視窗

Error : Could not find a valid gem 'rails' (>=0) in any repository. 

這裏是我的寶石ENV細節:

RubyGems Environment: 
- RUBYGEMS VERSION: 2.4.1 
- RUBY VERSION: 1.9.3 (2013-11-22 patchlevel 484) [i386-mingw32] 
- INSTALLATION DIRECTORY: C:/opscode/chef/embedded/lib/ruby/gems/1.9.1 
- RUBY EXECUTABLE: C:/opscode/chef/embedded/bin/ruby.exe 
- EXECUTABLE DIRECTORY: C:/opscode/chef/embedded/bin 
- SPEC CACHE DIRECTORY: G:/.gem/specs 
- SYSTEM CONFIGURATION DIRECTORY: C:/ProgramData 
- RUBYGEMS PLATFORMS: 
- ruby 
- x86-mingw32 
- GEM PATHS: 
- C:/opscode/chef/embedded/lib/ruby/gems/1.9.1 
- G:/.gem/ruby/1.9.1 
- GEM CONFIGURATION: 
- :update_sources => true 
- :verbose => true 
- :backtrace => false 
- :bulk_threshold => 1000 
- :sources => [] 
- REMOTE SOURCES: 
- SHELL PATH: 
- C:\Windows\system32 
- C:\Windows 
- C:\Windows\System32\Wbem 
- C:\PROGRA~1\CONDUS~1\DISKEE~1\ 
- C:\Program Files (x86)\QuickTime\QTSystem\ 
- C:\Program Files\TortoiseSVN\bin 
- C:\glassfish3\jdk7\bin 
- C:\Program Files (x86)\gradle-1.11\bin 
- C:\Users\SKAND.PUROHIT\apache-maven-3.2.1\bin 
- C:\Windows\System32\WindowsPowerShell\v1.0\ 
- C:\opscode\chef\bin 
- C:\opscode\chef\embedded\bin 

回答

0

如果你使用代理服務器,您需要添加http_proxy到你的環境變量與你的代理地址http://username:[email protected]:port

如果這不是問題,那麼在Windows上安裝rails的最簡單且經過驗證的方法是使用rails安裝程序f rom http://railsinstaller.org/