部署 由 openssl 引发的 rbenv 安装 ruby 错误,请教如何解决?

stephen · 2017年08月11日 · 最后由 luikore 回复于 2017年08月11日 · 2717 次阅读

以下是错误代码,搜索过,根据网上的办法都解决不了,请求帮忙

x86_64-linux-fake.rb updated
./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems -r./x86_64-linux-fake ./tool/rbinstall.rb --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --data-mode=0644 --prog-mode=0755 --installed-list .installed.list --mantype="doc" --install=all --rdoc-output=".ext/rdoc"
/tmp/ruby-build.20170811101100.32070/ruby-2.4.1/lib/rubygems/core_ext/kernel_require.rb:55:in `require': /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/.ext/x86_64-linux/openssl.so: undefined symbol: EC_GROUP_new_curve_GF2m - /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/.ext/x86_64-linux/openssl.so (LoadError)
        from /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/.ext/common/openssl.rb:13:in `<top (required)>'
        from /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/lib/rubygems/security.rb:12:in `<top (required)>'
        from /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/lib/rubygems/package.rb:44:in `<top (required)>'
        from /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/lib/rubygems/installer.rb:10:in `<top (required)>'
        from /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /tmp/ruby-build.20170811101100.32070/ruby-2.4.1/lib/rubygems/core_ext/kernel_require.rb:55:in `require'
        from ./tool/rbinstall.rb:653:in `<module:RbInstall>'
        from ./tool/rbinstall.rb:596:in `<main>'

你 openssl 的版本太老,所以没这个函数,尝试装个新的?

需要 登录 后方可回复, 如果你还没有账号请 注册新账号