vmware-archive / rvc

RVC is a Linux console UI for vSphere, built on the RbVmomi bindings to the vSphere API.
MIT License
240 stars 48 forks source link

datastore.upload issue #2

Closed jasonbrooks closed 13 years ago

jasonbrooks commented 13 years ago

With rvc version 1.3.6 (also experienced this w/ v 1.3.4), uploading a file from my 64-bit Ubuntu 11.04 client to a vmfs datastore gives this error:

NoMethodError: undefined method spawn' for #<RbVmomi::VIM::Datastore:0x7f2ce01bdf50> /var/lib/gems/1.8/gems/rbvmomi-1.2.3/lib/rbvmomi/vim/Datastore.rb:44:inupload' /var/lib/gems/1.8/gems/rvc-1.3.6/lib/rvc/modules/datastore.rb:46:in upload' /var/lib/gems/1.8/gems/rvc-1.3.6/lib/rvc/shell.rb:109:insend' /var/lib/gems/1.8/gems/rvc-1.3.6/lib/rvc/shell.rb:109:in eval_command' /var/lib/gems/1.8/gems/rvc-1.3.6/lib/rvc/shell.rb:56:ineval_input' /var/lib/gems/1.8/gems/rvc-1.3.6/bin/rvc:120 /var/lib/gems/1.8/bin/rvc:19:in `load' /var/lib/gems/1.8/bin/rvc:19

dougm commented 13 years ago

I ran into this too.. need ruby 1.9 for the Kernel.spawn method. btw: highly recommend using rvm if you don't want to install 1.9 system wide.

jasonbrooks commented 13 years ago

OK, updating my ruby to 1.9.1 addressed this for me -- I don't have any reason not to be on 1.9.1, other than this is the default pkg on ubuntu.