【问题标题】:Cannot install vagrant-chef library in ubuntu 14.04无法在 ubuntu 14.04 中安装 vagrant-chef 库
【发布时间】:2014-10-19 00:28:21
【问题描述】:

我最近了解了 vagrant,所以我想我为什么不尝试一下。我想为 Rails 开发设置 vagrant。我成功安装了 virtualbox,vagrant,并且我成功安装了 vagrant plugin install vagrant-vbguest 然后当我尝试 **vagrant plugin install vagrant-librarian-chef ** 它给了我错误。
以下是错误

bishisht@bishisht:~$ vagrant plugin install vagrant-librarian-chef
Installing the 'vagrant-librarian-chef' plugin. This can take a few minutes...
/usr/lib/ruby/1.9.1/rubygems/installer.rb:562:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from extconf.rb:4:in `<main>'


Gem files will remain installed in /home/bishisht/.vagrant.d/gems/gems/ffi-1.9.5 for inspection.
Results logged to /home/bishisht/.vagrant.d/gems/gems/ffi-1.9.5/ext/ffi_c/gem_make.out
    from /usr/lib/ruby/1.9.1/rubygems/installer.rb:540:in `block in build_extensions'
    from /usr/lib/ruby/1.9.1/rubygems/installer.rb:515:in `each'
    from /usr/lib/ruby/1.9.1/rubygems/installer.rb:515:in `build_extensions'
    from /usr/lib/ruby/1.9.1/rubygems/installer.rb:180:in `install'
    from /usr/lib/ruby/1.9.1/rubygems/dependency_installer.rb:297:in `block in install'
    from /usr/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `each'
    from /usr/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `each_with_index'
    from /usr/lib/ruby/1.9.1/rubygems/dependency_installer.rb:270:in `install'
    from /usr/share/vagrant/plugins/commands/plugin/action/install_gem.rb:65:in `block in call'
    from /usr/share/vagrant/plugins/commands/plugin/gem_helper.rb:42:in `block in with_environment'
    from /usr/lib/ruby/1.9.1/rubygems/user_interaction.rb:40:in `use_ui'
    from /usr/share/vagrant/plugins/commands/plugin/gem_helper.rb:41:in `with_environment'
    from /usr/share/vagrant/plugins/commands/plugin/action/install_gem.rb:52:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/share/vagrant/plugins/commands/plugin/action/bundler_check.rb:20:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/warden.rb:34:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/builder.rb:116:in `call'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `block in run'
    from /usr/lib/ruby/vendor_ruby/vagrant/util/busy.rb:19:in `busy'
    from /usr/lib/ruby/vendor_ruby/vagrant/action/runner.rb:69:in `run'
    from /usr/share/vagrant/plugins/commands/plugin/command/base.rb:17:in `action'
    from /usr/share/vagrant/plugins/commands/plugin/command/install.rb:27:in `execute'
    from /usr/share/vagrant/plugins/commands/plugin/command/root.rb:56:in `execute'
    from /usr/lib/ruby/vendor_ruby/vagrant/cli.rb:38:in `execute'
    from /usr/lib/ruby/vendor_ruby/vagrant/environment.rb:484:in `cli'
    from /usr/bin/vagrant:127:in `<main>'

【问题讨论】:

    标签: ubuntu ruby-on-rails-4 vagrant chef-infra


    【解决方案1】:

    看起来您需要“mkmf”Ruby gem 和其他构建工具才能继续。

    【讨论】:

      猜你喜欢
      • 2015-03-08
      • 1970-01-01
      • 2018-04-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-21
      • 1970-01-01
      相关资源
      最近更新 更多