“193: %1 不是有效的 Win32 应用程序"新 Rails 应用程序的错误

quot;193: %1 is not a valid Win32 applicationquot; bug with a new Rails Application(“193: %1 不是有效的 Win32 应用程序新 Rails 应用程序的错误)
本文介绍了“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​​in 解决了问题.

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 rubyin solved the problem.

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

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Hibernate reactive No Vert.x context active in aws rds(AWS RDS中的休眠反应性非Vert.x上下文处于活动状态)
Bulk insert with mysql2 and NodeJs throws 500(使用mysql2和NodeJS的大容量插入抛出500)
Flask + PyMySQL giving error no attribute #39;settimeout#39;(FlASK+PyMySQL给出错误,没有属性#39;setTimeout#39;)
auto_increment column for a group of rows?(一组行的AUTO_INCREMENT列?)
Sort by ID DESC(按ID代码排序)
SQL/MySQL: split a quantity value into multiple rows by date(SQL/MySQL:按日期将数量值拆分为多行)