Use the Amazon MP3 Downloader on Fedora 9If you're like me, you've probably upgraded your Fedora 8 host to Fedora 9 only to find that half of the stuff you use doesn't work anymore. I found another thing today, Amazon's MP3 downloader. Since I refuse to give any money to the evil empire that is the Apple iTunes music store, I buy my music from Amazon. Why? They're non-DRM'd, 256kbps, and MP3.
If you buy one song at a time, you can just buy it and download it without any helper application. However, if you purchase an entire album you HAVE to use their download utility. There is no option for Fedora 9, only 8. So download the Fedora 8 RPM and install it. It should work, right? Wrong.
It's dynamically linked to the version of OpenSSL that comes with Fedora 8. Fedora 9 has a brand new version which slightly changes the filenames. Upon installing, you'll be greeted with this lovely message:
# sudo rpm -Uvh amazonmp3.rpm warning: amazonmp3.rpm: Header V3 DSA signature: NOKEY, key ID 70e6adf9 error: Failed dependencies: libcrypto.so.6 is needed by amazonmp3-1.0.3-1.i386 libssl.so.6 is needed by amazonmp3-1.0.3-1.i386We know that we can fix this little issue later, so go ahead and install it without dependency checking:
# rpm -Uvh amazonmp3.rpm --nodepsFedora 9 updated their symbolic links to libcrypto.so.7 and libssl.so 7. This, however, is an easy fix. As root, goto /lib and link the real library to the filename that the stupid Amazon client is looking for:
# ln -s libcrypto.so.0.9.8g libcrypto.so.6 # ln -s libssl.so.0.9.8g libssl.so.6There ya go. `amazonmp3` will now run from the command line. There is one little thing to do though. When you click the link to start the album download you'll get a download dialog box. Save the file somewhere first, then from the Amazon program, open it. It usually doesn't work if you try to open the file straight from the browser.