With a little side of applesauce...

Thursday, September 30, 2010

Debian Squeeze - install Amazon MP3 downloader

The current Amazon MP3 downloader relies on an older version of Boost than is currently shipping in Debian Squeeze, (and Ubuntu Lucid Lynx 10.4).

Amazon MP3 downloader needs:
ii  libboost-date-time1.34.1                                    1.34.1-14                            set of date-time libraries based on generic programming concepts
ii libboost-filesystem1.34.1 1.34.1-14 filesystem operations (portable paths, iteration over directories, etc) in C++
ii libboost-iostreams1.34.1 1.34.1-14 Boost.Iostreams Library
ii libboost-regex1.34.1 1.34.1-14 regular expression library for C++
ii libboost-signals1.34.1 1.34.1-14 managed signals and slots library for C++
ii libboost-thread1.34.1 1.34.1-14 portable C++ multi-threading


And, Debian Squeeze has:
ii  libboost-date-time1.42.0                                    1.42.0-4                             set of date-time libraries based on generic programming concepts
ii libboost-iostreams1.42.0 1.42.0-4 Boost.Iostreams Library
ii libboost-python1.42.0 1.42.0-4 Boost.Python Library
ii libboost-thread1.42.0 1.42.0-4 portable C++ multi-threading


The easy way to get around this is to add a repo line for Debian Lenny to your /etc/apt/sources.list:
### libboost for amazonmp3 downloader
deb http://ftp.us.debian.org/debian/ lenny main


Then run the following commands in your terminal of choice:
sudo apt-get update
sudo apt-get -f install libboost-iostreams1.34.1
sudo apt-get -f install


Which will install the older version of libboost alongside the newer:
ii  libboost-date-time1.34.1                                    1.34.1-14                            set of date-time libraries based on generic programming concepts
ii libboost-date-time1.42.0 1.42.0-4 set of date-time libraries based on generic programming concepts
ii libboost-filesystem1.34.1 1.34.1-14 filesystem operations (portable paths, iteration over directories, etc) in C++
ii libboost-iostreams1.34.1 1.34.1-14 Boost.Iostreams Library
ii libboost-iostreams1.42.0 1.42.0-4 Boost.Iostreams Library
ii libboost-python1.42.0 1.42.0-4 Boost.Python Library
ii libboost-regex1.34.1 1.34.1-14 regular expression library for C++
ii libboost-signals1.34.1 1.34.1-14 managed signals and slots library for C++
ii libboost-thread1.34.1 1.34.1-14 portable C++ multi-threading
ii libboost-thread1.42.0 1.42.0-4 portable C++ multi-threading


The run the amazonmp3 downloader:
$ amazonmp3 


and enjoy your music :)

NOTE: These instructions should work for Ubuntu, except your /etc/apt/sources.list should look like this:
deb http://archive.ubuntu.com/ubuntu/ jaunty universe   

2 comments:

kiddo said...

Thanks for the tutorial.

After installing und running amazonmp3 on Debian Squeeze i got an error:

error while loading shared libraries: libboost_regex-gcc42-1_34_1.so.1.34.1: cannot open shared object file: No such file or directory

I fixed this with installing libboost-regex1.34.1. Now it works fine.

cheers

Lars said...

Thank you for the tutorial!

lenny is now part of the archive

deb http://archive.debian.org/debian/ lenny main

... yes, and libboost-regex1.34.1 is also necessary