http://www.perlmonks.org?node_id=1203069


in reply to Playing sounds

Hi,

$player = Audio::Play::MPG123->new;
gives an error I don't understand:
open3: exec of mpg123 -R --aggressive failed

That shows that the perl wrapper Audio::Play::MPG123 is attempting to launch the system binary mpg123 and failing. Dollars gets you donuts it's because you don't have it installed.

On my Linux the command is:

$ sudo apt-get install mpg123 libmpg123-dev
... you'll have to find the equivalent for MacPorts or whatever package manger you are using.

When you read the docs for a module and it says something like:

"This is a frontend to the mpg123 player. It works by starting an external mpg123 process with the -R option and feeding commands to it."
... it's pretty likely that you'll need a system application.

Hope this helps!


The way forward always starts with a minimal test.