2016-05-09 13 views
0
Gemfile解析中にエラーが発生しました

:keyword_do期待 構文エラー、予期しないtIDENTIFIERは、または '{' または '(' - ... M 'database_cleaner'、gitのクローン " git://github.com/maccman/gd ... ...^ /home/phorekka/rails_project/sample_app/Gemfile:28:構文エラー、予期せぬ単項式、予期しないkeyword_doまたは '{'または '(' .../gdata.git」 "foobarの" --bare --no-ハードリンク ... ^バンドラーは続行できません私はsample_app宝石ファイルを実行することができません

/自宅から#/ phorekka/rails_project/sample_app/Gemfile。。: 28 #------------------------------------------- #gem 'cucumber gem 'database_cleaner'、git clone 'git://github.com/maccman/gdata.git' "foobar" --bare --no-hardlinksこのページのトップへ

> Here is my gem file. 
 
source 'https://rubygems.org' 
 
ruby '2.0.0' 
 
#ruby-gemset=railstutorial_rails_4_0 
 

 
gem 'rails', '4.0.8' 
 
gem 'bootstrap-sass', '2.3.2.0' 
 
gem 'sprockets', '2.11.0' 
 
gem 'bcrypt-ruby', '3.1.2' 
 
gem 'faker', '1.1.2' 
 
gem 'will_paginate', '3.0.4' 
 
gem 'bootstrap-will_paginate', '0.0.9' 
 

 
group :development, :test do 
 
    gem 'sqlite3', '1.3.8' 
 
    gem 'rspec-rails', '2.13.1' 
 
    # The following optional lines are part of the advanced setup. 
 
    gem 'guard-rspec', '2.5.0' 
 
    gem 'spork-rails', '4.0.0' 
 
    gem 'guard-spork', '1.5.0' 
 
    gem 'childprocess', '0.3.6' 
 
end 
 

 
group :test do 
 
    gem 'selenium-webdriver', '2.35.1' 
 
    gem 'capybara', '2.1.0' 
 
    gem 'factory_girl_rails', '4.2.0' 
 
    gem 'cucumber-rails', '1.3.0', :require => false 
 
    gem 'database_cleaner', github: 'bmabey/database_cleaner' 
 

 
    # Uncomment this line on OS X. 
 
    #gem 'growl', '1.0.3' 
 

 
    # Uncomment these lines on Linux. 
 
    gem 'libnotify', '0.8.0' 
 

 
    # Uncomment these lines on Windows. 
 
    # gem 'rb-notifu', '0.0.4' 
 
    # gem 'win32console', '1.3.2' 
 
    # gem 'wdm', '0.1.0' 
 
end 
 

 
gem 'sass-rails', '4.0.1' 
 
gem 'uglifier', '2.1.1' 
 
gem 'coffee-rails', '4.0.1' 
 
gem 'jquery-rails', '3.0.4' 
 
gem 'turbolinks', '1.1.1' 
 
gem 'jbuilder', '1.0.2' 
 

 
group :doc do 
 
    gem 'sdoc', '0.3.20', require: false 
 
end 
 

 
group :production do 
 
    gem 'pg', '0.15.1' 
 
    gem 'rails_12factor', '0.0.2' 
 
end

私はsqlite3の--version 3.8.11.1 2015年7月29日午前20時00分57秒cf538e2783e468bbc25e7cb2a9ee64d3e0e80b2fを使用しています。
このgemfileを実行できません。お願い助けて。 enter image description here

そしてbundle install --without productionを実行し、それが正常に動作します:

+0

あなたはMicheal Hartl'sチュートリアルにしたがっていますか? – Nirupa

+0

はい私はあります! @ニルパ。私を助けてもらえますか? –

+0

まずはどの章について話していますか?そして、あなたのgithubのリンクを掲載してください。 – Nirupa

答えて

0

あなたのGemfileは、私はちょうど本の中で一つにあなたのGemfileを交換し、

第三章の1とは異なっています。

また、bundle updateを実行すると、うまくいくでしょう。

ご自身でお試しください。他に質問がある場合はお知らせください。

+0

私はそれを試して、あなたが言ったようにうまく動作します。しかし、 –

+0

あなたは本を段階的に辿って、著者が説明しようとしていることを理解しようとすることをお勧めします – Nirupa

+0

ありがとう@Nirupa .. –

関連する問題