Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
/opt/spotify/usr/bin/spotify: error while loading shared libraries: libnettle.so.6: cannot open shared object file: No such file or directory
Solved! Go to Solution.
UPDATE: I managed to solve the issue, thanks to Giacomo (https://github.com/jak3)
The Spotify in the sbopkg for Slackware-current has the file /opt/spotify/usr/lib/libcurl-gnutls.so.4 linked to libcurl-gnutls.so.4.5.0 in the same folder, so Giacomo suggested to create a symlink libcurl-gnutls.so.4 to /usr/lib64/libcurl.so, so I renamed the libcurl-gnutls.so.4 to libcurl-gnutls.so.4.bkp
mv /opt/spotify/usr/lib/libcurl-gnutls.so.4 /opt/spotify/usr/lib/libcurl-gnutls.so.4.bkp
and created a symlink to /usr/lib64/libcurl.so
ln -sf /usr/lib64/libcurl.so /opt/spotify/usr/lib/libcurl-gnutls.so.4
and worked 😄
The current version of the package is 1:1.1.5.153.gf614956d-16 - have you tried updating?
Have you tried installing/updating nettle package?
Just saying...
UPDATE: I managed to solve the issue, thanks to Giacomo (https://github.com/jak3)
The Spotify in the sbopkg for Slackware-current has the file /opt/spotify/usr/lib/libcurl-gnutls.so.4 linked to libcurl-gnutls.so.4.5.0 in the same folder, so Giacomo suggested to create a symlink libcurl-gnutls.so.4 to /usr/lib64/libcurl.so, so I renamed the libcurl-gnutls.so.4 to libcurl-gnutls.so.4.bkp
mv /opt/spotify/usr/lib/libcurl-gnutls.so.4 /opt/spotify/usr/lib/libcurl-gnutls.so.4.bkp
and created a symlink to /usr/lib64/libcurl.so
ln -sf /usr/lib64/libcurl.so /opt/spotify/usr/lib/libcurl-gnutls.so.4
and worked 😄
Reply for somnophobe
Because the Spotify is built for Ubuntu, it has some libraries which don't exist in the Slackware, so the latest version working, installing by sbopkg is what have.
Reply for gysddn
I already have the latest nettle, the issue is because the Spotify is looking for an old version, and I don't think downgrading is an acceptable solution.
Slackware64-current uses nettle 3.5.1 (libnettle.so.7.0) so making a symlink to the system /usr/lib64/libcurl.so.4.5.0 seems to work.
Another option is to rebuild curl without SSL but with GNUTLS. Uncomment/and add the following lines in the curl.Slackbuild-script:
# Uncomment to build a no-SSL version:
SSLOPT=--without-ssl
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
--with-ca-bundle=/usr/share/curl/ca-bundle.crt \
--with-libssh2 \
--with-gnutls \
--enable-static=no \
$SSLOPT || exit 1
Place the resulting libcurl.so.4.5.0 in your Spotify installation directory. Rename as libcurl-gnutls.so.4 and you are good to go. Keep in mind that you will need to rebuild this every time nettle is upgraded since libcurl is bulit against nettle.
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game and get…