From 93ab16ce8f8247ba6e76f0eff502f0397bdf3d2f Mon Sep 17 00:00:00 2001 From: fr0sty Date: Thu, 31 Oct 2013 12:46:13 -0400 Subject: [PATCH] Offer solution for "error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory" Offer solution for "error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory" --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 94515a9..1e92ac5 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,10 @@ To compile, first generate the configure script by running the ```autoreconf -i` Then execute the configure script (you'll probably have to pass it the location of your dependency libraries, i.e.): ``` ./configure --prefix=/where/to/install --with-libtoxcore-headers=/path/to/ProjectTox-Core/core --with-libtoxcore-libs=/path/to/ProjectTox-Core/build/core --with-libsodium-headers=/path/to/libsodium/include/ --with-libsodium-libs=/path/to/sodiumtest/lib/ + +``` +*Note:* If your default prefix is /usr/local and you happen to get an error that says "error while loading shared libraries: libtoxcore.so.0: cannot open shared object file: No such file or directory", then you can try running ```sudo ldconfig```. If that doesn't fix it, run: +``` +sudo echo "/usr/local/lib/" >> /etc/ld.so.conf.d/locallib.conf +sudo ldconfig +```