2
我尝试添加this Play2 cookbook我的食谱清单与流浪汉运行,并在做vagrant provision
我得到Play2厨师食谱不安装放浪机
FATAL: Gem::InstallError: chef_gem[rubyzip] (play2::default line 20) had an error: Gem::InstallError: rubyzip requires Ruby version >= 1.9.2.
所以我使用具有红宝石不同basebox错误1.9.3安装:
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "precise64-ruby1.9.3"
# The url from where the 'config.vm.box' box will be fetched if it
# doesn't already exist on the user's system.
config.vm.box_url = "https://dl.dropbox.com/u/14292474/vagrantboxes/precise64-ruby-1.9.3-p194.box"
然而,使用Vagrant进行配置仍会产生相同的错误。和箱是确实使用Ruby 1.9.3:
$ vagrant ssh
Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-23-generic x86_64)
* Documentation: https://help.ubuntu.com/
Welcome to your Vagrant-built virtual machine.
Last login: Sun Aug 19 22:42:58 2012 from 10.0.2.2
[email protected]:~$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
做gem install rubyzip
作品ssh方式连接到机器流浪后就好了。为什么vagrant provision
在这里不起作用?