Skip to content

Instantly share code, notes, and snippets.

@paul42
Created August 28, 2014 23:51
Show Gist options
  • Select an option

  • Save paul42/3b2de47b4ddf654df8ea to your computer and use it in GitHub Desktop.

Select an option

Save paul42/3b2de47b4ddf654df8ea to your computer and use it in GitHub Desktop.
Strange Error I'm getting from trying out https://gist.github.com/jamescarr/2fe5ee6827407dd9c96f
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'puppetlabs/centos-6.5-64-puppet' is up to date...
==> default: Fixed port collision for 22 => 2222. Now on port 2201.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2201 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2201
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Remote connection disconnect. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /vagrant => C:/Users/paul/projects/p4-Puppet
default: /tmp/manifests => C:/Users/paul/projects/p4-Puppet/puppet/manifests
default: /home/vagrant/my-project => C:/Users/paul/projects/p4-Puppet
==> default: Running provisioner: shell...
default: Running: inline script
==> default: ERROR: Error installing librarian-puppet:
==> default: ERROR: Failed to build gem native extension.
==> default:
==> default: /usr/bin/ruby extconf.rb
==> default: mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h
==> default:
==> default:
==> default: Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/json-1.8.1 for inspection.
==> default: Results logged to /usr/lib/ruby/gems/1.8/gems/json-1.8.1/ext/json/ext/generator/gem_make.out
==> default: Building native extensions. This could take a while...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell
Stdout from the command:
Building native extensions. This could take a while...
Stderr from the command:
ERROR: Error installing librarian-puppet:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/ruby.h
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/json-1.8.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/json-1.8.1/ext/json/ext/generator/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment