I’ve removed recently rvm and reinstalled it, that worked fine.
But now, when I’m trying to start vim or gvim, I’m getting the following error message:
vim: error while loading shared libraries: libruby.so.1.8: cannot open shared object file: No such file or directory”
Googling wasn’t very helpful for me here.
I’m on Ubuntu 11.10.
Does anyone know this problem or could anyone give me a hint where I should look in detail?
On my Ubuntu system,
vimis compiled against Ruby and the linker/loaderld.so(8)finds thelibruby1.8library here:If you install the
libruby1.8package withsudo apt-get install libruby1.8, then the library will be available for yourvimto use. I do not know whyrvmwould choose to mess with system-supplied Ruby installs but that sounds like a misconfiguration ofrvmto me.Another option is that your
vimwas self-compiled against one specific version of Ruby as managed byrvm. If this is the case, and you liked that setup, then install whatever version of Ruby you want withrvm, rebuild yourvimwith the path to your customized Ruby installation, and re-installvim.(If the preceding paragraph made no sense, I strongly recommend sticking to the distribution-provided
vimpackage.)