我是Ruby on rails的新手。当我在终端上运行 rails server 时,我收到错误:
dyld: lazy symbol binding failed: Symbol not found: _rb_ary_new_from_values
Referenced from: /Users/apple/.rvm/gems/ruby-2.1.1@global/gems/psych-2.0.5/lib/psych.bundle
Expected in: flat namespace
dyld: Symbol not found: _rb_ary_new_from_values
Referenced from: /Users/apple/.rvm/gems/ruby-2.1.1@global/gems/psych-2.0.5/lib/psych.bundle
Expected in: flat namespace
Trace/BPT trap: 5
我研究并尝试过一些与其他人同样问题的解决方案。但没有找到解决问题的方法。
答案 0 :(得分:2)
在运行服务器之前在控制台中键入bundle install
。或者您可能尚未安装bundle
gem,因此您需要gem install bundle
。
虽然,它应该由指南安装宝石。也许是rvm的问题。