2013-04-12 136 views
0

Web應用程序我需要在Mac OS 10.8 Rails應用程序的工作,但我在開始的軌道服務器的麻煩。運行與導軌服務器

我安裝Ruby和我使用的版本紅寶石1.9.2-P320和我安裝RVM和護欄。 遵循Ruby入門指南(http://guides.rubyonrails.org/getting_started.html)我現在需要的是簡單地導航到我的應用程序文件夾,然後運行命令:

rails server 

,但我得到這個錯誤

git://github.com/archiloque/rest-client.git (at master) is not checked out. Please run `bundle install` 

當運行命令bundle install我遇到以下錯誤

Could not find gem 'rest-client (>= 0) ruby' in git://github.com/archiloque/rest-client.git (at master). 
Source does not contain any versions of 'rest-client (>= 0) ruby' 

我在想什麼?我只注意到

奇怪的是,運行

gem rails install 

當我通知軌已正確安裝(Successfully installed rails-3.2.13),但檢查其版本

rails --version 

當我再次收到錯誤消息

git://github.com/archiloque/rest-client.git (at master) is not checked out. Please run `bundle install` 

我的Gemfile的內容如下:

source 'https://rubygems.org' 

gem 'rails', '3.2.5' 
gem 'sqlite3' 
gem 'devise', '2.1.2' 
gem 'rest-client', :git => 'git://github.com/archiloque/rest-client.git' 
gem 'jquery-rails' 
gem 'rspec-rails', group: [:test,:development] 
gem "paperclip", :git => "git://github.com/thoughtbot/paperclip.git" 
gem "rb-readline" 

group :assets do 
gem 'sass-rails', '~> 3.2.3' 
gem 'coffee-rails', '~> 3.2.1' 
gem 'twitter-bootstrap-rails' 
gem 'uglifier', '>= 1.0.3' 
end 

group :test do 
gem 'debugger' 
gem 'factory_girl_rails' 
gem 'capybara' 
gem 'guard-rspec' 
gem 'vcr' 
gem 'fakeweb' 
gem 'rb-fsevent', :require => false 
gem 'guard-rspec' 
gem 'growl' 
gem 'database_cleaner' 
end 

group :development do 
gem 'capistrano' 
gem 'capistrano-ext' 
gem 'rvm-capistrano' 
end 
+0

如果您遵循該教程中所有的步驟,你可以沒有任何問題 –

+0

然後,我錯過了一步某處啓動服務器。您是否建議我在嘗試再次遵循指南之前卸載所有內容? – whiplash

+0

你可以發佈你的Gemfile的內容嗎? – Magnuss

回答

1

rest-client的主人搬出倉庫,在這裏看到(https://github.com/archiloque/rest-client)。

使用此在您的Gemfile gem 'rest-client', :git => 'git://github.com/rest-client/rest-client.git'

+0

我沒有注意到!謝謝! 但我一直收到錯誤:'git://github.com/rest-client/rest-client.git(在主服務器)未檢出。請運行「捆綁安裝」。 而當我運行'捆綁安裝': 不幸的是,發生了一個致命的錯誤。請參閱Bundler疑難解答文檔,網址爲 http://bit.ly/bundler-issues。謝謝! ~/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/resolver.rb:103:在'新':堆棧層次過深(SystemStackError) – whiplash

+0

難道您是否嘗試了您發佈的鏈接中的問題排查步驟? 如果沒有,嘗試首先去除鎖定文件'RM Gemfile.lock',然後運行'束再次install'。 –

+0

我嘗試了一些可能性,但我相當不知道解決問題的那個! 現在應該解決問題了!謝謝! – whiplash