wqu*_*wqu 3 ruby rubygems ruby-on-rails ruby-on-rails-3
打字
$ rails server
Run Code Online (Sandbox Code Playgroud)
在Mac上的终端产生这两个错误,我尝试通过卸载和再次安装ruby和rails进行故障排除并得到同样的错误.
打字
localhost:3000
Run Code Online (Sandbox Code Playgroud)
在浏览器上带来一个破碎的网页,意味着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
Run Code Online (Sandbox Code Playgroud)
小智 9
编辑:gem pristine --all
首先尝试运行.
尝试卸载并重新安装bundler:
gem uninstall bundler
然后 gem install bundler
然后跑bundle install
.
这将安装您应该在Gemfile中指定的所有gem,以及所有扩展.
例如 Bundle complete! 33 Gemfile dependencies, 103 gems now installed.