kprasanna_79 has asked for the wisdom of the Perl Monks concerning the following question:

Hai
I am using fc3. I removed perl 5.8.5 and installed again.
When i tried to open vi it says the following error
vim: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory
Any solution from anybody???

Sorry if its not a perl related stuff
--prasanna.k

Replies are listed 'Best First'.
Re: vim opening error
by gellyfish (Monsignor) on Feb 16, 2005 at 09:21 UTC

    Vim has a perl plugin as you have just noticed. It is probable that the original Perl was made with a dynamic libperl.so which the vim was using, whereas the new one is either statically linked (or has installed the libperl.so somewhere different.) Probably your best bet is to rebuild your Vim from source.

    A top tip when dealling with systems that come with a preinstalled packaged Perl is never to upgrade the perl by overwriting the existing one but rather leave the old one in place and install the new perl with a new prefix.

    /J\

Re: vim opening error
by PodMaster (Abbot) on Feb 16, 2005 at 09:22 UTC
    When i tried to open vi it says the following error ... Any solution from anybody???
    What do you understand the error to mean?

    Can perl find libperl.so (does perl -V work)?

    Try setting LD_LIBRARY_PATH to include the path to libperl.so

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: vim opening error
by Courage (Parson) on Feb 16, 2005 at 12:18 UTC
    your VIM was compiled with perl support but you do not have perl installed.

    May be you need to do 'rpm' install for it, or just rebuild vim without perl support.