Skip to content

Instantly share code, notes, and snippets.

@paulbaker3
Created June 7, 2012 05:05
Show Gist options
  • Save paulbaker3/2886698 to your computer and use it in GitHub Desktop.
Save paulbaker3/2886698 to your computer and use it in GitHub Desktop.
Installing pianobar from source
Copied directly from http://www.foscode.com/install-pianobar-ubuntu/ with an additional note from me.
Here’s how to install it:
1. Install all dependencies:
1.sudo apt-get install git-core
2.sudo apt-get install libao-dev
3.sudo apt-get install libmad0-dev
4.sudo apt-get install libfaac-dev
5.sudo apt-get install libfaad-dev
6.sudo apt-get install libgnutls-dev
2. Download the latest copy from the git repository:
1. git clone git://github.com/PromyLOPh/pianobar.git
3. Go into the newly created folder (git automatically creates the folder calder pianobar) and install it.
1. make clean
2. make
3. sudo make install
NOTE FROM PB3: Apparently in an attempt to keep "unauthorized" players out of commission, "Pandora modifies the protocol now and then" (http://6xq.net/projects/pianobar/) You might run into an error that reads something like:
"Package json was not found in the pkg-config search path.
Perhaps you should add the directory containing `json.pc'
to the PKG_CONFIG_PATH environment variable
No package 'json' found "
3A: To fix this install the libjson0-dev library:
1. sudo apt-get install libjson0-dev
4. After you have installed pianobar, you can create a config file where you’d have your username and password. (Beats having to type those everytime you start the app).
1. cd ~
2. mkdir .config/pianobar
3. vim .config/pianobar/config
5. add the following 2 lines and save the file
1. user = pandoraUserName
2. password = pandoraPassword
6. That’s it, just run pianobar from the command line and enjoy.
@hughes
Copy link

hughes commented Apr 29, 2014

"Please choose a valid libav implementation by setting LIBAV"

sudo apt-add-repository ppa:jon-severinsson/ffmpeg
sudo apt-get install ffmpeg libavformat-dev libavfilter-dev

edit Makefile line 11 from LIBAV:=undefined to read LIBAV:=ffmpeg2.2

continue from make clean

@yabmtm
Copy link

yabmtm commented May 5, 2014

I'm having problems following this tutorial because I still get:

Welcome to pianobar (2011.12.11)! Press ? for a list of commands.
(i) Login... Netowrk error: TLS handshake failed.

But I have checked to make sure I have all the dependencies and am up-to-date with the current TLS fingerprint. I have read through every website I can find on the subject, but still can not connect.

@daryltucker
Copy link

What @hughes said, and:

sudo apt-get install libpostproc-dev libavresample-dev libswscale-dev libavfilter-dev libavfilter3 libswresample-dev

@SethEddy
Copy link

This is what i keep getting after make.

    CC  src/main.c
In file included from src/main.c:51:0:
src/libpiano/piano.h:33:20: fatal error: gcrypt.h: No such file or directory
 #include <gcrypt.h>
                    ^
compilation terminated.
Makefile:99: recipe for target 'src/main.o' failed
make: *** [src/main.o] Error 1

I took a look in Makefile, it's above my scope lol.

@mrreyes512
Copy link

to correct gcrypt.h dependency use:
sudo apt-get install libgcrypt11-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment