PIGPIO won't run on UP board

I need PIGPIO to capture an input frequency from a TCS3200 color sensor
I tried installing PIGPIO in UP running ubilinux. It installed but wont run,
When I try running it with sudo PIGPIOD
I get "initPerpherals: mmap gpio failed (Operation not permitted) Can't initialise pigpio library
Can anyone please help me?
I tried installing PIGPIO in UP running ubilinux. It installed but wont run,
When I try running it with sudo PIGPIOD
I get "initPerpherals: mmap gpio failed (Operation not permitted) Can't initialise pigpio library
Can anyone please help me?
Comments
The core pigpio code I'm referring to can be found here:
https://github.com/joan2937/pigpio/blob/master/pigpio.c
This type of sensor may not be the best choice for using with the UP board, due to the need for high-speed GPIO. A sensor connected over a bus such as I2C or SPI might be a better choice. For example:
https://www.adafruit.com/product/1334
https://www.seeedstudio.com/item_detail.html?p_id=854
One of the light sensors supported by the kernel IIO drivers may also be useful:
http://lxr.free-electrons.com/source/drivers/iio/light/?v=4.4