From: Walton Hoops on
On 4/15/2010 7:59 AM, Pen Ttt wrote:

> pt(a)pt-laptop:~$ vim
> vim: error while loading shared libraries: libruby1.8.so.1.8: cannot
> open shared object file: No such file or directory
> pt(a)pt-laptop:~$ vi
> vi: error while loading shared libraries: libruby1.8.so.1.8: cannot open
> shared object file: No such file or directory
>

> ubuntu9.1,
> pt(a)pt-laptop:~$ ruby -v
> ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]
>
>
Notice, you have ruby 1.9.1 installed, and it's looking for libruby1.8.
Assuming you are running a Debian derivative, just do:
'sudo apt-get install libruby1.8'

From: Steve Masta on
Pen Ttt wrote:
> in order to run (as root) ldconfig to update the library cache,how to
> input command in my console?

Either use the su command to become root and then run ldconfig or you
might be able to run sudo /sbin/ldconfig

I don't use Ubuntu, so things may be different for you.

Steve