Page 1 of 1

Can't install wiringPi in Domoticz

Posted: Saturday 09 January 2016 12:35
by Mightymicro
Hi all,
I am trying to install wiringPi on to my Raspberry pi which I have running Domoticz. I followed the instructions on the wiki but when I try to instal it with './build 'it just gives me lots of errors mainly error 127.
any Ideas what I might be doing wrong.Below is what I get when I try.



Linux domoticzpi 4.1.13+ #826 PREEMPT Fri Nov 13 20:13:22 GMT 2015 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Jan 9 10:43:27 2016 from 192.168.0.4
pi@domoticzpi ~ $ cd wiringPi
pi@domoticzpi ~/wiringPi $ ./build
wiringPi Build script
=====================


WiringPi Library
[UnInstall]
[Compile] wiringPi.c
[Compile] wiringSerial.c
[Compile] wiringShift.c
[Compile] piHiPri.c
make: gcc: Command not found
make: gcc: Command not found
[Compile] piThread.c
Makefile:95: recipe for target 'wiringPi.o' failed
make: *** [wiringPi.o] Error 127
make: *** Waiting for unfinished jobs....
Makefile:95: recipe for target 'wiringShift.o' failed
make: *** [wiringShift.o] Error 127
make: gcc: Command not found
make: gcc: Command not found
Makefile:95: recipe for target 'wiringSerial.o' failed
make: *** [wiringSerial.o] Error 127
Makefile:95: recipe for target 'piHiPri.o' failed
make: *** [piHiPri.o] Error 127
make: gcc: Command not found
Makefile:95: recipe for target 'piThread.o' failed
make: *** [piThread.o] Error 127
pi@domoticzpi ~/wiringPi $

Re: Can't install wiringPi in Domoticz

Posted: Saturday 09 January 2016 13:12
by sincze
Mmm I used these instructions to get it up and running
http://wiringpi.com/download-and-install/

Sent from my SM-G925F using Tapatalk

Re: Can't install wiringPi in Domoticz

Posted: Saturday 09 January 2016 14:09
by Mightymicro
Thanks for the reply but I have tried both plan A and B in those instructions and get the same result.

Re: Can't install wiringPi in Domoticz

Posted: Saturday 09 January 2016 15:27
by Mightymicro
I got it working, I missed the below instruction in the wiki.


"Installation

The GPIO driver is based on the wiringPi library by Gordon Henderson, so you first need to install it following this procedure
The wiringPi installer will probably give an error (make gcc not found). Install these by issueing:

sudo apt-get update
sudo apt-get install make
sudo apt-get install gcc "