Hi guys, I am trying to install cffi on to my raspberry pi! I get this error: command 'gcc' failed with exit status 1. I have installed all the development packages and it still does not work. However when i run apt-get update i receive an error that some index files could not be downloaded. Could this be my problem? How do i fix it? Any ideas?Thanks in advance!

when you ask questions such as this. You need to give precise information. Based on the package manager 'apt-get' we can already decipher what operating system and what distro, ubuntu/debian, but it would still be helpful to explicitly say what operating system, and what linux distro you are using. What exact command did you use to get the error? Like micseydel said, what is the error exactly? What exactly are the development packages you installed? I am not currently on an Ubuntu system, so i cannot see the repos...Are you installing this "cffi" from the repo or are you compiling it from scratch, and if so what is the command you are using to compile?

Sorry i am an extreme beginner to this. I actually solved my problem by installing libffi-dev. However this led on to a new issue similar to the first. I was installing the cffi from a download using the "python setup.py install" command. After the successful install i wen to to install smbus-cffi which now give me the same error i got from the cffi install. Unfortunately i will be unable to post the full error until tomorrow.Thanks for your help!