fjsanpedro / vagrant-node

A Vagrant plugin to set a computer as a node in a client/server infraestructure
Other
33 stars 9 forks source link

vagrant-node install breaks vagrant installation #1

Closed smousa closed 10 years ago

smousa commented 10 years ago

Tried this on fedora 18 & windows 7, but am seeing this message when I run the vagrant command:

$ vagrant C:/HashiCorp/Vagrant/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': cannot load such file -- zip/zip (LoadError) from C:/HashiCorp/Vagrant/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from C:/Users/Summer/.vagrant.d/gems/gems/vagrant-node-0.0.2/lib/vagrant-node/actions/snapshot.rb:4:in <top (required)>' from C:/HashiCorp/Vagrant/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from C:/HashiCorp/Vagrant/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from C:/Users/Summer/.vagrant.d/gems/gems/vagrant-node-0.0.2/lib/vagrant-node/clientcontroller.rb:3:in<top (required)>' from C:/HashiCorp/Vagrant/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from C:/HashiCorp/Vagrant/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from C:/Users/Summer/.vagrant.d/gems/gems/vagrant-node-0.0.2/lib/vagrant-node/api.rb:5:in <top (required)>' from C:/HashiCorp/Vagrant/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from C:/HashiCorp/Vagrant/embedded/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from C:/Users/Summer/.vagrant.d/gems/gems/vagrant-node-0.0.2/lib/vagrant-node/nodeservercommand.rb:2:in<top (required)>' from C:/Users/Summer/.vagrant.d/gems/gems/vagrant-node-0.0.2/lib/vagrant-node.rb:14:in require_relative' from C:/Users/Summer/.vagrant.d/gems/gems/vagrant-node-0.0.2/lib/vagrant-node.rb:14:inblock in class:Plugin' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/registry.rb:27:in call' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/registry.rb:27:inget' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/registry.rb:41:in block in each' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/registry.rb:40:ineach' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/registry.rb:40:in each' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/cli.rb:59:inblock in help' from C:/HashiCorp/Vagrant/embedded/lib/ruby/1.9.1/optparse.rb:882:in initialize' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/cli.rb:48:innew' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/cli.rb:48:in help' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/cli.rb:32:inexecute' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.3/lib/vagrant/environment.rb:478:in cli' from C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.3.3/bin/vagrant:96:in<top (required)>' from C:/HashiCorp/Vagrant/embedded/gems/bin/vagrant:23:in load' from C:/HashiCorp/Vagrant/embedded/gems/bin/vagrant:23:in

'

fjsanpedro commented 10 years ago

Hello,

this problem comes from the fact that the interface in rubyzip has changed in versions after the 0.9.9. To solve this problem you have to edit the vagrant-node.gemspec and change the line from spec.add_dependency "rubyzip" to spec.add_dependency "rubyzip", '< 1.0.0'.

But before you make that change you have the remove the vagrant-node plugin doing the command: vagrant plugin uninstall vagrant-node

In the following release of the plugin this problem is fixed.

Regards

smousa commented 10 years ago

Thanks for the assistance, that worked perfectly.