Libruby1.8.so.1.8

I have been using Ubuntu 10.04 for about a year now and have Ruby (ruby
1.8.7 (2009-06-12 patchlevel 174) [i686-linux]), Ruby on Rails and Hobo
installed on the system.

I needed to add a new user but none of the buttons on the gui responded.

Being impatient, I switched to the command line and successfully added
the user/group with adduser. Was able to log in as the new user.

The new user needs to be a sudoer so I switched back to the primary user
and tried to use visudo. I get the following error:

editor: error while loading shared libraries: libruby1.8.so.1.8: cannot
open shared object file: No such file or directory

Using find / -name libruby1.8.so.1.8:

tried apt-get install libruby which gave the following:
Reading package lists… Done
Building dependency tree
Reading state information… Done
libruby is already the newest version.

A Google search suggested using ldconfig which I did.

visudo still gives same error and find still doesn’t see
libruby1.8.so.1.8

What am I missing?

Thanks

Found quick fix to make a user a sudoer without all of the above stuff.

Add the new user to the sudo group and the next time the new user logs
in, the sudo command works.

I did find that even vi presents the same libruby missing error on that
system, though.

Don Z. wrote in post #1009946:

I get the following error:

editor: error while loading shared libraries: libruby1.8.so.1.8: cannot
open shared object file: No such file or directory

This is a Unix sysadmin question.

visudo is looking at your EDITOR or VISUAL environment variable, and
this in turn is pointing to some application linked against that
particular ruby library.

printenv | grep EDITOR
printenv | grep VISUAL

Look at what’s set, then use ‘ldd’ to show the libraries linked against
it.

I don’t know of any editors written in ruby or linked against ruby, but
you’d probably be better off choosing a different one.

As for where the file is, it should be part of the libruby1.8 package:
on my system,

$ dpkg-query -L libruby1.8 | grep libruby1\.8\.so
/usr/lib/libruby1.8.so.1.8.7
/usr/lib/libruby1.8.so.1.8

Regards,

Brian.