Posted by: vwbusguy | May 11, 2009

Howto: Amazon.com mp3 downloader for Fedora 10

UPDATE:

This does not work for Fedora 11.  For Fedora 11, I have compiled RPMs for clamz.  Get the here.
————————————————————————————————-

There are many things to love about amazon’s music store: mainstream and lesser well-known artists.  DRM-free.  Super-common mp3 format.  Some of the cheapest prices on the market.  Hundreds of no-cost songs.

But although Amazon.com supports Linux and has RPMs for Fedora, they don’t actually work on Fedora 9 or 10 .  But they do with a few steps.  Here’s how (for i386 and x86_64):

1. Log in as root: su.
2. yum install boost.i386
3. cd /lib
4. ln -s libssl.so.0.9.8g libssl.so.6
5. ln -s libcrypto.so.0.9.8g libcrypto.so.6
6. Download the rpm from http://www.amazon.com/gp/dmusic/help/amd.html
7. cd <the location of where you just saved that RPM>
8. rpm -ivh –nodeps amazonmp3.rpm

As a note of caution, I would frown on ever using –nodeps in any sort of regular practice, and rpm -qV will show library dep problems (which we actually solved).

Enjoy your new DRM-free tunes!

(Special thanks to FedoraForum.)

Advertisements

Responses

  1. You might try the open source clamz which would be *included* in fedora if someone would just approve it.

    http://code.google.com/p/clamz/

    https://bugzilla.redhat.com/show_bug.cgi?id=473184

  2. Great post, it worked perfectly on my Fedora 10 i386. 🙂

    Have you gotten it to work on x86_64?

    • Yeah, I used the same steps to get it to work on my x86_64 machine.

  3. Anyone get this to work with x86_64 Fedora 11?

    • Works fine in f10 x86_64. I can try Fedora 11 tonight.

  4. I’m running into an issue with Fedora 11 too. I had to make some different symlinks:

    /lib
    libssl3.so -> libssl.so.6
    libcrypt.so.1 -> libcrypto.so.6

    /usr/lib
    libboost_date_time.so.4 -> .so.3
    libboost_signals.so.4 -> .so.3
    libboost_iostreams.so.4 -> .so.3
    libboost_thread-mt.so.4 -> .so.3

    Now running into:

    # amazonmp3
    amazonmp3: symbol lookup error: amazonmp3: undefined symbol: _ZN5boost5mutexC1Ev

  5. For Fedora 11 x86_64, I have compiled RPMs for clamz:

    http://vwbusguy.fedorapeople.org/clamz-0.2-7.fc11.x86_64.rpm

  6. Any chance at getting a 386 build of this?

    • If I get some time this weekend I’ll compile a 32-bit f11 rpm for clamz.

  7. Ignore my last request, it was dead simple to build and install clamz myself. Here’s a link to their google code site: http://code.google.com/p/clamz/

  8. I have RPMs for x86_64 and i586, both at http://vwbusguy.fedorapeople.org/clamz/f11/

  9. clamz failing on .configure? Std FC11 install
    checking for LIBCURL… configure: error: Package requirements (libcurl) were not met:

    No package ‘libcurl’ found

    yet it is installed?

    $locate libcurl

    /usr/lib/libcurl.so.4
    /usr/lib/libcurl.so.4.1.1

    How to tell ./configure how to find it please?

    • Compiled fine for me. Make sure you have libcurl-devel installed. You should also make sure you compile and install things on your Fedora system through the RPM packaging system. You can use rpm -q to verify that a package is installed and what version.

      Also, I have working RPMs for f11 in the link in the post. PackageKit will grab all the necessary deps. Shouldn’t need to re-compile. In fact, the way clamz is setup, you should be able to do your hacking post-install if you really _need_ to do any.

      ~Scott

  10. I hadn’t libcur-devel installed. Tks.
    Still showing more.
    Now missing
    checking for LIBGCRYPT – version >= 1.2.0… no
    configure: error: libgcrypt not found

    Not heard of PackageKit, I’ll go read!
    I was using yum for the installs.

    which link please?
    http://clamz.googlecode.com/files/clamz-0.2.tar.gz is what I was using. That seems a source build?

  11. Success! I *think* there is something odd about
    the rpm download page or the links thereon?

    http://vwbusguy.fedorapeople.org/clamz/f11/i586/

    I tried n times to download it and it just didn’t appear? Ran it with pkcon and it works.
    I’m now downloading my Amazon purchase!

    Many thanks for the post
    (Even if I didn’t understand it!)

    DaveP

  12. I am installing Amazonmp3 on F11 x64, I would be interested to know it this works for other installs.

    Thanks, Bob

    yum install libcurl.i586 gtkmm24.i586 gtk-nodoka-engine.i586 libcanberra-gtk2.i586 PackageKit-gtk-module.i586 bug-buddy.i586
    wget mirrors.kernel.org/fedora/releases/9/Fedora/i386/os/Packages/boost-1.34.1-13.fc9.i386.rpm
    mv boost-1.34.1-13.fc9.i386.rpm /
    cd /
    rpm2cpio boost-1.34.1-13.fc9.i386.rpm | cpio -ivd ./usr/lib/libboost_thread-mt.so.1.34.1 ./usr/lib/libboost_iostreams.so.1.34.1 ./usr/lib/libboost_signals.so.1.34.1 ./usr/lib/libboost_date_time.so.1.34.1
    ln -s /usr/lib/libboost_thread-mt.so.1.34.1 /usr/lib/libboost_thread-mt.so.3
    ln -s /usr/lib/libboost_iostreams.so.1.34.1 /usr/lib/libboost_iostreams.so.3
    ln -s /usr/lib/libboost_signals.so.1.34.1 /usr/lib/libboost_signals.so.3
    ln -s /usr/lib/libboost_date_time.so.1.34.1 /usr/lib/libboost_date_time.so.3
    http://www.amazon.com/gp/dmusic/help/amd.html?&forceos=LINUX
    (use browser to accept and download to /software)
    rpm -Uvh amazonmp3.rpm –nodeps
    ln -s /usr/lib/libcrypto.so.0.9.8k /usr/lib/libcrypto.so.6
    ln -s /usr/lib/libssl.so.0.9.8k /usr/lib/libssl.so.6

  13. Good news, the amazonmp3.rpm version 1.0.9 (still labled “fedora9”) now smoothly installs and works at F12!
    If you have a x86_64 base you are still are forced to install several i686.rpms. And thats it!
    The key is that the present rpms from ‘fedora updates’ also install the older links, eg.
    /usr/lib/libboost_system.so.5 -> libboost_system.so.1.39.0


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: