bundle installしてbundle exec ruby 実行ファイルをすると以下のメッセージが出て実行できません。。原因がさっぱりわからないのですが、どのような原因がありえますでしょうか?
/Users/Username/Desktop/aaaa/test/.bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require': Could not load 'active_record/connection_adapters/mysql2_adapter'. Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to the Gemfile. (LoadError)
Gemfile
1#Gemfile 2source 'https://rubygems.org/' 3ruby '2.1.4' 4 5gem 'rake' 6gem 'activerecord' 7gem 'activerecord-import' 8gem 'mysql2', '>= 0.3.12b4' 9gem 'nokogiri' 10gem 'open_uri_redirections' 11gem 'mechanize'
bundle exec gem listをすると、下記が出力されます。
*** LOCAL GEMS *** activemodel (4.2.6) activerecord (4.2.6) activerecord-import (0.13.0) activesupport (4.2.6) arel (6.0.3) builder (3.2.2) bundler (1.11.2) domain_name (0.5.20160310) http-cookie (1.0.2) i18n (0.7.0) json (1.8.3) mechanize (2.7.4) mime-types (2.99.2) mini_portile2 (2.0.0) minitest (5.8.4) mysql2 (0.4.4) net-http-digest_auth (1.4) net-http-persistent (2.9.4) nokogiri (1.6.7.2) ntlm-http (0.1.1) open_uri_redirections (0.2.1) rake (11.1.2) thread_safe (0.3.5) tzinfo (1.2.2) unf (0.1.4) unf_ext (0.0.7.2) webrobots (0.1.2)
回答1件
あなたの回答
tips
プレビュー