本文介绍了rake db:create 在 Win7 x64 上失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
更新以包含跟踪信息
我正在为 Ruby on Rails 开发设置一台 Win7 机器,但我的 rake 任务似乎遇到了问题.当我调用 rake db: create cmd 窗口时 很长时间 并转储以下内容:
I'm setting up a Win7 machine for Ruby on Rails development and seem to have run into an issue with my rake tasks. When I call rake db: create the cmd window sits for a very long time and dumps the following:
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.
What does this mean? I am running Win7 Pro x64, MySQL 5.5, and Rails 3.
推荐答案
显然是 dll 出了问题.使用了这个 方法.
Apparently it was the dll that was faulty. Used this approach.
这篇关于rake db:create 在 Win7 x64 上失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!