moc on raspbian with iqaudio shield

Hi there,

I try to get to run my favorite audio player moc to run on a raspberry pi 3 with a iqaudio shield.

when I started moc i get first "alsa...oss not found" messages. then when i try to run it again I get:

pi@raspberrypi:~ $ moc
-bash: moc: command not found

though moc is definitely installed.

I log into the pi via ssh (putty) and the sound is working with mplayer etc...

any ideas what it could be? Thanks in advance !!

I try to get to run my favourite audio player MOC to run on a Raspberry Pi 3 with a iqaudio shield.
When I started MOC I get first "alsa...oss not found" messages.

A quick read of their website suggests that ALSA is required, and MOC also requires a sound sub-system to interface with. So check that you have ALSA installed and correctly configured.

When i try to run it again I get:

pi@raspberrypi:~ $ moc -bash: moc: command not found

though MOC is definitely installed.

Try mocp.

thanks for your answer!

I have alsa installed and checked the alsamixer, everything looks fine.., and I can run cmus for example to get sound.

here the exact message:

Running the server...
Trying JACK...
Trying ALSA...
Trying OSS...

FATAL_ERROR: No valid sound driver!

FATAL_ERROR: Server exited!

I also just installed moc through the package manager, is this ok on raspbian or do i need to compile it or something maybe?

Of course, I can't know the packaging of every distribution out there, but I'd expect (perhaps naively) that any given distribution's package should actually work.

ALSA is configured in your package (otherwise MOC wouldn't even try it). Certainly MOC is used successfully by others on the RPi, so my guess is that it must be some misconfiguration. It's puzzling that cmus does work, though.

You may need to ask of those who know better on an RPi-specific forum (but post a redux back here if you find a solution there).

thank you, yeah i ll have a try in a rpi forum!!

If by some change, your version of MOC is built with debug enabled, you could try posting contents of "mocp_server_log" file created after running "mocp -D". If not, maybe "mocp -SF" would give some more information. Also, you didn't even tell us what version of MOC are you trying to use.

Looking at the PDF file, did you set ALSA device variable for MOC accordingly?