0

Can not compile pianobar
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Can not compile pianobar

by DareDrop on Wed Jun 14, 2017 1:55 pm

Trying to put to gather Internet radio.....

https://learn.adafruit.com/pi-wifi-radi ... tup-2-of-3

This does not work....

cd ../pianobar-e945578ab22912049f1e547ce7b25b01089f75902.make

I get a message...

pi@RaspPiRadio:~ $ cd /pianobar-e945578ab22912049f1e547ce7b25b01089f7590
-bash: cd: /pianobar-e945578ab22912049f1e547ce7b25b01089f7590: No such file or directory

And....

pi@RaspPiRadio:~ $ .makepi@RaspPiRadio:~ $ cd /pianobar-e945578ab22912049f1e547ce7b25b01089f7590
-bash: .makepi@RaspPiRadio:~: command not found

I have this directory...

pi@RaspPiRadio:~ $ ls
Adafruit-Raspberry-Pi-Python-Code pianobar-e945578ab22912049f1e547ce7b25b01089f7590
e945578ab22912049f1e547ce7b25b01089f7590.zip Python-WiFi-Radio...

and make is installed...

pi@RaspPiRadio:~ $ sudo apt-get install make
Reading package lists... Done
Building dependency tree
Reading state information... Done
make is already the newest version.
The following packages were automatically installed and are no longer required:
fakeroot g++ g++-4.9 gcc gcc-4.9 libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libasan1 libatomic1 libdpkg-perl
libfakeroot libfile-fcntllock-perl libgcc-4.9-dev libgomp1 libstdc++-4.9-dev libtimedate-perl libubsan0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 55 not upgraded.

Do not know what more to do. Any help would be nice.

Thanks

DareDrop
 
Posts: 17
Joined: Fri Aug 05, 2016 5:39 pm

Re: Can not compile pianobar

by adafruit_support_carter on Wed Jun 14, 2017 2:03 pm

The guide is using some relative paths in the cd commands. So if you missed a step, it might be looking in the wrong place. It looks like the directory is there. Try this to get there:
Code: Select all | TOGGLE FULL SIZE
cd ~/pianobar-e945578ab22912049f1e547ce7b25b01089f7590

and then you can run make.

adafruit_support_carter
 
Posts: 3152
Joined: Tue Nov 29, 2016 2:45 pm

Re: Can not compile pianobar

by DareDrop on Wed Jun 14, 2017 2:10 pm

Thanks so much, that did it.

best

DareDrop
 
Posts: 17
Joined: Fri Aug 05, 2016 5:39 pm

Re: Can not compile pianobar

by DareDrop on Wed Jun 14, 2017 3:37 pm

Follow up

https://learn.adafruit.com/pi-wifi-radi ... tup-3-of-3

When I run....

pi@RaspPiRadio:~ $ pianobar
-bash: pianobar: command not found
pi@RaspPiRadio:~ $

Could you help with this also please?

Best

DareDrop
 
Posts: 17
Joined: Fri Aug 05, 2016 5:39 pm

Re: Can not compile pianobar

by adafruit_support_carter on Wed Jun 14, 2017 3:53 pm

Post the output of this command:
Code: Select all | TOGGLE FULL SIZE
ls -l /usr/local/bin

adafruit_support_carter
 
Posts: 3152
Joined: Tue Nov 29, 2016 2:45 pm

Re: Can not compile pianobar

by DareDrop on Wed Jun 14, 2017 3:55 pm

pi@RaspPiRadio:~ $ ls -l /usr/local/bin
total 0

DareDrop
 
Posts: 17
Joined: Fri Aug 05, 2016 5:39 pm

Re: Can not compile pianobar

by adafruit_support_carter on Wed Jun 14, 2017 3:57 pm

Looks like you missed the last step on this page:
https://learn.adafruit.com/pi-wifi-radi ... tup-2-of-3

adafruit_support_carter
 
Posts: 3152
Joined: Tue Nov 29, 2016 2:45 pm

Re: Can not compile pianobar

by DareDrop on Wed Jun 14, 2017 4:04 pm

I did miss that ((

When I do???

pi@RaspPiRadio:~ $ sudo cp pianobar /usr/local/bin
cp: cannot stat 'pianobar': No such file or directory
pi@RaspPiRadio:~ $ ^C

DareDrop
 
Posts: 17
Joined: Fri Aug 05, 2016 5:39 pm

Re: Can not compile pianobar

by adafruit_support_carter on Wed Jun 14, 2017 7:33 pm

Yep. You're in the wrong directory. Looks like the guide has to be done exactly step by step to make sure the right command is executed in the correct location. Pretty easy to recover though. Try these two commands:
Code: Select all | TOGGLE FULL SIZE
cd ~/pianobar-e945578ab22912049f1e547ce7b25b01089f7590
sudo cp pianobar /usr/local/bin

First command changes directory (cd) to the correct location, where the executable is located. Second command makes a copy (cp) of the executable and puts it in a global location.

adafruit_support_carter
 
Posts: 3152
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.