Monday, May 31, 2010

error: command 'gcc' failed with exit status 1, in Ubuntu : Solved

I got the error:

error: command 'gcc' failed with exit status 1

while I was trying to install mysql-python.

While this problem almost make my hair white, I found this easy solution:

In terminal:
sudo apt-get install python-dev 

And thats it,
That's work for me...

Thanks,
Sakib

8 comments:

  1. Thanks for this explanation, I had the same error while installing psycopg2 (Postgresql driver) on Ubuntu 8.04 and installing python-dev also helped in this case.

    Franck Theeten

    ReplyDelete
  2. Hey thanks guys, this is exactly what I was looking for. :)

    ReplyDelete
  3. Thanks a lot.... you are a true savior.

    ReplyDelete
  4. Thank you for this. I was installing DrqueueIPython and got this error

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. this problem for is still exist :| what can i do?

    ReplyDelete