BerlinVagrant / vagrant-dns

A plugin to manage DNS records for vagrant environments
MIT License
490 stars 50 forks source link

Installation fails with vagrant 1.4.3 #29

Closed msteinhoff closed 10 years ago

msteinhoff commented 10 years ago

So I thought hey, lets upgrade to vagrant 1.4.3, what can possibly go wrong?

It then complained that vagrant-dns was installed for an earlier version and needs to be upgraded, so I did a plugin reinstall, and while thinking what could possibly go wrong I was greeted with this friendly stacktrace:

$ vagrant plugin install vagrant-dns
Installing the 'vagrant-dns' plugin. This can take a few minutes...
/Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/ext/builder.rb:62:in `run': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

    /Applications/Vagrant/embedded/bin/ruby extconf.rb
/Applications/Vagrant/embedded/bin/ruby: invalid switch in RUBYOPT: -S (RuntimeError)

Gem files will remain installed in /Users/msteinhoff/.vagrant.d/gems/gems/eventmachine-1.0.3 for inspection.
Results logged to /Users/msteinhoff/.vagrant.d/gems/gems/eventmachine-1.0.3/ext/gem_make.out
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:39:in `block in build'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/tempfile.rb:324:in `open'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/ext/ext_conf_builder.rb:19:in `build'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/installer.rb:689:in `block (3 levels) in build_extensions'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/installer.rb:688:in `chdir'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/installer.rb:688:in `block (2 levels) in build_extensions'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/installer.rb:687:in `synchronize'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/installer.rb:687:in `block in build_extensions'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/installer.rb:662:in `each'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/installer.rb:662:in `build_extensions'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/installer.rb:227:in `install'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_installer.rb:379:in `block in install'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_installer.rb:339:in `each'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_installer.rb:339:in `each_with_index'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/dependency_installer.rb:339:in `install'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/action/install_gem.rb:65:in `block in call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/gem_helper.rb:42:in `block in with_environment'
    from /Applications/Vagrant/embedded/lib/ruby/2.0.0/rubygems/user_interaction.rb:40:in `use_ui'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/gem_helper.rb:41:in `with_environment'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/action/install_gem.rb:52:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/action/bundler_check.rb:20:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/warden.rb:34:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/builder.rb:116:in `call'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:69:in `block in run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/util/busy.rb:19:in `busy'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/action/runner.rb:69:in `run'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/command/base.rb:17:in `action'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/command/install.rb:27:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/plugins/commands/plugin/command/root.rb:56:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/cli.rb:38:in `execute'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/lib/vagrant/environment.rb:484:in `cli'
    from /Applications/Vagrant/embedded/gems/gems/vagrant-1.4.3/bin/vagrant:127:in `<top (required)>'
    from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in `load'
    from /Applications/Vagrant/bin/../embedded/gems/bin/vagrant:23:in `<main>'

I'm not a rubyist and don't have any idea what exactly went wrong but I will gladly help doing any troubleshooting steps.

msteinhoff commented 10 years ago

Just tried this with vagrant 1.6.3 and vagrant-dns 0.5.0 and everything is working fine again :)