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/ no version information available (required by /usr/lib/” 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/ /usr/local/lib/
sudo ln -fs /usr/lib/ /usr/local/lib/

So if you have the following problems when using git

git: /usr/local/lib/ no version information available (required by /usr/lib/
git: /usr/local/lib/ no version information available (required by /usr/lib/

Try out my solution above.  If that doesn’t work then look for where ‘’ and ‘’ by doing

# and

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

    The same error like you.

    Many thanks.

Leave a Reply