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

vmrc.install fails #5

Closed davewongillies closed 13 years ago

davewongillies commented 13 years ago

This had worked in previous versions of rvc but seems to be broken now.

vmrc.install Downloading VMRC... Checking integrity... Installing VMRC... Errno::ENOENT: No such file or directory - /tmp/vmware-vmrc-linux-x86-3.0.0-309851/plugins/lib/libstartup-notification-1.so.0/libstartup-notification-1.so.0 (eval):3:in initialize' (eval):3:inopen_without_potential_path_argument' (eval):3:in open' /home/dgillies/.gem/ruby/1.8/gems/zip-2.0.2/lib/zip/zip.rb:840:inwrite_file' /home/dgillies/.gem/ruby/1.8/gems/zip-2.0.2/lib/zip/zip.rb:471:in extract' /home/dgillies/.gem/ruby/1.8/gems/zip-2.0.2/lib/zip/zip.rb:1476:inextract' /var/lib/gems/1.8/gems/rvc-1.3.6/lib/rvc/modules/vmrc.rb:146:in extract' /home/dgillies/.gem/ruby/1.8/gems/zip-2.0.2/lib/zip/zip.rb:1128:ineach' /home/dgillies/.gem/ruby/1.8/gems/zip-2.0.2/lib/zip/zip.rb:1128:in each' /home/dgillies/.gem/ruby/1.8/gems/zip-2.0.2/lib/zip/zip.rb:1271:ineach' /var/lib/gems/1.8/gems/rvc-1.3.6/lib/rvc/modules/vmrc.rb:142:in extract' /home/dgillies/.gem/ruby/1.8/gems/zip-2.0.2/lib/zip/zip.rb:1387:inopen' /var/lib/gems/1.8/gems/rvc-1.3.6/lib/rvc/modules/vmrc.rb:141:in extract' /var/lib/gems/1.8/gems/rvc-1.3.6/lib/rvc/modules/vmrc.rb:102:ininstall' /var/lib/gems/1.8/gems/rvc-1.3.6/lib/rvc/shell.rb:109:in send' /var/lib/gems/1.8/gems/rvc-1.3.6/lib/rvc/shell.rb:109:ineval_command' /var/lib/gems/1.8/gems/rvc-1.3.6/lib/rvc/shell.rb:56:in eval_input' /var/lib/gems/1.8/gems/rvc-1.3.6/bin/rvc:120 /home/dgillies/.gem/ruby/1.8/bin/rvc:19:inload' /home/dgillies/.gem/ruby/1.8/bin/rvc:19

rlane commented 13 years ago

Are you running a 64-bit OS? Does /tmp/vmware-vmrc-linux-x86-3.0.0-309851/plugins/lib/libstartup-notification-1.so.0/libstartup-notification-1.so.0 exist? If so, what does ldd say about its dependencies?

davewongillies commented 13 years ago

Oh sorry. So yeah, Ubuntu 10.10 x86_64. ruby 1.8.7.

$ ldd plugins/lib/libstartup-notification-1.so.0/libstartup-notification-1.so.0 linux-gate.so.1 => (0xf77dd000) libSM.so.6 => /usr/lib32/libSM.so.6 (0xf77a2000) libICE.so.6 => /usr/lib32/libICE.so.6 (0xf7789000) libX11.so.6 => /usr/lib32/libX11.so.6 (0xf766b000) libc.so.6 => /lib32/libc.so.6 (0xf7510000) libuuid.so.1 => /lib32/libuuid.so.1 (0xf750b000) libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf74f1000) libdl.so.2 => /lib32/libdl.so.2 (0xf74ed000) /lib/ld-linux.so.2 (0xf77de000) libXau.so.6 => /usr/lib32/libXau.so.6 (0xf74e8000) libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf74e2000)

bisscuitt commented 13 years ago

I have a possible work around to this issue:

  1. run vmrc.install command in vrc
  2. Unpack the xpi file manually
    $ cd /tmp/vmware-vmrc-linux-x86-3.0.0-309851
    $ unzip ../vmware-vmrc-linux-x86-3.0.0-309851.xpi
    
  3. Then delete all files we just extracted, preserving the original directory structure.
    $ cd /tmp/vmware-vmrc-linux-x86-3.0.0-309851
    $ find . -type f -exec rm -f {} \;
    
  4. run vmrc.install command in vrc:
    > vmrc.install
    Downloading VMRC...
    Checking integrity...
    Installing VMRC...
    VMRC was installed successfully.
    
rlane commented 13 years ago

Looks like it's iterating over the zipfile entries in the wrong order on Ruby 1.8.