12th May, 2014, 04:56 PM
Trying sudo pip install rpi.gpio returns this:
EDIT: Never mind, fixed it by reinstalling libc6-dev packages.
Code:
building 'RPi.GPIO' extension
creating build/temp.linux-armv6l-2.7
creating build/temp.linux-armv6l-2.7/source
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c source/py_gpio.c -o build/temp.linux-armv6l-2.7/source/py_gpio.o
In file included from /usr/include/limits.h:27:0,
from /usr/lib/gcc/arm-linux-gnueabihf/4.6/include-fixed/limits.h:169,
from /usr/lib/gcc/arm-linux-gnueabihf/4.6/include-fixed/syslimits.h:7,
from /usr/lib/gcc/arm-linux-gnueabihf/4.6/include-fixed/limits.h:34,
from /usr/include/python2.7/Python.h:19,
from source/py_gpio.c:23:
/usr/include/features.h:356:25: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/build/rpi.gpio/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-CRXER_-record/install-record.txt failed with error code 1 in /build/rpi.gpio
Storing complete log in /root/.pip/pip.log
EDIT: Never mind, fixed it by reinstalling libc6-dev packages.