新手问题 求解决 Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'

znncool · 2017年03月14日 · 最后由 huacnlee 回复于 2017年03月14日 · 3500 次阅读
[root@localhost one]$ thin install
Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
/usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/local/rvm/gems/ruby-2.4.0@one/gems/eventmachine-1.2.3/lib/rubyeventmachine.so) - /usr/local/rvm/gems/ruby-2.4.0@one/gems/eventmachine-1.2.3/lib/rubyeventmachine.so (LoadError)
    from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/rvm/gems/ruby-2.4.0@one/gems/eventmachine-1.2.3/lib/eventmachine.rb:8:in `<top (required)>'
    from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/rvm/gems/ruby-2.4.0@one/gems/thin-1.7.0/lib/thin.rb:7:in `<top (required)>'
    from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/rvm/rubies/ruby-2.4.0/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/rvm/gems/ruby-2.4.0@one/gems/thin-1.7.0/bin/thin:5:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-2.4.0@one/bin/thin:22:in `load'
    from /usr/local/rvm/gems/ruby-2.4.0@one/bin/thin:22:in `<main>'
    from /usr/local/rvm/gems/ruby-2.4.0@one/bin/ruby_executable_hooks:15:in `eval'
    from /usr/local/rvm/gems/ruby-2.4.0@one/bin/ruby_executable_hooks:15:in `<main>'

不要用 Ruby 2.4 有可能 EventMachine 还没支持 2.4

znncool 关闭了讨论。 03月14日 20:15
需要 登录 后方可回复, 如果你还没有账号请 注册新账号