ruby Ruby 中的 Rake Time BUG,现在在 Windows 7 上做什么:

发布于 2024-12-01 10:54:14 字数 833 浏览 1 评论 0原文

错误:

C:\ruby_shuby\exchange>rake db:create:all
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)
C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.11/lib/active_record/connection_adapters/mysql_ad
apter.rb:620: [BUG] Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

系统宝石列表:

C:\ruby_shuby\exchange>gem list

*** LOCAL GEMS ***

actionmailer (2.3.11, 2.3.2)
actionpack (2.3.11, 2.3.2)
activerecord (2.3.11, 2.3.2)
activeresource (2.3.11, 2.3.2)
activesupport (2.3.11, 2.3.2)
mysql (2.8.1 x86-mingw32)
rack (1.1.2, 1.1.1)
rails (2.3.11)
rake (0.9.2)

帮助!该怎么做才能完成这件事。

ERROR:

C:\ruby_shuby\exchange>rake db:create:all
rake/rdoctask is deprecated.  Use rdoc/task instead (in RDoc 2.4.2+)
C:/Ruby187/lib/ruby/gems/1.8/gems/activerecord-2.3.11/lib/active_record/connection_adapters/mysql_ad
apter.rb:620: [BUG] Segmentation fault
ruby 1.8.7 (2011-06-30 patchlevel 352) [i386-mingw32]

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

SYSTEM gem list:

C:\ruby_shuby\exchange>gem list

*** LOCAL GEMS ***

actionmailer (2.3.11, 2.3.2)
actionpack (2.3.11, 2.3.2)
activerecord (2.3.11, 2.3.2)
activeresource (2.3.11, 2.3.2)
activesupport (2.3.11, 2.3.2)
mysql (2.8.1 x86-mingw32)
rack (1.1.2, 1.1.1)
rails (2.3.11)
rake (0.9.2)

HELP! what to do to get done with this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

断肠人 2024-12-08 10:54:14

这不是一个“时间”错误,我认为这是你的环境没有安装 MySQL 的问题。

你的系统上安装了 MySQL 吗?

This is not a "time" bug, it's a problem with your environment not having MySQL installed, I assume.

Have you installed MySQL on your system?

懒猫 2024-12-08 10:54:14

我得到了上述错误报告的解决方案,我认为这是 mysql 中的数据库名称和我的 Rails 配置文件中的小问题。

我发现上述问题的原因如下:

>Mysql or database server is Off,or disconnected.

OR
Config/database.yml 中的>文件包含不同名称的数据库环境(例如mysql)以及您在rails中为应用程序设置的不同数据库名称。 (我的是这样的:Mysql DBname 名称和 Config/database.yml 中的 DB 名称不匹配)。

> mysql or database gem not installed in ruby.



>Libmysql.dll 文件需要从 Mysql 安装目录复制到 ruby​​ 的 bin 目录,这有时可能会导致如下错误:
在此处输入图像描述

I got the Solution to above Bug report,which I assume,as the minor problem with database name in mysql and my rails config file..

I found following be the causes of above problem are:

>Mysql or database server is Off,or disconnected.

OR
>file in Config/database.yml contains different name of DB environment like mysql and different Database name which you had setup for your application in rails. (mine was this: MisMatch of Mysql DBname name and DB name in Config/database.yml).

OR

> mysql or database gem not installed in ruby.

OR

>Libmysql.dll file was need to be copy from Mysql installed directory to ruby's bin directory.,which may some time causes errors like:
enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文