【问题标题】:rails server cannot runrails 服务器无法运行
【发布时间】:2014-05-20 02:38:29
【问题描述】:

我是 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

我已经研究并尝试了一些解决其他人同样问题的解决方案。但是没有找到解决方法。

【问题讨论】:

  • 你只是想运行 hello world 吗?
  • 那么,您正在运行没有应用程序的服务器?因为我没有看到任何代码。
  • 但是当运行 rails server 我得到了如上的错误。
  • rails new blog 用于新应用

标签: ruby-on-rails ruby


【解决方案1】:

在运行服务器之前,在控制台中输入bundle install。或者你可能没有安装bundle gem,所以你需要gem install bundle

不过,它应该按照指南安装 gem。可能是 rvm 的问题。

【讨论】:

  • 捆绑安装是帮助我。谢谢。
猜你喜欢
  • 2012-08-21
  • 1970-01-01
  • 1970-01-01
  • 2022-01-21
  • 2016-05-12
  • 2023-03-22
相关资源
最近更新 更多