0

我需要在 Mac OS 10.8 上使用 rails 应用程序,但我无法启动 rails 服务器。

我安装了 Ruby,我使用的是 ruby​​-1.9.2-p320 版本,我安装了 rvm 和 rails。按照 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

我被告知 rails 已正确安装 ( 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
4

1 回答 1

1

移动存储库的所有者rest-client,请参见此处 ( https://github.com/archiloque/rest-client )。

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

于 2013-04-12T14:22:11.767 回答