ruby gems that use readline report error opening readline.so

Bug #968882 reported by Kensey
6
This bug affects 1 person
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("/usr/lib/ruby/1.8/x86_64-linux/readline.so", O_RDONLY) = 3

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-2ubuntu0.1
ProcVersionSignature: Ubuntu 2.6.32-40.87-generic 2.6.32.57+drm33.23
Uname: Linux 2.6.32-40-generic x86_64
NonfreeKernelModules: fglrx
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

Revision history for this message
Kensey (ubuntu-orion-com) wrote :
Revision history for this message
magor (root-sweetismarvelous) wrote :

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.

Revision history for this message
dino99 (9d9) wrote :

That version is no more supported; and no expecting backport as it only concern 'security' problem.

Changed in ruby1.8 (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.