2011-09-09 214 views
0

我安裝了Rails安裝程序。現在我正在嘗試創建一個新的Rails項目。當我做創建新的Rails項目時出錯

C:\Sites> rails new demoproj

我得到這個錯誤:

 
Fetching source index for http://rubygems.org/ 
Could not reach rubygems repository http://rubygems.org/ 
Could not find gem 'turn (>= 0)' in any of the gem sources listed in your Gemfile. 

回答

0

我假設你正在通過代理安裝rails。這可能是你正在尋找:

Add the given option to your gemrc file

gem: -p http//#{proxy-server}:#{port} 

Creating a new rails 3 project over a proxy in windows

+0

感謝很多朋友,但我無法找到gemrc文件,是一樣的C:\ RailsInstaller \ Ruby1.9.2 \ bin \ gem文件 – sandyutd

+0

我不是Windows用戶,所以我不確定這一點。爲Windows Vista/7嘗試:_C:\ ProgramData \ gemrc_。 *需要創建rc文件,如果不存在* http://stackoverflow.com/questions/7281047/creating-a-new-rails-3-project-over-a-proxy-in-windows – lnguyen55

+0

感謝buddy .. thnx u vry much.can我有你的電子郵件ID – sandyutd

0
在一般的方式

,這個問題意味着你需要做一個bundle install。沒有線索,如果它是一個特定於Windows的問題,那麼在創建項目後應該有一個自動捆綁包。

相關問題