As per the Ubuntu documentation - the only way to permanently set LD_LIBRARY_PATH
is by adding a conf file to /etc/ld.so.conf.d/
If I manually run export LD_LIBRARY_PATH=~/nextcloudapp/squashfs-root/usr/lib
then the libraries in that path are accessible and I'm able to run my program.
If I edit /etc/ld.so.conf.d/nextcloudlibs.conf
and add /home/me/nextcloudapp/squashfs-root/usr/lib/
and then run sudo ldconfig
I get the following error:
/sbin/ldconfig.real: /home/me/nextcloudapp/squashfs-root/usr/lib/libnextcloud_csync.so.0 is not a symbolic link
Is there any way to resolve that error?
Looking at the file listing, it does appear to be a symbolic link:
lrwxrwxrwx 1 me me 23 Mar 31 23:34 libnextcloud_csync.so -> libnextcloud_csync.so.0
-rw-r--r-- 1 me me 1202224 Mar 31 23:34 libnextcloud_csync.so.0
The libraries are extracted from an AppImage, if that makes a difference?
Running Ubuntu 22.04.2 - lots of the previous answers are for older versions of Ubuntu.
libnextcloud_csync.so -> libnextcloud_csync.so.0
, but becauselibnextcloud_csync.so.0
isn't a further symlink to something likelibnextcloud_csync.so.0.3
.echo $LD_LIBRARY_PATH
nothing is returned.ld.so.conf
is the "system" way of locating libraries, whereasLD_LIBRARY_PATH
is a separate kludge for making user- or application-specific library specifications