Trying to run the pigpio example program freq_count_1 I get the error
Can't lock /var/run/pigpio.pid. The gpiotest program, however, runs as expected. Below you can see what I did. I have a Raspberry Pi 2 running Jessie.
gcc -Wall -pthread -o freq_count_1 freq_count_1.c -lpigpio -lrt` rm -f /var/run/pigpiod.pid` ./freq_count_1 4 7 -r2 -s2`
- Monitoring GPIO pins: 4 and 7
- Sample rate 2: micros
- refresh rate 2 deciseconds
2015-11-27 13:47:24 initInitialise:
Can't lock /var/run/pigpio.pid