gpt4 book ai didi

mysql - 193 : %1 is not a valid Win32 application error with Ruby (1. 9.3) 在 Windows 7 上使用 MySQL(5.5) 的 Rails(3.2.3)

转载 作者:可可西里 更新时间:2023-11-01 11:21:05 32 4
gpt4 key购买 nike

我似乎无法运行配置为 MySQL 的铁路应用程序。当我运行项目时,出现以下错误:

193: %1 不是有效的 Win32 应用程序。 - C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql-2.8.1-x86-mingw32/lib/1.9/mysql_api.so

我注意到其他人已经解决了这个问题,但我没有找到任何适合我的解决方案。到目前为止,这是我尝试过的:

  • 复制libmysql.dll到ruby bin文件夹
  • 尝试过旧版本的 MySQL (5.0)
  • 在 regedit 上检查 MySQL 的 ImagePath

有人可以在这里提供指导吗?这只是一个失败的原因吗?使用 Linux 或其他版本的 Ruby/Rails/MySQL 组合可以解决这个问题吗?

最佳答案

看起来你安装了MySQL gem的二进制预编译版本,这需要安装特定版本的MySQL。

更重要的是,它需要 PATH 中有特定版本的 libmysql.dll 以便 gem 可以使用它。

我建议您卸载预编译的 gem 并继续执行此处描述的手动编译步骤:

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

这个问题之前也有人回答过:

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

希望对您有所帮助。

关于mysql - 193 : %1 is not a valid Win32 application error with Ruby (1. 9.3) 在 Windows 7 上使用 MySQL(5.5) 的 Rails(3.2.3),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10468118/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com