Vagrant can't require log4r

I am trying to follow the chef's quick start tutorial , I am doing this on an Ubuntu 12.04 VM.

I created git, a cookbook ... And I'm at the point where I have to start a tramp in order to bind a node. But even while the tramp has just been installed, I get this error:

~/chef-repo$ vagrant up --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>'

I tried apt-get to remove the tramp, it shows that the log4r package will become useless.

Even after reinstalling it gives me an error.

I do not know what I did wrong, and I have no idea how to solve this.

EDIT: if I try with advanced customization, I'm stuck in installing a chef via gem:

~$ gem install chef
ERROR: Loading command: install (LoadError)
    cannot load such file -- zlib
ERROR: While executing gem ... (NameError)
    uninitialized constant Gem::Command::InstallCommand
+4
source share
1 answer

, , Chef. , Vagrant Ubuntu?

Debian/Ubuntu , :

sudo dpkg -i vagrant_*.deb

(Synaptic , , .deb)

+8

Source: https://habr.com/ru/post/1527324/


All Articles