Ruby on Rails - cannot load such file — mysql2/2.2/mysql2 (LoadError)

后端 未结 4 1825
滥情空心
滥情空心 2020-12-03 04:01

I was using SQLite for my Rails project but when I heard that Heroku doesn\'t support SQLite, I switched to MYSQL.

After switching my database, I started my rails se

4条回答
  •  爱一瞬间的悲伤
    2020-12-03 04:39

    I just got them same problem after updating from Ruby 2.1.5 to 2.2.1. The problem seems to be the mysql2 gem that's used by Rails as a binding to libmysql. Apparently it does not support the Ruby 2.2 branch but only 2.0 and 2.1.

提交回复
热议问题