Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.
Kim Burgestrand edited this page Oct 13, 2013 · 12 revisions

How to install libspotify

The spotify gem depends heavily on libspotify. For Mac OS and Linux (i686 and x86_64), the libspotify gem takes care of installing it. However, for some platforms, the libspotify gem cannot install libspotify for you, and you’ll need to do it yourself. This page contains instructions for doing so.

Note: libspotify-ruby will find libspotify if the library file (.dll, .so) is placed in the same directory from which you run code using libspotify-ruby; this works across Mac OS, Linux and Windows alike.

Installing libspotify on Mac OS

Easiest is to install libspotify using Homebrew:

brew install libspotify

You can also install libspotify manually. Download the libspotify distribution for Mac OS. Drop the included libspotify.framework folder into /Library/Frameworks/.

Installing libspotify on Linux (including ARM distributions)

Download the libspotify distribution for your architecture. Unpack the archive, and issue make prefix=/usr/local install:

wget http://developer.spotify.com/download/libspotify/libspotify-12.1.51-Linux-armv5-release.tar.gz
tar xvfz libspotify-12.1.51-Linux-armv5-release.tar.gz
cd libspotify-12.1.51-Linux-armv5-release
make prefix=/usr/local install # might need sudo, depending on your system

Installing libspotify on Windows

Put the libspotify.dll into any of the following:

  • directory from which you run code using Hallon
  • system directory (system32)
  • windows directory
  • any of the directories listed in your PATH environment variable