前提・実現したいこと
https://qiita.com/jnchito/items/aec75fab42804287d71b
このサイトの簡単なチャットアプリを作りたい
環境はRuby 2.2.3
rails 5.2.0rcl
超初心者で,
railsは4系を使っていたのですが、5を初めて使うので・・
エラーメッセージ
Could not find gem 'mysql2 (= 0.3.18)' in any of the gem sources listed in your Gemfile.
該当のソースコード
Gemfileのコード
gem 'rails', '~> 5.2.0.rc1'
gem 'mysql2','0.3.18'
gem 'puma', '~> 3.11'
gem 'uglifier', '>= 1.3.0'
group :assets do
gem 'sprockets-rails', :git => 'https://github.com/rails/sprockets-rails.git'
gem 'sass-rails', '> 4.0.2', :git => 'https://github.com/rails/sass-rails.git'> 4.2', :git => 'https://github.com/rails/coffee-rails.git'
gem 'coffee-rails', '
end
https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
gem 'jbuilder', '~> 2.5'
※
[!] There was an error parsing Gemfile
: You cannot specify the same gem twice with different version requirements.
You specified: sass-rails (> 4.0.2) and sass-rails (> 0.3.18). Bundler cannot continue.
from /home/ubuntu/workspace/campfire/Gemfile:23
-------------------------------------------
gem 'sprockets-rails', :git => 'https://github.com/rails/sprockets-rails.git'
gem 'sass-rails', '~> 0.3.18', :git => 'https://github.com/rails/sass-rails.git'
gem 'coffee-rails', '~> 4.2', :git => 'https://github.com/rails/coffee-rails.git'
試したこと
https://qiita.com/khrtz/items/80b4355868461a5b3e34を試し
bundle updateをしたところ※のエラーが出ました。
初心者なので、何がどう間違っているのかわかりません。
分かる方がいましたら、よろしくお願いいたします。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。