fgrehm/vagrant-lxc

Vagrant-LXC plugin install fails at Ubuntu 16.10 with vagrant Vagrant 1.8.5

HenrikBach1 opened this issue · 1 comments

Hi,

I'm trying to install the plugin, but something fails:

"------------------
vagrant plugin install vagrant-lxc
Installing the 'vagrant-lxc' 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/sad/.vagrant.d/gems/gems/ffi-1.9.14/ext/ffi_c

/usr/bin/ruby2.3 -r ./siteconf20170104-11606-1mwelwd.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /home/sad/.vagrant.d/gems/gems/ffi-1.9.14 for inspection.
Results logged to /home/sad/.vagrant.d/gems/extensions/x86_64-linux/2.3.0/ffi-1.9.14/gem_make.out

sad@ub170104:$ bundler --version
Bundler version 1.12.5
sad@ub170104:
$ vagrant --version
Vagrant 1.8.5
sad@ub170104:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.10
Release: 16.10
Codename: yakkety
------------------"

What am I doing wrong?

/Henrik

Well, I really don't know where the problem is, but after having done the preparations for the libvirt plugin (https://github.com/vagrant-libvirt/vagrant-libvirt#installation), then I was able to install the lxc plugin.

/Henrik