2013
07.03

this is how i got spotify to work on my install of gentoo.

YMMV.

grab a copy of the deb from here. just make sure to grab one for your respective build (x86 or amd64). at the time of writing, spotify-client_0.9.1.55.gbdd3b79.203-1_amd64.deb was the version available.

now lets uncompress the file : ar x file.deb

which should give us something similar to :
% ar x spotify-client_0.9.1.55.gbdd3b79.203-1_amd64.deb
[~/Downloads/deb] % ls -al
total 81608
drwxr-xr-x 2 user user 4096 Jul 3 16:56 ./
drwx------ 9 user user 4096 Jul 3 16:43 ../
-rw-r--r-- 1 user user 1499 Jul 3 16:56 control.tar.gz
-rw-r--r-- 1 user user 41724908 Jul 3 16:56 data.tar.gz
-rw-r--r-- 1 user user 4 Jul 3 16:56 debian-binary
-rw-r--r-- 1 user user 41726600 Jul 3 16:40 spotify-client_0.9.1.55.gbdd3b79.203-1_amd64.deb
[~/Downloads/deb] %

all we care about is data.tar.gz. lets uncompress that.

that should give us something similar to :
[~/Downloads/deb] % tar -zxf data.tar.gz
[~/Downloads/deb] % ls -al
total 40812
drwxr-xr-x 4 user user 4096 Jul 3 17:01 ./
drwx------ 9 user user 4096 Jul 3 16:43 ../
-rw-r--r-- 1 user user 41724908 Jul 3 16:56 data.tar.gz
-rw-r--r-- 1 user user 4 Jul 3 16:56 debian-binary
drwxr-xr-x 3 user user 4096 Jun 12 17:57 opt/
drwxr-xr-x 4 user user 4096 Jun 12 17:57 usr/
[~/Downloads/deb] %

all we want from here is opt/. lets check it out:
[~/Downloads/deb] % cd opt/spotify/spotify-client
[~/Downloads/deb/opt/spotify/spotify-client] 4 % ls -al
total 83516
drwxr-xr-x 5 user user 4096 Jun 12 17:57 ./
drwxr-xr-x 3 user user 4096 Jun 12 17:57 ../
-rw-r--r-- 1 user user 3919 Jun 12 17:51 changelog
-rw-r--r-- 1 user user 660348 Jun 12 17:53 chrome.pak
drwxr-xr-x 2 user user 4096 Jun 12 17:57 Data/
-rw-r--r-- 1 user user 3247638 Jun 12 17:53 devtools_resources.pak
drwxr-xr-x 2 user user 4096 Jun 12 17:57 Icons/
-rw-r--r-- 1 user user 54841384 Jun 12 17:57 libcef.so
-rw-r--r-- 1 user user 218801 Jun 12 17:50 licenses.xhtml
-rwxr-xr-x 1 user user 927 Jun 12 17:50 linklibs.sh*
drwxr-xr-x 2 user user 4096 Jun 12 17:57 locales/
-rw-r--r-- 1 user user 1973 Jun 12 17:50 readme.fedora
-rwxr-xr-x 1 user user 980 Jun 12 17:50 register.sh*
-rwxr-xr-x 1 user user 26389488 Jun 12 17:57 spotify*
-rw-r--r-- 1 user user 254 Jun 12 17:50 spotify.desktop
-rwxr-xr-x 1 user user 883 Jun 12 17:50 unregister.sh*
[~/Downloads/deb/opt/spotify/spotify-client] %

now, we have to check for all the shared library dependencies using ldd

[~/Downloads/deb/opt/spotify/spotify-client] % ldd spotify
./spotify: /usr/lib64/libcrypto.so.0.9.8: no version information available (required by ./spotify)
./spotify: /usr/lib64/libssl.so.0.9.8: no version information available (required by ./spotify)
        linux-vdso.so.1 (0x00007fff578ed000)
        libswmhack.so.0.0 => /usr/lib64/libswmhack.so.0.0 (0x00007f5c461e6000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5c45fc9000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f5c45dc1000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/libstdc++.so.6 (0x00007f5c45aba000)
        libglib-2.0.so.0 => /usr/lib64/libglib-2.0.so.0 (0x00007f5c45795000)
        libgthread-2.0.so.0 => /usr/lib64/libgthread-2.0.so.0 (0x00007f5c45593000)
        libQtGui.so.4 => /usr/lib64/qt4/libQtGui.so.4 (0x00007f5c44905000)

i wont paste all of the output here since it is a bit much, but you have to ensure that you have all your proper libraries linked. as you will notice on my snippet, i left the first two unresolved. spotify seems to work fine without /usr/lib64/libcrypto.so.0.9.8 & /usr/lib64/libssl.so.0.9.8

once all those are linked, just start it up by running ./spotify

it should look similar to this except for all your preferences and playlists:
fshot_1372885833_1440x900
click bar to enlarge

The following two tabs change content below.

charlie root

VP of keeping it real / HNIC at pissedoffadmins.com
I bring the cold coffee.

Latest posts by charlie root (see all)

No Comment.

Add Your Comment