philippe44 / AirConnect

Use AirPlay to stream to UPnP/Sonos & Chromecast devices
Other
3.43k stars 216 forks source link

Syntax error on execution #422

Closed nivek88 closed 1 year ago

nivek88 commented 1 year ago

I recently had to reset my Pi and this time I can't get AirConnect to work again. If I try to execute the bin file

./airupnp-arm

I do get an error message.

./airupnp-arm: line 8: syntax error near unexpected token `newline' ./airupnp-arm: line 8: `<!DOCTYPE html>'

Linux raspberrypi 5.15.61-v7+ #1579 SMP Fri Aug 26 11:10:59 BST 2022 armv7l GNU/Linux

pwt commented 1 year ago

Your ./airupnp-arm is not a binary executable. Looks like it's an HTML document -- i.e., you downloaded a web page instead of a binary.

Did you try to update the binary at some point prior to the reset?

nivek88 commented 1 year ago

@pwt Thank you, I just blindly changed the download path from

https://raw.githubusercontent.com/philippe44/AirConnect/master/bin/airupnp-arm

to

https://github.com/philippe44/AirConnect/blob/2.x/bin/airupnp-arm

I made a pull request to change the readme for changing the download path to the new branch.

https://raw.githubusercontent.com/philippe44/AirConnect/2.x/bin/airupnp-arm