Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Error when connecting to any vcenter or esx host. #65

Open
dbrandonjohnson opened this issue Oct 22, 2012 · 4 comments
Open

Error when connecting to any vcenter or esx host. #65

dbrandonjohnson opened this issue Oct 22, 2012 · 4 comments

Comments

@dbrandonjohnson
Copy link

I'm getting this error on my mac. I have ffi 1.1.5 installed....

Error loading readline-ffi: Could not open library 'libreadline.so.dylib': dlopen(libreadline.so.dylib, 5): image not found.
Could not open library 'readline.so': dlopen(readline.so, 5): image not found. Tab completion will be limited.
/Library/Ruby/Gems/1.8/gems/rvc-1.7.0/lib/rvc/modules/vds.rb:662:in load_code': compile error (SyntaxError) /Library/Ruby/Gems/1.8/gems/rvc-1.7.0/lib/rvc/modules/vds.rb:657: syntax error, unexpected ')' from /Library/Ruby/Gems/1.8/gems/rvc-1.7.0/lib/rvc/namespace.rb:104:inload_module_dir'
from /Library/Ruby/Gems/1.8/gems/rvc-1.7.0/lib/rvc/namespace.rb:92:in foreach' from /Library/Ruby/Gems/1.8/gems/rvc-1.7.0/lib/rvc/namespace.rb:92:inload_module_dir'
from /Library/Ruby/Gems/1.8/gems/rvc-1.7.0/lib/rvc/shell.rb:228:in reload_modules' from /Library/Ruby/Gems/1.8/gems/rvc-1.7.0/lib/rvc/shell.rb:227:ineach'
from /Library/Ruby/Gems/1.8/gems/rvc-1.7.0/lib/rvc/shell.rb:227:in reload_modules' from /Library/Ruby/Gems/1.8/gems/rvc-1.7.0/bin/rvc:63 from /usr/bin/rvc:19:inload'
from /usr/bin/rvc:19

@dbrandonjohnson
Copy link
Author

Here is my ruby version as well.

ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]

@rykerwilliams
Copy link

Have the same problem on Ubuntu Precise 12.04. Reading elsewhere, the ffi error doesn't matter right? Just the vds error?

ruby user@host

Error loading readline-ffi: Could not open library 'readline.so': readline.so: cannot open shared object file: No such file or directory.
Could not open library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory. Tab completion will be limited.
/var/lib/gems/1.8/gems/rvc-1.7.0/lib/rvc/modules/vds.rb:662:in load_code': compile error (SyntaxError) /var/lib/gems/1.8/gems/rvc-1.7.0/lib/rvc/modules/vds.rb:657: syntax error, unexpected ')' from /var/lib/gems/1.8/gems/rvc-1.7.0/lib/rvc/namespace.rb:104:inload_module_dir'
from /var/lib/gems/1.8/gems/rvc-1.7.0/lib/rvc/namespace.rb:92:in foreach' from /var/lib/gems/1.8/gems/rvc-1.7.0/lib/rvc/namespace.rb:92:inload_module_dir'
from /var/lib/gems/1.8/gems/rvc-1.7.0/lib/rvc/shell.rb:228:in reload_modules' from /var/lib/gems/1.8/gems/rvc-1.7.0/lib/rvc/shell.rb:227:ineach'
from /var/lib/gems/1.8/gems/rvc-1.7.0/lib/rvc/shell.rb:227:in reload_modules' from /var/lib/gems/1.8/gems/rvc-1.7.0/bin/rvc:63 from /usr/local/bin/rvc:19:inload'
from /usr/local/bin/rvc:19

ruby -v
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

@codemonkeyjohn
Copy link
Contributor

To fix the vds error, remove the comma at the end of line 656 in /Library/Ruby/Gems/1.8/gems/rvc-1.7.0/lib/rvc/modules/vds.rb.

rvc should work without fixing ffi, but I was able to get it to work by installing the readline package using MacPorts and adding the following line to my .bashrc :
export RVC_READLINE=/opt/local/lib/libreadline.dylib

@jessehu
Copy link

jessehu commented Oct 22, 2014

"export RVC_READLINE=/opt/local/lib/libreadline.dylib" works on my Ruby 2.0.0p247 on OS X 10.7.5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants