小编mot*_*rog的帖子

MySQL2 / Ruby 1.9.3 / Rails 3.2 上的分段错误

我一直很难让 Rails 3.2 与 mysql2 一起工作。
我正在运行 OSX 10.6、MySQL 5.1.37

我得到了这个可爱的堆栈跟踪。

HunterMBP:v hunter$ bundle exec rake db:create
/Users/hunter/.rvm/gems/ruby-1.9.3-p125/gems/mysql2-0.3.2/lib/mysql2/mysql2.bundle: [BUG] Segmentation fault
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin10.8.0]

-- Control frame information -----------------------------------------------
c:0033 p:-543968548 s:0099 b:0099 l:000098 d:000098 TOP   
c:0032 p:---- s:0097 b:0097 l:000096 d:000096 CFUNC  :require
c:0031 p:0107 s:0093 b:0093 l:000092 d:000092 TOP    /Users/hunter/.rvm/gems/ruby-1.9.3-p125/gems/mysql2-0.3.2/lib/mysql2.rb:8
c:0030 p:---- s:0091 b:0091 l:000090 d:000090 FINISH
c:0029 p:---- s:0089 b:0089 l:000088 d:000088 CFUNC  :require
c:0028 p:0026 s:0085 b:0085 l:000065 d:000084 BLOCK  /Users/hunter/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.1.0/lib/bundler/runtime.rb:68
c:0027 p:---- …
Run Code Online (Sandbox Code Playgroud)

ruby mysql macos ruby-on-rails

5
推荐指数
1
解决办法
4210
查看次数

标签 统计

macos ×1

mysql ×1

ruby ×1

ruby-on-rails ×1