2013-08-05 28 views
1

我下面講的廚師使用這個基本OPS-代碼的教程,這就是我收到的時候我在無法運行流浪漢以下從OPS-代碼頁

$ vagrant init opscode-ubuntu-1204 https://opscode-vm-bento.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04-i386_chef-11.4.4.box --no-color 

/opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- log4r (LoadError) 
    from /opt/chef/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' 
    from /usr/bin/vagrant:2:in `<main>' 

我的廚師指示'卡住'匯聚節點'https://learnchef.opscode.com/quickstart/converge/第2點。

我失蹤/做錯了什麼?

+0

尼爾的答案是否奏效?請不要忘記標記答案是正確的! :) – sethvargo

回答

2

我今天遇到同樣的問題。您是否使用$ sudo apt-get install vagrant安裝流浪狗? Ubuntu 13.04目前的版本是1.0.3,但Vagrant下載頁面上的最新版本是1.2.7。操作碼說明鏈接到此頁面。

但是,安裝此軟件包會嘗試remove virtualbox-4.2This comment put me on the right track:

# Remove older version of vagrant 
$ sudo apt-get remove vagrant 

# Install downloaded package without removing virtualbox 
$ sudo dpkg -i vagrant_x86_64.deb 

你也可能需要添加/opt/vagrant/bin/到您的PATH。

我希望有幫助!