问题描述
我正在使用最新版本的 rails (3.1.3) 启动一个新的 rails 应用程序.当我尝试启动服务器时 Rails 崩溃.首先我修复了这个错误,现在我得到了这个
I'm starting up a new rails app with the latest version of rails (3.1.3). Rails crashes when I try to start up the server. First I fixed this bug, and now I'm getting this one
ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined symbol: ruby_threadptr_data_type
在这里上有一个讨论,但我做不到对它有足够的了解来让事情发挥作用.
There's a discussion about this going on here, but I can't make enough sense of it to get things to work.
我更新了ruby-debug的版本
I updated the version of ruby-debug
gem 'ruby-debug-base19x', '~> 0.11.30.pre4'
现在已经转移到这个错误
and have now moved on to this error
linecache19-0.5.12/lib/trace_nums19.so: undefined symbol: ruby_current_thread
推荐答案
好吧,事实证明 ruby-debug 和 linecache 都需要手动更新到最新版本.我的 gemfile 中的这些行起到了作用
Ok, it turns out that both ruby-debug and linecache needed to be manually updated to the latest versions. These lines in my gemfile did the trick
gem 'linecache19', :git => 'git://github.com/mark-moseley/linecache'
gem 'ruby-debug-base19x', '~> 0.11.30.pre4'
gem 'ruby-debug19'
要运行规范,您需要运行 bundle exec rspec -d spec
To run specs, you need to run bundle exec rspec -d spec
这篇关于ruby_threadptr_data_type 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!