Ruby cannot find sqlite3 driver on windows

前端 未结 8 2228
野趣味
野趣味 2021-02-08 10:21

I am trying to set up Ruby on Rails on windows. I am using the Flash Rails distribution that looks pretty good, but there is an issue with sqlite3. I found the threads telling m

8条回答
  •  青春惊慌失措
    2021-02-08 11:16

    The problem put simply is that sqlite3-ruby 1.2.3 is not compatible with ruby 1.9. This is caused because ruby 1.9 does not use .dll files for c libraries it uses .so files instead. Additionally, since sqlite3_api.dll is written against msvcrt-ruby18.dll. This means that it specifically only will support ruby 1.8.*.

    The good news is that there is a fat binary version that will support both ruby 1.8 and ruby 1.9. Uninstalling all former versions of sqlite3-ruby and then installing this one. (You may have to manually delete some versions the gem after uninstalling.) in order to install it use

    install sqlite3-ruby --source http://gems.rubyinstaller.org
    

    for more information see this website

提交回复
热议问题