我一直在努力通過Ruby的Rails 3 Tutorial,最近從RVM切換到rbenv,根據我的一位Rubyist朋友的建議。與rbenv的捆綁安裝錯誤
不幸的是,現在當我創建一個新的項目,然後嘗試$ bundle install
我得到這個錯誤:
/Users/alexanderdiner/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/bundler-1.1.3/lib/bundler/dsl.rb:7:in `instance_eval': /Users/alexanderdiner/rails_projects/sample_app/Gemfile:1: syntax error, unexpected tIDENTIFIER, expecting $end
gem 'sqlite...3.2.3'ygems.org'
... ^(SyntaxError)
我一直在通過一些rbenv文檔等,但仍難以發現這裏的問題看書。作爲參考,Gemfile文件如下:
source 'http://rubygems.org'
gem 'rails', '3.2.3'
gem 'sqlite3'
gem 'gravatar_image_tag', '0.1.0'
gem 'will_paginate', '3.0.pre2'
group :development do
gem 'rspec-rails', '2.0.1'
gem 'annotate-models', '1.0.4'
gem 'faker', '0.3.1'
end
group :test do
gem 'rspec', '2.0.1'
gem 'webrat', '0.7.1'
gem 'spork', '0.8.4'
gem 'factory_girl_rails', '1.0'
end
@RyanBigg我改變了它,我收到了同樣的錯誤。所以。 – Alexander 2012-04-16 20:04:28