ruby gems that use readline report error opening readline.so
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ruby1.8 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Background: I have been using rvc to manage an ESXi server -- this is a Ruby gem that called an API to talk to the server. It wants ffi for better tab completion, so I also have libffi-ruby installed.
Now whenever I run rvc, I get this:
Error loading readline-ffi: Could not open library 'libreadline.so': libreadline.so: cannot open shared object file: No such file or directory. Could not open library 'readline.so': readline.so: cannot open shared object file: No such file or directory. Tab completion will be limited.
However, when I strace rvc to see where it's looking for readline and/or libreadline, I actually see this several times in the output:
open("/
So readline.so *is* there and ruby *can* (and does) load it, but I am still getting this error. I'm not sure if it's a bug in the rvc code, or the ruby runtime itself, but I suspect the runtime so I'm filing it here.
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: ruby1.8 1.8.7.249-
ProcVersionSign
Uname: Linux 2.6.32-40-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Fri Mar 30 02:05:41 2012
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ruby1.8
It's a hack, but it doesn't show the error anymore:
cd /lib/x86_ 64-linux- gnu/
sudo ln -s libreadline.so.6 libreadline.so
sudo ldconfig
I haven't tested rvc, I just know it doesn't give the ffi error anymore.
Good luck.