Git /usr/local/lib/liblber & /usr/local/lib/libldap_r no version information available error

I just updated my system today and rebooted (I like to reboot once a couple weeks…) and git started freeking out on me.

I tried to git add ap [tab tab] but “git: /usr/local/lib/liblber-2.4.so.2: no version information available (required by /usr/lib/libcurl-gnutls.so.4)” would pop up before the auto-complete and mess everything up. I could continue without autocomplete but thats not a console I want to be in.  I need my terminal to give me auto complete!

I fixed it by

sudo ln -fs /usr/lib/liblber-2.4.so.2 /usr/local/lib/
sudo ln -fs /usr/lib/libldap_r-2.4.so.2 /usr/local/lib/

So if you have the following problems when using git

git: /usr/local/lib/liblber-2.4.so.2: no version information available (required by /usr/lib/libcurl-gnutls.so.4)
git: /usr/local/lib/libldap_r-2.4.so.2: no version information available (required by /usr/lib/libcurl-gnutls.so.4)

Try out my solution above.  If that doesn’t work then look for where ‘liblber-2.4.so.2’ and ‘libldap_r-2.4.so.2’ by doing

locate liblber-2.4.so.2
# and
locate libldap_r-2.4.so.2

You might need to do

sudo updatedb

first to update your search index.  If you don’t have locate installed then get it!

Once you have found the offending files you can symlink to them using the example above (the first one).  You will likely find a few, I suggest checking them all with ‘ls -la’ to make sure your not linking to the wrong one (that being one which is a symlink to nowhere…)

Posted on April 1, 2010 at 10:28 am by Jordan Carter · Permalink
In: Server Config, Ubuntu Tricks · Tagged with: 

One Response

  1. Written by King star
    on March 19, 2011 at 9:58 pm
    Permalink

    The same error like you.

    Many thanks.

Leave a Reply