unable to start the rails server

做~自己de王妃 提交于 2019-12-25 05:14:52

问题


When I try to start my rails server i get this error

   C:/Ruby187/lib/ruby  /gems/1.8/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/1.8/mysql 2.so: 193: %1 is not a valid Win32 application.  
 - C:/Ruby187/lib/ruby/gems/1.8 /gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/1.8/mysql2.so (LoadError)

Tried changing the libmysql.dll file even then it doesn't work.


回答1:


The problem is with mysql. It is a 64 bit installation. Change it to 32bit and it runs fine.



来源:https://stackoverflow.com/questions/10493487/unable-to-start-the-rails-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!