Puma服务器无法启动,libssl错误-找不到文件

时间:2018-11-14 02:31:53

标签: puma libssl

尝试启动彪马时出现以下错误。它抱怨无法加载libssl?

有什么想法吗?

root@7711398a00ad:/app# bundle exec puma -C config/puma.rb
bundler: failed to load command: puma (/bundle/bin/puma)
LoadError: libssl.so.1.0.0: cannot open shared object file: No such file or directory - /bundle/gems/puma-3.11.4/lib/puma/puma_http11.so
  /bundle/gems/puma-3.11.4/lib/puma/server.rb:15:in `require'
  /bundle/gems/puma-3.11.4/lib/puma/server.rb:15:in `<top (required)>'
  /bundle/gems/puma-3.11.4/lib/puma/runner.rb:1:in `require'
  /bundle/gems/puma-3.11.4/lib/puma/runner.rb:1:in `<top (required)>'
  /bundle/gems/puma-3.11.4/lib/puma/cluster.rb:1:in `require'
  /bundle/gems/puma-3.11.4/lib/puma/cluster.rb:1:in `<top (required)>'
  /bundle/gems/puma-3.11.4/lib/puma/launcher.rb:4:in `require'
  /bundle/gems/puma-3.11.4/lib/puma/launcher.rb:4:in `<top (required)>'
  /bundle/gems/puma-3.11.4/lib/puma/cli.rb:6:in `require'
  /bundle/gems/puma-3.11.4/lib/puma/cli.rb:6:in `<top (required)>'
  /bundle/gems/puma-3.11.4/bin/puma:6:in `require'
  /bundle/gems/puma-3.11.4/bin/puma:6:in `<top (required)>'
  /bundle/bin/puma:23:in `load'
  /bundle/bin/puma:23:in `<top (required)>'

1 个答案:

答案 0 :(得分:4)

libssl1.0.0出于安全原因而被拉出。将puma gem升级到最新版本(3.11.4-> 3.12.0)已为我修复了该问题。