Making my mp3 player run on FreeBSD

ethan on 2003-01-28T13:33:56

Still busy with configuring FreeBSD, but now finally in a state of deep love with this OS.

After fixing the terminal and duplicating my Linux' configuration of slrn (my newsreader) I thought I would need sound and so I recompiled the kernel. Sound's there now but unfortunately no decent player. I am using my own one which is basically an interactive mpg123 with colors, one-key stroke commands, playlist support, tagging etc. etc. Unfortunately, it relies on MPEG::MP3Play, a wonderful module really with only one weak point: it is a wrapper around the xaudio SDK. These guys have obviously removed the evaluation license for now so I can't download it from the webside. Also, it is said to not work with Perl's FreeBSD unless I compile my own.

But alas, why the hassle? FreeBSD comes with a brilliant Linux emulator that ensures that Linux binaries can be run properly. So I copied my Perl player over into my home dir and made it use the Perl on the Linux partition. The shebang line now looks odd:

#!/mnt/linux/usr/bin/perl -w -I/mnt/linux...

plus a few hundred use lib directives that I had to add. The -I switch is necessary because it couldn't find Config.pm and lib.pm itself in @INC. Well, what can I say? It's an ugly work-around but it works so I really feel fully at home now!