[SOLVED] Install native spotify on Fedora (with Spotify apps)(64bit+32bit)

This cost me some hours to find out, but I am currently using the native spotify linux preview under fedora 16, 64 bit:

Steps:

  1. Make sure you don’t use spotify free. It will not work on linux.
  2. Install some things: $ sudo yum install qt-webkit perl-ExtUtils-MakeMaker libXScrnSaver nspr-devel openssl-devel
  3. For 64 bit, do: $sudo ln -s /usr/lib64/libssl.so /usr/lib64/libssl.so.0.9.8
  4. For 32 bit, $ sudo ln -s /usr/lib/libssl.so /usr/lib/libssl.so.0.9.8
  5. Find the latest spotify deb. At the time I write this, this is located here. Find the latest version here.
  6. Convert the .deb to .rpm using Alien. Instructions here. It will create a .rpm
  7. Install : $ sudo rpm -Uvh –nodeps /path/to/your/rpm

If it complains about .so files not existing:

  1. For example, it looks for ‘libsmime3.so.1d’
  2. Search for ‘libsmime3.so’ in your lib-dir. For 64-bit, this is /usr/lib64. For non-64-bit, it is probably /usr/lib/: $ ls /usr/lib64/libsmime3.so
  3. Symlink this to the file spotify is searching for: sudo ln -s /usr/lib64/libsmime3.so /usr/lib64/libsmime3.so.1d
  4. Repeat this about 10 times. Maybe you can find all the missing links by soing this: $ ldd /usr/bin/spotify | awk ‘{print $1}’ | xargs ls 1>/dev/null

If you get a segfault:

  • I got a segfault (segmentation fault) with the native linux client, solved by using a later build. Find the latest one at one of the links above
  • Find out why it segfaults by using $ldd spotify , enter ‘run’ and you will get output

Error 409 means you need a subscribtion.

If spotify crashes at startup, clear the caches:  $ rm -r {.cache,.config}/spotify

Symlinks I made:

cd /usr/lib64
sudo ln -s libnss3.so libnss3.so.1d
sudo ln -s libnssutil3.so libnssutil3.so.1d
sudo ln -s libsmime3.so libsmime3.so.1d
sudo ln -s libplc4.so libplc4.so.0d
sudo ln -s libnspr4.so libnspr4.so.0d
sudo ln -s /usr/lib64/libssl.so /usr/lib64/libssl.so.0.9.8
sudo ln -s libcrypto.so libcrypto.so.0.9.8