ghans
Posts: 7358
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: New, and kind of lost

Mon Aug 04, 2014 8:04 am

The use of sudo has been a bit excessive in my old instructions ,
here are corrected ones :

How to get pianobar working on Raspbian
UPDATED (Oct 2014)

Drop to a terminal (you can use "LXTerminal") and enter following commands ,
pressing RETURN after each line :

Code: Select all

cd ~
sudo apt-get update
sudo apt-get purge pianobar
sudo apt-get install git pkg-config libevent-pthreads-2.0-5 libao-dev libgnutls28-dev libmad0-dev libfaad-dev libjson0-dev libgcrypt11-dev
git clone git://www.github.com/PromyLOPh/pianobar.git
cd pianobar
make clean 
make 
sudo make install
nano ~/.config/pianobar/config
add the line

Code: Select all

tls_fingerprint = 2D0AFDAFA16F4B5C0A43F3CB1D4752F9535507C0
Save (CTRL-O) and exit (CTRL-X) .

Now entering

Code: Select all

pianobar
should start pianobar.

In case of problems , report back with the exact error messages,
and the command you issued just before that (use copy-paste).

ghans
Last edited by ghans on Mon Nov 24, 2014 6:06 pm, edited 1 time in total.
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

fsoguy
Posts: 9
Joined: Mon Oct 06, 2014 12:59 am
Location: Michigan, USA

Re: New, and kind of lost

Sat Oct 18, 2014 9:06 pm

ghans wrote:Because you have asked so nicely :

Code: Select all

sudo apt-get update
sudo apt-get purge pianobar
sudo apt-get install git pkg-config libevent-pthreads-2.0-5 libao-dev gnutls-dev libmad0-dev libfaad-dev libjson0-dev
sudo git clone git://github.com/prattmic/pianobar.git
cd pianobar
sudo make clean && make && make install
nano ~/.config/pianobar/config

ghans
Worked for me too. Many thanks!! I spent a couple hours trying to do apt-get install and another git hub directory, neither of which worked.


UPDATE
I had an occasional error while using this build. I would get this: Cannot access audio file: Unknown HTTP status code, and the song would freeze with a second or two left on the counter.

I just finished installing from source using: https://github.com/PromyLOPh/pianobar

The error is discussed and apparently fixed in this version of pianobar from PromyLOPh. The build date when running pianobar is quite recent: Welcome to pianobar (2014.09.28-dev)

Hoping for the best on this. Before it would hang and I'd have to get back to the station list, or restart pianobar completely.

dunuplost
Posts: 1
Joined: Thu Nov 27, 2014 4:28 pm

Re: New, and kind of lost

Thu Nov 27, 2014 4:40 pm

Hey folks I ran into the same as everyone on pianobar. I needed to rebuild but ran into the build error.
pi@rpi2 ~/pianobar $ make
Package libavcodec was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavcodec.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavcodec' found
Package libavformat was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavformat.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavformat' found
Package libavutil was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavutil.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavutil' found
Package libavfilter was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavfilter.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavfilter' found
Package libavcodec was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavcodec.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavcodec' found
Package libavformat was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavformat.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavformat' found
Package libavutil was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavutil.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavutil' found
Package libavfilter was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavfilter.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavfilter' found
CC src/main.c
In file included from src/player.h:27:0,
from src/main.h:30,
from src/main.c:57:
src/config.h:12:33: fatal error: libavfilter/version.h: No such file or directory
compilation terminated.
Makefile:127: recipe for target 'src/main.o' failed
make: *** [src/main.o] Error 1
pi@rpi2 ~/pianobar $
So I found this link:
http://www.lanmaster53.com/2014/05/rasp ... -pianobar/
After building the FFmpeg my build for piano bar went just fine.

I am sure there is a build of FFmpeg out there I just kicked off the build before a sleep so it worked for me...

Return to “General discussion”

Who is online

Users browsing this forum: wattle973 and 27 guests