Setup script exited with error: command ‘gcc’ failed with exit status 1

I was getting this error when I was installing Plone 4a1 from terminal. after one day search i found this

sudo apt-get install python-dev

will do the trick.



  1. Unsure what distro you’re on (Debian-based something, given apt-get), but this post of mine ( should help. In particular, I’m referring to the packages listed there for install — that’s everything I need on my installs.

    The other stuff about virtualenv is handy as well, especially if/when you may use an OS that doesn’t have python2.4 as its default interpreter.

  2. thanks for that. Very helpfull
    I was trying to install ZODB3 and I get the same error “command gcc” message

  3. thank you for that information, it helps me installing ZODB3!!

  4. Hi,

    Nice fix, thanks for sharing…


  5. This helped me too

  6. thank you very much. i had some previous errors because of the gcc. great 🙂

  7. Thank you! I got my solution from you…
    Just 5 mins search vs your searching day haha
    U R great

Leave a Reply

Your email address will not be published. Required fields are marked *