[英]Starting rails dev server results in cannot open shared object file: No such file or directory puma_http11.so (LoadError)
I'm trying to start rails server (puma) using command rails s
我正在尝试使用命令rails s
启动 rails 服务器(puma)
I get this error:我收到此错误:
rails s I, [2017-11-16T10:47:05.872867 #16905] INFO -- sentry: ** [Raven] Raven 2.5.1 configured not to capture errors: Not configured to send/capture in environment 'development' => Booting Puma => Rails 5.1.3 application starting in development on http://localhost:3000 => Run
rails server -h
for more startup options Exiting /home/mariusz/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.3/lib/active_support/dependencies.rb:292:inrequire': libssl.so.1.0.2: cannot open shared object file: No such file or directory - /home/mariusz/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puma-3.10.0/lib/puma/puma_http11.so (LoadError) from /home/mariusz/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.3/lib/active_support/dependencies.rb:292:in
block in require' rails s I, [2017-11-16T10:47:05.872867 #16905] INFO -- sentry: ** [Raven] Raven 2.5.1 配置为不捕获错误:未配置为在环境“开发”中发送/捕获 =>启动 Puma => Rails 5.1.3 应用程序在http://localhost:3000上开始开发 => 运行rails server -h
以获得更多启动选项退出 /home/mariusz/.rbenv/versions/2.4.1/lib/ruby/ gems/2.4.0/gems/activesupport-5.1.3/lib/active_support/dependencies.rb:292:inrequire': libssl.so.1.0.2: cannot open shared object file: No such file or directory - /home/mariusz/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/puma-3.10.0/lib/puma/puma_http11.so (LoadError) from /home/mariusz/.rbenv/versions/2.4.1/lib/ruby/gems/2.4.0/gems/activesupport-5.1.3/lib/active_support/dependencies.rb:292:in
block in require'
My project info: puma (3.10.0), rails (5.1.3), ruby 2.4.0我的项目信息:puma (3.10.0)、rails (5.1.3)、ruby 2.4.0
The problem was with invalid environment.问题在于无效的环境。 I needed to restore all my gems to pristine state.我需要将我所有的宝石恢复到原始状态。 Running gem pristine --all
helped.运行gem pristine --all
帮助。 (it takes about 10 min to finish it) (完成大约需要10分钟)
I solved the problem this way.我是这样解决问题的。 Go to the tmp/pids
folder then in the server.pids
file erases the content of this file.转到tmp/pids
文件夹,然后在server.pids
文件中删除此文件的内容。 The content is the pid of the server rails execution process.内容是服务器rails执行进程的pid。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.