加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 在Vagrant中找不到“RubyGem puppet”

发布时间:2020-12-17 02:36:50 所属栏目:百科 来源:网络整理
导读:我可以手动运行bundle install并获得恢复正常的东西,但是当我让Puppet提供一个Vagrant框时,这是第二次(第一次我获得成功输出). [default] Running provisioner: Vagrant::Provisioners::Puppet...[default] Running Puppet with /tmp/vagrant-puppet/manifes
我可以手动运行bundle install并获得恢复正常的东西,但是当我让Puppet提供一个Vagrant框时,这是第二次(第一次我获得成功输出).

[default] Running provisioner: Vagrant::Provisioners::Puppet...
[default] Running Puppet with /tmp/vagrant-puppet/manifests/default.pp...
stdin: is not a tty
/opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems.rb:900:in `report_activate_error': Could not find RubyGem puppet (>= 0) (Gem::LoadError)
    from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems.rb:248:in `activate'
    from /opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1276:in `gem'
    from /opt/vagrant_ruby/bin/puppet:18
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

我不是在任何地方请求puppet gem,它不在我的Gemfile中,我的清单也不需要它.为什么要查找puppet gem,我该如何摆脱这个错误?

解决方法

您的VM上的VM运行Puppet.确保仍为用户vagrant和root安装gem.
它也可以是你的默认ruby版本的转换(系统vs通过rvm或rbenv安装?).

希望这可以帮助.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读