gpt4 book ai didi

ruby - Vagrant up 段错误

转载 作者:数据小太阳 更新时间:2023-10-29 07:15:56 25 4
gpt4 key购买 nike

我真的很想使用 vagrant 在我的计算机上设置一个 Rails 开发环境,但是每当我运行 vagrant up 时,我都会收到一个段错误。我尝试重新安装 vagrant 和 virtualbox,以及两者的不同版本。我是 Vagrant 的新手,似乎无法弄清楚出了什么问题。这是错误消息:

F:\Projects\toy_app>vagrant up
C:/Users/JT/.vagrant.d/gems/gems/childprocess-0.5.6/lib/childprocess/windows/han
dle.rb:44: [BUG] Segmentation fault
ruby 2.0.0p353 (2013-11-22) [i386-mingw32]

-- Control frame information -----------------------------------------------
c:0036 p:---- s:0198 e:000197 CFUNC :get_exit_code
c:0035 p:0035 s:0193 e:000192 METHOD C:/Users/JT/.vagrant.d/gems/gems/childproce
ss-0.5.6/lib/childprocess/windows/handle.rb:44
c:0034 p:0029 s:0188 e:000187 METHOD C:/Users/JT/.vagrant.d/gems/gems/childproce
ss-0.5.6/lib/childprocess/windows/process.rb:41
c:0033 p:0716 s:0183 e:000182 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/util/subprocess.rb:160
c:0032 p:0013 s:0161 e:000160 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/util/subprocess.rb:22
c:0031 p:0024 s:0156 e:000155 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/driver/base.rb:404
c:0030 p:0014 s:0154 e:000153 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/util/busy.rb:19
c:0029 p:0039 s:0150 E:001408 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/driver/base.rb:403
c:0028 p:0017 s:0144 e:000143 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/driver/base.rb:342
c:0027 p:0044 s:0141 e:000140 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/util/retryable.rb:17
c:0026 p:0082 s:0135 e:000134 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/driver/base.rb:337
c:0025 p:0009 s:0127 e:000126 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/driver/meta.rb:141
c:0024 p:0044 s:0125 e:000124 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/util/retryable.rb:17
c:0023 p:0035 s:0119 e:000118 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/driver/meta.rb:140
c:0022 p:0044 s:0114 e:000113 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/driver/meta.rb:38 [FINISH]
c:0021 p:---- s:0107 e:000106 CFUNC :new
c:0020 p:0019 s:0104 e:000103 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/providers/virtualbox/provider.rb:11
c:0019 p:0010 s:0100 e:000099 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/environment.rb:378 [FINISH]
c:0018 p:---- s:0094 e:000093 CFUNC :each
c:0017 p:0249 s:0091 E:001c50 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/environment.rb:377
c:0016 p:0131 s:0081 e:000080 LAMBDA C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/plugin/v2/command.rb:165 [FINISH]
c:0015 p:---- s:0075 e:000074 CFUNC :call
c:0014 p:0108 s:0071 e:000069 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/plugin/v2/command.rb:192 [FINISH]
c:0013 p:---- s:0065 e:000064 CFUNC :each
c:0012 p:0216 s:0062 E:0021f8 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/plugin/v2/command.rb:174
c:0011 p:0072 s:0050 E:001580 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/commands/up/command.rb:74
c:0010 p:0008 s:0045 e:000044 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/environment.rb:277 [FINISH]
c:0009 p:---- s:0042 e:000041 CFUNC :tap
c:0008 p:0017 s:0039 e:000038 BLOCK C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/environment.rb:275 [FINISH]
c:0007 p:---- s:0037 e:000036 CFUNC :synchronize
c:0006 p:0032 s:0034 e:000033 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/environment.rb:274
c:0005 p:0114 s:0030 E:00110c METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/plugins/commands/up/command.rb:58
c:0004 p:0158 s:0023 e:000022 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/cli.rb:42
c:0003 p:0020 s:0017 e:000016 METHOD C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/lib/vagrant/environment.rb:301
c:0002 p:0807 s:0013 E:001648 EVAL C:/HashiCorp/Vagrant/embedded/gems/gems/vag
rant-1.7.1/bin/vagrant:174 [FINISH]
c:0001 p:0000 s:0002 E:0013fc TOP [FINISH]

然后它继续列出约 450 行回溯。

最佳答案

试试这个,它对我有用。

vagrant 插件卸载 ffi && vagrant 插件安装 ffi --plugin-version 1.9.8

关于ruby - Vagrant up 段错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31102116/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com