2013-12-11 46 views
3

我试图安装vagrant-hostmanager插件,但安装仍然失败。这里的错误:流浪者插件安装失败

Applications/Vagrant/embedded/gems/gems/vagrant-1.3.5/plugins/commands/plugin/state_file.rb:47:in `save!': undefined method `sort!' for {}:Hash (NoMethodError) 

其他人碰到这个?

+0

将vagrant升级到1.4应该解决这个问题。 – mechanicalfish

+1

是。该方法上周被删除。 https://github.com/mitchellh/vagrant/commit/39b2539ec7821aa952ca36fbda4c68e35c8a2d41 – jstim

+0

啊,我需要1.3.x来运行genesis-wordpress。有什么办法可以解决这个问题吗? –

回答

9

我跑了vagrant 1.3.5安装随附的vagrant卸载脚本,并得到相同的错误。然后,我掩饰了隐藏的$HOME/.vagrant.d目录,那就做了诀窍。

对我来说,1.4.0中配置RHEL(和变体)上的网络存在一个showstopper错误,所以我不得不将我的开发工作站降级到1.3.5(直到Vagrant 1.4.1发布并修复): https://github.com/mitchellh/vagrant/issues/2614

+0

!!这将删除所有框和插件。 –

0

或者你可以搞清楚的问题是什么更有选择性:

~/.vagrant.d 06:08:58 516$ grep -R state_file gems/ gems//gems/bindler-0.1.3/lib/bindler/bend_vagrant.rb:require Vagrant.source_root.join('plugins/commands/plugin/state_file').to_s

所以在我的情况“bindler”。

~/.vagrant.d 06:11:43 519$ vagrant plugin uninstall bindler Uninstalling the 'bindler' plugin... ~/.vagrant.d 06:12:39 520$ grep -R state_file gems/

全部完成!