This time for Mac Os X Snow Leopard.
(note: this is not a ssh session on my raspberry pi; it’s really on my mac!)
As briefly explained in my last post (https://piergiu.wordpress.com/2012/07/22/raspberry-pi-last-fm-shell-fm-a-lightweight-last-fm-radio-player/), installing shell-fm on a debian-based system was quite easy thanks to apt-get & synaptic & all the good stuff that debian comes with.
On Os X things differ a little bit. We do not have apt-get or synaptic, and even if you try to install Fink (alternative to apt-get for mac) some packages are too old or not existing at all.
First thing to do to is to download Pkg-config for mac(google it, is on sourceforge), libmad and shell-fm (this one via git, that meaning you should have git installed on your system).
- Install pkgconfig.pkg.
- Unzip libmad and enter in it with a terminal shell.
- Type usuals ./configure followed by a make and then a sudo make install .
- Now the tricky part:
- type nano /usr/lib/pkgconfig/mad.pc to create a file that is used by pkg-config during the making of shell-fm.
- A command line editor appears and fill it with this
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/includeName: mad
Description: MPEG audio decoder
Requires:
Version: 0.15.1b
Libs: -L${libdir} -lmad
Cflags: -I${includedir}
Then give a ctrl-x followed by a Y and then Enter.
You’ve just created that file.
Now enter shell-fm directory(created by git) and give a make and then a sudo make install .
shell-fm is now ready to be launched on your mac.
I’m disappointed with this long process on a Mac.
They should learn package handling from debian systems and similars.
Bonus!!!
Here is my configuration file for speeding up startup of my shell-fm.
You have to put these things inside ~/.shell-fm/shell-fm.rc (maybe using nano like you’ve done a few lines above in this post)
( ~ is your home directory )
username=YOURUSERNAME
password=YOURPASSWORD
default-radio=lastfm://user/YOURUSERNAME/library
quiet=true
volume-update=%v
Then ctrl-x and y and enter to save the file and exit.