Ruby on Rails - “Add 'gem sqlite3'' to your Gemfile”

前端 未结 11 1183
你的背包
你的背包 2020-12-05 13:51

I\'m a complete n00b on Rails with only beginner knowledge of Ruby. I plan on studying Ruby more before I really learn Rails, but I\'m waayy too curious for my own good.

11条回答
  •  青春惊慌失措
    2020-12-05 14:17

    I'd the same problem on a x64 win 7.

    Solution (for me):

    1) Install sqlite3

    gem install sqlite3

    2) Check the installed version

    gem list sqlite3

    It gives me: sqlite3 (1.3.8 x64-mingw32)

    3) Modify the Gemfile.lock

    I change "sqlite3 (1.3.8-x86-mingw32)" by "sqlite3 (1.3.8-x64-mingw32)

    It works :) Note that you to need add a "-" between the version number and the x64 in the Gemfile.lock

    Xmass

提交回复
热议问题