My vim and cream can't work!

i have installed vim and cream,Make install ruby myself.
now ,in my console:
pt@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@pt-laptop:~$ vi
vi: error while loading shared libraries: libruby1.8.so.1.8: cannot open
shared object file: No such file or directory

sudo find /usr/share -name ‘cream’
/usr/share/vim/cream
/usr/share/doc/cream
/usr/share/cream
/usr/share/menu/cream

Pen T. wrote:

i have installed vim and cream,Make install ruby myself.
now ,in my console:
pt@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@pt-laptop:~$ vi
vi: error while loading shared libraries: libruby1.8.so.1.8: cannot open
shared object file: No such file or directory

sudo find /usr/share -name ‘cream’
/usr/share/vim/cream
/usr/share/doc/cream
/usr/share/cream
/usr/share/menu/cream

Which distribution are you using? My guess is Ubuntu, but I am not sure.
Which ruby package did you install?

ubuntu9.1,
pt@pt-laptop:~$ ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux]

Pen T. wrote:

i have installed vim and cream,Make install ruby myself.
now ,in my console:
pt@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@pt-laptop:~$ vi
vi: error while loading shared libraries: libruby1.8.so.1.8: cannot open
shared object file: No such file or directory

If you installed ruby by compiling it from source code, you will
probably need to run (as root) ldconfig to update the library cache.

Steve

in order to run (as root) ldconfig to update the library cache,how to
input command in my console?

Pen T. 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

On 4/15/2010 7:59 AM, Pen T. wrote:

pt@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@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@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’