Fixing the 'libneon-gnutls.so.27 Missing' Error When Running SVN Commands in Ubuntu
Facing libneon-gnutls.so.27 missing error when running SVN commands in Ubuntu? Here's a step-by-step guide to fix the error and get SVN running smoothly.
Fixing the 'libneon-gnutls.so.27 Missing' Error When Running SVN Commands in Ubuntu
I currently use two Linux systems - a clean Ubuntu installation and a second, somewhat cluttered Ubuntu. The latter, with its clutter, displays the following error when running SVN commands:
svn: error while loading shared libraries: libneon-gnutls.so.27: cannot open shared object file: No such file or directory
This does not mean all Linux systems with this error are cluttered. Let's dive into solving this error without further ado.
Is libneon-gnutls.so.27 Really Missing?
Sometimes, the error message might be misleading. Even if it says 'No such file or directory', it's worth a 10-second check. This library file should exist in /usr/lib, so navigate there and use ls -al | grep libneon to search specifically for libneon related files:
while@ubuntu:/usr/lib$ cd /usr/lib; ls -al | grep libneon
-rw-r--r-- 1 root root 851362 2009-11-06 18:32 libneon-gnutls.a
lrwxrwxrwx 1 root root 24 2011-08-15 03:11 libneon-gnutls.so -> libneon-gnutls.so.27
lrwxrwxrwx 1 root root 17 2011-08-15 03:15 libneon-gnutls.so.27 -> libneon-gnutls.so.27.2.0
These symbolic links suggest the presence of libneon-gnutls.so.27. However, it actually points to the missing libneon-gnutls.so.27.2.0 file, hence the error.
Installing libneon-gnutls
The ultimate goal is to restore the missing file. The usual step is to use apt-get to install the package:
apt-cache search libneon
You'll find packages like libneon25, libneon26, libneon27, etc. Since the missing file has so.27, we pick libneon27:
libneon27 - An HTTP and WebDAV client library
libneon27-dbg - Detached symbols for libneon27
libneon27-dev - Header and static library files for libneon27
libneon27-gnutls - An HTTP and WebDAV client library (GnuTLS enabled)
libneon27-gnutls-dbg - Detached symbols for libneon27 (GnuTLS enabled)
libneon27-gnutls-dev - Header and static library files for libneon27 (GnuTLS enabled)
We need libneon27-gnutls-dev. Install it with:
apt-get install libneon27-gnutls-dev
After installation, try running svn. If you receive a prompt for svn help, you're on the right track. Test with svn co to see if the issue is resolved.
If The Error Persists, Install libneon27-dev
If the same error occurs, the .so.27 file might still be missing from /usr/lib. My solution was:
apt-get install libneon27-dev
After installation, running ls /usr/lib | grep libneon should show the non-gnutls files as well. Then, link the necessary files:
cd /usr/lib; ln -s libneon.so.27 libneon-gnutls.so.27
Now, running SVN should work.
Further Errors
If you're still facing issues, consider reformatting and reinstalling or giving up on SVN.
Installing an SVN Server on Ubuntu (Based on Apache)
A detailed guide on setting up an Apache-based SVN server on Ubuntu, including installation, configuration, and security settings.
Resolving 'Failed to Open Stream: Permission Denied' in Apache + PHP
Resolve 'failed to open stream: Permission Denied' in Apache+PHP environments by adjusting security context using chcon.
Replacing OpenJDK with Oracle JDK on Ubuntu
Learn how to replace OpenJDK with Oracle JDK for enhanced performance on Ubuntu systems. Follow our step-by-step guide for downloading and installation.