我开始使用 Ruby 游戏开发,作为初学者,我对 gosu 的属性非常不确定。在运行时game.rb
我遇到了以下问题:
Traceback (most recent call last):
3: from game.rb:1:in `<main>'
2: from game.rb:1:in `require'
1: from /Users/xyz/.rvm/gems/ruby-2.6.3/gems/gosu-0.14.5/lib/gosu.rb:25:in `<top (required)>'
/Users/xyz/.rvm/gems/ruby-2.6.3/gems/gosu-0.14.5/lib/gosu.rb:25:in `require': dlopen(/Users/xyz/.rvm/gems/ruby-2.6.3/gems/gosu-0.14.5/lib/gosu.bundle, 9): Symbol not found: __ZTINSt3__112bad_weak_ptrE (LoadError)
Referenced from: /Users/xyz/.rvm/gems/ruby-2.6.3/gems/gosu-0.14.5/lib/gosu.bundle
Expected in: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
in /Users/xyz/.rvm/gems/ruby-2.6.3/gems/gosu-0.14.5/lib/gosu.bundle - /Users/xyz/.rvm/gems/ruby-2.6.3/gems/gosu-0.14.5/lib/gosu.bundle