gpt4 book ai didi

mysql - 新 Rails 应用程序的 "193: %1 is not a valid Win32 application"错误

转载 作者:IT老高 更新时间:2023-10-29 00:03:01 26 4
gpt4 key购买 nike

我有一个新的 Rails 应用程序,它是我在 Windows 7 下创建的,方法是进入一个目录并键入“rails newapp”。创建很顺利,当我访问根页面时,一切都很好。但是,当我尝试访问将访问数据库的页面时,我得到以下信息:

193: %1 is not a valid Win32 application.

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

最佳答案

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

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

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.

关于mysql - 新 Rails 应用程序的 "193: %1 is not a valid Win32 application"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1208029/

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