# Libruby1.8.so.1.8

**URL:** <https://www.ruby-forum.com/t/libruby1-8-so-1-8/209283>\
**Category:** Ruby\
**Created:** [July 10, 2011, 5:16pm UTC](https://www.ruby-forum.com/t/libruby1-8-so-1-8/209283 "2011-07-10T17:16:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [July 10, 2011, 5:16pm UTC](https://www.ruby-forum.com/t/libruby1-8-so-1-8/209283/1 "2011-07-10T17:16:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![donz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/9e8a1a/32.png) [@donz](https://www.ruby-forum.com/u/donz)\
**Post date:** [July 10, 2011, 5:46pm UTC](https://www.ruby-forum.com/t/libruby1-8-so-1-8/209283/2 "2011-07-10T17:46:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![donz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/9e8a1a/32.png) [@donz](https://www.ruby-forum.com/u/donz)\
**Post date:** [July 10, 2011, 7:13pm UTC](https://www.ruby-forum.com/t/libruby1-8-so-1-8/209283/3 "2011-07-10T19:13:35Z")

</div>

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.
