ruby Ruby 中的 Rake Time BUG,现在在 Windows 7 上做什么:
错误:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这不是一个“时间”错误,我认为这是你的环境没有安装 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?
我得到了上述错误报告的解决方案,我认为这是 mysql 中的数据库名称和我的 Rails 配置文件中的小问题。
我发现上述问题的原因如下:
OR
Config/database.yml 中的
>文件包含不同名称的数据库
环境(例如mysql)以及您在rails中为应用程序设置的不同数据库名称。 (我的是这样的:Mysql DBname 名称和 Config/database.yml 中的 DB 名称不匹配)。或
或
>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:
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
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: