"193:%1不是有效的Win32应用程序"一个新的Rails应用程序的错误 [英] "193: %1 is not a valid Win32 application" bug with a new Rails Application

查看:126
本文介绍了"193:%1不是有效的Win32应用程序"一个新的Rails应用程序的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个新的Rails应用程序,该应用程序是在Windows 7下通过进入目录并键入"rails newapp"创建的.创建工作正常,当我访问根页面时,一切都很好.但是,当我尝试访问将访问数据库的页面时,得到以下信息:

I have a new rails application which I have created under Windows 7 by going into a directory and typing "rails newapp". The creation went fine, and when I access the root page, all is well. However, when I try to access a page that would access the database, I get this:

193: %1 is not a valid Win32 application.

在developer.log中. Mysql在我的机器上运行良好,并且我在其他目录中的其他应用程序中也运行过,只是这个程序不起作用.有什么想法吗?

In the developer.log. Mysql is running fine on my machine, and I have other applications which I have running in here in other directories, it's just this one that doesn't work. Any thoughts?

推荐答案

以下是对我有用的答案.原来这是x64与x32和Rails 2.3.2的问题.

Here's the answer that worked for me. Turns out it was an issue of x64 vs. x32 issue and Rails 2.3.2.

我从这里得到的答案( http://osdir.com/ml /RubyonRailsTalk/2009-06/msg01775.html ):

The answer I got from here (http://osdir.com/ml/RubyonRailsTalk/2009-06/msg01775.html):

如果其他人拥有相同的 经过很多努力后的问题 我的Windows XP x64计算机,带有MySQL 5.1.30(x64)和Rails 2.3.2已安装,以上建议g 帮助过我. 从此处下载libMySql.dll( http://instantrails.rubyforge .org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/) 并将其放在ruby \ bin中解决了 问题.

In case anyone else has the same problem after a lot of struggling on my Windows XP x64 machine, with MySQL 5.1.30 (x64) and Rails 2.3.2 installed, this above suggestiong helped me. Download libMySql.dll from here (http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/) and putting it in ruby\bin solved the problem.

这篇关于"193:%1不是有效的Win32应用程序"一个新的Rails应用程序的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆