Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter`

環境: linux  ruby1.9.2   rails 3.0.5   mysql2 0.3.2

遇到問題:Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter`

 

解決方法:

gem uninstall mysql2

 then

gem install mysql2 -v 0.2.7

 

參考:http://stackoverflow.com/questions/5840742/version-of-mysql2-0-3-2-doesnt-ship-with-the-activerecord-adapter-bundled-anym

 

“The problem is because you are trying to install the lastet version of mysql2 wich is incompatible with rails 3.0.x version ”

 

做ROR, 版本的問題 真讓人頭疼

發佈了38 篇原創文章 · 獲贊 0 · 訪問量 7萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章