Hello Everyone,
I'm having issues installing the PiFace Shim RTC for my new Raspberry Pi 3 Model B. Note I'm new to all this, please go easy on me ;-)
I've followed the instructions on the PiFace Real Time Clock User Guide (http://www.piface.org.uk/assets/piface_clock/PiFaceClockguide.pdf) yet when I come to run the command
sudo ./install-piface-real-time-clock.sh
I get the following error:
sudo: unable to execute ./install-piface-real-time-clock.sh: No such file or directory
It is an executable file:
-rwxr-xr-x 1 pi pi 3897 Apr 30 18:31 install-piface-real-time-clock.sh
If I run:
bash /home/pi/install-piface-real-time-clock.sh
I get this error message:
/home/pi/install-piface-real-time-clock.sh: line 3: $'\r': command not found
/home/pi/install-piface-real-time-clock.sh: line 8: syntax error near unexpected token `$'{\r''
'home/pi/install-piface-real-time-clock.sh: line 8: `check_for_i2c_tools() {
I2C is activated by raspi-config, RP is up to date using rpi-update and sudo apt-get update/upgrade.
If I run:
ls /dev | grep "i2c"
The response (maybe that is of some help to someone?!)
i2c-1
Any help would be greatly appreciated, this is the first thing I'm trying to do on the Raspberry Pi and it's already not working, not a great start for me!
Thanks,
Paul




