gpt4 book ai didi

ruby-on-rails - 如果没有 Ruby 解释器的补丁,Ruby 线程不能在 RubyCocoa 中使用

转载 作者:数据小太阳 更新时间:2023-10-29 08:34:57 26 4
gpt4 key购买 nike

我在测试 Rails 应用程序时在 Ruby 控制台中发现了这个错误。

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib /mongrel.rb:285:  
in `run': Ruby threads cannot be used in RubyCocoa without patches to the Ruby interpreter

所以我想我必须修补或重新安装 RubyCocoa。但我没有找到任何内容来做到这一点。或者您可能有更好的方法来解决这个问题?

这是我的环境:

  • ruby 1.8.7
  • rails 2.3.3
  • Mac 操作系统 10.6

最佳答案

快速破解:

$ RUBYCOCOA_THREAD_HOOK_DISABLE=1 ./script/server --debugger

不同的快速破解:

$ echo "ENV['RUBYCOCOA_THREAD_HOOK_DISABLE']='1'" > config/initializers/disable_rubycocoa_warning.rb

关于ruby-on-rails - 如果没有 Ruby 解释器的补丁,Ruby 线程不能在 RubyCocoa 中使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1733426/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com