193: %1 is not a valid Win32 application error with Ruby (1.9.3) on Rails(3.2.3) with MySQL(5.5) on Windows 7

前端 未结 1 1632
借酒劲吻你
借酒劲吻你 2020-12-12 03:31

I cannot seem to run a rail application configured to MySQL. When I run the project, I get the following error:

193: %1 is not a valid Win32 application. -

相关标签:
1条回答
  • 2020-12-12 03:35

    Looks that you installed the binary pre-compiled version of MySQL gem, which requires an specific version of MySQL to be installed.

    More important, it requires an specific version of libmysql.dll be available in the PATH so the gem can use it.

    I would recommend you uninstall the pre-compiled gem and proceed with the manual compilation steps described here:

    http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-x64-and-using-ruby-with-it/

    This has been answered before too:

    Ruby Gem for mysql 5.5 in windows

    Is Datamapper's dm_mysql_adapter gem supported on windows?

    Finally installed MySQL for Rails in Windows 64 bit, and now

    on windows Mysql native extension prob in ruby on rails gem time

    Hope that helps.

    0 讨论(0)
提交回复
热议问题