无法使用Ruby 2.6.5版本启动Ruby on Rails服务器

时间:2019-12-18 18:38:27

标签: ruby ruby-on-rails-5

运行 rails

时出现此错误

我尝试更新所有宝石,但是对我不起作用:( 当我使用ruby 2.6.1时,一切正常。 但是我必须更新ruby版本,因为我在AWS上的Elastic Beanstalk中的环境适用于ruby 2.6.5。

有人可以帮助我吗?

更新帖子...

我尝试按照@tadman的建议重建所有宝石。但是我仍然有同样的错误。

之后,我重做以下内容:

  

宝石原始-全部

     

捆绑安装

     

bundle exec spring binstub --all

我得到的错误:

  

nimet @ nimet-PC:〜/ Projects / belle.api $ rails s   =>引导彪马   => Rails 5.2.4应用程序开始开发   =>运行rails server -h以获取更多启动选项/home/nimet/.rvm/gems/ruby-2.6.5/gems/puma-3.12.2/lib/puma/puma_http11.so:   [BUG] 0x0000000000000000红宝石2.6.5p114的分段错误   (2019-10-01修订版67812)[x86_64-linux]

     

-控制框信息------------------------------------------ ----- c:0052 p:-11744685087948 s:0281 e:000280 TOP [完成] c:0051 p:---- s:0278   e:000277 CFUNC:需要c:0050 p:0008 s:0273 e:000272块   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291 c:0049 p:0068 s:0270 e:000269方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:257 c:0048 p:0011 s:0263 e:000262方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291 c:0047 p:0090 s:0257 e:000256 TOP
  /home/nimet/.rvm/gems/ruby-2.6.5/gems/puma-3.12.2/lib/puma/server.rb:17   [完成] c:0046 p:---- s:0254 e:000253 CFUNC:require c:0045 p:0008   s:0249 e:000248块   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291 c:0044 p:0068 s:0246 e:000245方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:257 c:0043 p:0011 s:0239 e:000238方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291 c:0042 p:0006 s:0233 e:000232 TOP
  /home/nimet/.rvm/gems/ruby-2.6.5/gems/puma-3.12.2/lib/puma/runner.rb:3   [完成] c:0041 p:---- s:0230 e:000229 CFUNC:require c:0040 p:0008   s:0225 e:000224块   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291 c:0039 p:0068 s:0222 e:000221方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:257 c:0038 p:0011 s:0215 e:000214方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291 c:0037 p:0006 s:0209 e:000208 TOP
  /home/nimet/.rvm/gems/ruby-2.6.5/gems/puma-3.12.2/lib/puma/cluster.rb:3   [完成] c:0036 p:---- s:0206 e:000205 CFUNC:require c:0035 p:0008   s:0201 e:000200区块   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291 c:0034 p:0068 s:0198 e:000197方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:257 c:0033 p:0011 s:0191 e:000190方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291 c:0032 p:0020 s:0185 e:000184 TOP
  /home/nimet/.rvm/gems/ruby-2.6.5/gems/puma-3.12.2/lib/puma/launcher.rb:6   [完成] c:0031 p:---- s:0182 e:000181 CFUNC:require c:0030 p:0008   s:0177 e:000176块   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291 c:0029 p:0068 s:0174 e:000173方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:257 c:0028 p:0011 s:0167 e:000166方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/activesupport-5.2.4/lib/active_support/dependencies.rb:291 c:0027 p:0031 s:0161 e:000160方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/puma-3.12.2/lib/rack/handler/puma.rb:15   c:0026 p:0012 s:0152 e:000151方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/puma-3.12.2/lib/rack/handler/puma.rb:65   c:0025 p:0195 s:0143 E:000028方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/rack-2.0.7/lib/rack/server.rb:297   c:0024 p:0045 s:0136 E:001a30方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4/lib/rails/commands/server/server_command.rb:53 c:0023 p:0042 s:0132 e:000131 BLOCK   /home/nimet/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4/lib/rails/commands/server/server_command.rb:147   [完成] c:0022 p:---- s:0128 e:000127 CFUNC:tap c:0021 p:0030   s:0124 e:000123方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4/lib/rails/commands/server/server_command.rb:142   c:0020 p:0064 s:0120 e:000119方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/thor-1.0.1/lib/thor/command.rb:27   c:0019 p:0047 s:0112 e:000111方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/thor-1.0.1/lib/thor/invocation.rb:127   c:0018 p:0259 s:0105 e:000104方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/thor-1.0.1/lib/thor.rb:392   c:0017 p:0043 s:0092 e:000091方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4/lib/rails/command/base.rb:69   c:0016 p:0130 s:0085 e:000084方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4/lib/rails/command.rb:46   c:0015 p:0059 s:0074 e:000073 TOP
  /home/nimet/.rvm/gems/ruby-2.6.5/gems/railties-5.2.4/lib/rails/commands.rb:18   [完成] c:0014 p:---- s:0069 e:000068 CFUNC:require c:0013 p:0053   s:0064 e:000063 TOP /home/nimet/Projects/belle.api/bin/rails:9   [完成] c:0012 p:---- s:0060 e:000059 CFUNC:load c:0011 p:0135   s:0055 e:000054方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/spring-2.0.2/lib/spring/client/rails.rb:28   c:0010 p:0009 s:0050 e:000049方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/spring-2.0.2/lib/spring/client/command.rb:7   c:0009 p:0014 s:0045 e:000044方法   /home/nimet/.rvm/gems/ruby-2.6.5/gems/spring-2.0.2/lib/spring/client.rb:30   c:0008 p:0295 s:0039 e:000038 TOP
  /home/nimet/.rvm/gems/ruby-2.6.5/gems/spring-2.0.2/bin/spring:49   [完成] c:0007 p:---- s:0033 e:000032 CFUNC:load c:0006 p:0163   s:0028 e:000027 TOP
  /home/nimet/.rvm/gems/ruby-2.6.5/gems/spring-2.0.2/lib/spring/binstub.rb:31   [完成] c:0005 p:---- s:0022 e:000021 CFUNC:require c:0004 p:0130   s:0017 e:000016 TOP /home/nimet/Projects/belle.api/bin/spring:15   [完成] c:0003 p:---- s:0012 e:000011 CFUNC:load c:0002 p:0018   s:0007 E:000098 EVAL bin / rails:3 [完成] c:0001 p:0000 s:0003   E:001a40(无)[完成]

0 个答案:

没有答案