Skip to content

Instantly share code, notes, and snippets.

@aairey
Last active December 31, 2016 15:45
Show Gist options
  • Save aairey/41da4af73d783a361292084dafa78233 to your computer and use it in GitHub Desktop.
Save aairey/41da4af73d783a361292084dafa78233 to your computer and use it in GitHub Desktop.
vagrant plugin install issue
Installing the 'hosts' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
An error occurred while installing ffi (1.9.14), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.14'` succeeds before bundling.
Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/aairey/.vagrant.d/gems/gems/ffi-1.9.14/ext/ffi_c
/usr/bin/ruby -r ./siteconf20161231-11111-14r81gx.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /home/aairey/.vagrant.d/gems/gems/ffi-1.9.14 for inspection.
Results logged to /home/aairey/.vagrant.d/gems/extensions/x86_64-linux/2.3.0/ffi-1.9.14/gem_make.out
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/aairey/.vagrant.d/gems/gems/json-2.0.2/ext/json/ext/generator
/usr/bin/ruby -r ./siteconf20161231-11111-jr8kpy.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /home/aairey/.vagrant.d/gems/gems/json-2.0.2 for inspection.
Results logged to /home/aairey/.vagrant.d/gems/extensions/x86_64-linux/2.3.0/json-2.0.2/gem_make.out
Installing the 'reload' plugin. This can take a few minutes...
Bundler, the underlying system Vagrant uses to install plugins,
reported an error. The error is shown below. These errors are usually
caused by misconfigured plugin installations or transient network
issues. The error from Bundler is:
An error occurred while installing nio4r (1.2.1), and Bundler cannot continue.
Make sure that `gem install nio4r -v '1.2.1'` succeeds before bundling.
Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /root/.vagrant.d/gems/gems/nio4r-1.2.1/ext/nio4r
/usr/bin/ruby -r ./siteconf20161231-8899-1v18y92.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /root/.vagrant.d/gems/gems/nio4r-1.2.1 for inspection.
Results logged to /root/.vagrant.d/gems/extensions/x86_64-linux/2.3.0/nio4r-1.2.1/gem_make.out
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /root/.vagrant.d/gems/gems/ffi-1.9.14/ext/ffi_c
/usr/bin/ruby -r ./siteconf20161231-8899-u1uu2z.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /root/.vagrant.d/gems/gems/ffi-1.9.14 for inspection.
Results logged to /root/.vagrant.d/gems/extensions/x86_64-linux/2.3.0/ffi-1.9.14/gem_make.out
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /root/.vagrant.d/gems/gems/json-2.0.2/ext/json/ext/generator
/usr/bin/ruby -r ./siteconf20161231-8899-1on5kht.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /root/.vagrant.d/gems/gems/json-2.0.2 for inspection.
Results logged to /root/.vagrant.d/gems/extensions/x86_64-linux/2.3.0/json-2.0.2/gem_make.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment