- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我似乎无法运行配置为 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文件夹有人可以在这里提供指导吗?这只是一个失败的原因吗?使用 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/
我是一名优秀的程序员,十分优秀!