2013-04-12 249 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