【问题标题】:rake db:create failing on Win7 x64rake db:在 Win7 x64 上创建失败
【发布时间】:2011-02-16 17:53:52
【问题描述】:

已更新以包含跟踪信息

我正在为 Ruby on Rails 开发设置 Win7 机器,但我的 rake 任务似乎遇到了问题。当我调用 rake db 时:创建 cmd 窗口会等待很长时间并转储以下内容:

C:\my\directory\rails>rake db:create --trace
(in C:/my/directory/rails)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:create
foo already exists
foo already exists
C:/Ruby192/bin/rake: [BUG] Segmentation fault
ruby 1.9.2p136 (2010-12-25) [i386-mingw32]

-- control frame ----------
c:0001 p:0000 s:0002 b:0002 l:000b24 d:000b24 TOP
---------------------------

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html


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

这是什么意思?我正在运行 Win7 Pro x64、MySQL 5.5 和 Rails 3。

【问题讨论】:

  • 如果你用--trace运行它的输出是什么?
  • 我已经更新了上面的内容以反映跟踪给我的信息
  • foo 是什么?如果是表,则错误可能是由于您的数据库已经部分创建,在这种情况下,您应该考虑改用rake db:reset

标签: mysql ruby-on-rails windows-7


【解决方案1】:

显然是 dll 有问题。使用this 方法。

【讨论】:

    猜你喜欢
    • 2012-02-24
    • 1970-01-01
    • 2011-08-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多