Rails服务器将无法运行[英] Rails Server will not run

本文是小编为大家收集整理的关于Rails服务器将无法运行的处理方法,想解了Rails服务器将无法运行的问题怎么解决?Rails服务器将无法运行问题的解决办法?那么可以参考本文帮助大家快速定位并解决问题。

问题描述

打字

$ rails server 

在 mac 上的终端中产生了这两个错误,我尝试通过卸载和安装 ruby​​ &rails 再次出现同样的错误.

打字

localhost:3000 

浏览器上带来了一个损坏的网页,这意味着 rails 没有正常运行.

作为一个完整的初学者,我如何简单地逐步解决以下这些问题以使 Rails 运行?

Ignoring binding_of_caller-0.7.2 because its extensions are not built.  Try: gem pristine binding_of_caller --version 0.7.2
Ignoring byebug-8.2.2 because its extensions are not built.  Try: gem pristine byebug --version 8.2.2
Ignoring debug_inspector-0.0.2 because its extensions are not built.  Try: gem pristine debug_inspector --version 0.0.2
Ignoring executable-hooks-1.3.2 because its extensions are not built.  Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built.  Try: gem pristine gem-wrappers --version 1.2.7
Ignoring mysql2-0.4.2 because its extensions are not built.  Try: gem pristine mysql2 --version 0.4.2
Ignoring nokogiri-1.6.7.2 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.7.2
Ignoring binding_of_caller-0.7.2 because its extensions are not built.  Try: gem pristine binding_of_caller --version 0.7.2
Ignoring byebug-8.2.2 because its extensions are not built.  Try: gem pristine byebug --version 8.2.2
Ignoring debug_inspector-0.0.2 because its extensions are not built.  Try: gem pristine debug_inspector --version 0.0.2
Ignoring executable-hooks-1.3.2 because its extensions are not built.  Try: gem pristine executable-hooks --version 1.3.2
Ignoring gem-wrappers-1.2.7 because its extensions are not built.  Try: gem pristine gem-wrappers --version 1.2.7
Ignoring mysql2-0.4.2 because its extensions are not built.  Try: gem pristine mysql2 --version 0.4.2
Ignoring nokogiri-1.6.7.2 because its extensions are not built.  Try: gem pristine nokogiri --version 1.6.7.2
dyld: lazy symbol binding failed: Symbol not found: _rb_data_typed_object_alloc
  Referenced from: /Users/Leviathan/.rvm/gems/ruby-2.2.1/gems/debug_inspector-0.0.2/lib/debug_inspector.bundle
  Expected in: flat namespace

dyld: Symbol not found: _rb_data_typed_object_alloc
  Referenced from: /Users/Leviathan/.rvm/gems/ruby-2.2.1/gems/debug_inspector-0.0.2/lib/debug_inspector.bundle
  Expected in: flat namespace

Trace/BPT trap: 5

推荐答案

编辑:先尝试运行 gem pristine --all.

尝试卸载并重新安装捆绑程序:

gem uninstall bundler 然后 gem install bundler

然后运行bundle install.

这将安装您应该在 Gemfile 中指定的所有 gem,以及所有扩展.

例如 Bundle complete! 33 Gemfile dependencies, 103 gems now installed.

本文地址:https://www.itbaoku.cn/post/786335.html