打字
$ rails server
在Mac上的终端中的产生了这两个错误,我通过卸载和安装ruby& amp;再次使用rails并得到同样的错误。
打字
localhost:3000
浏览器上的会导致网页损坏,导致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
答案 0 :(得分:9)
编辑:首先尝试运行gem pristine --all
。
尝试卸载并重新安装bundler:
gem uninstall bundler
然后gem install bundler
然后运行bundle install
。
这将安装你应该在Gemfile中指定的所有gem,以及所有扩展。
E.g Bundle complete! 33 Gemfile dependencies, 103 gems now installed.