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/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
# and
locate libldap_r-2.4.so.2
You might need to do
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…)
Related Posts
In: Server Config, Ubuntu Tricks · Tagged with: git
on March 19, 2011 at 9:58 pm
Permalink
The same error like you.
Many thanks.