python headers are required to build mercurial error while installing

OK, I have been biking mercurial for a while and wanted to upgrade to the latest version
In the process of that, I got the error python headers are required to build mercurial
Here is the fix.
Just add

sudo apt-get install build-essential gcc python-dev

which it was missing.

For re-installation follow the steps listed on https://help.ubuntu.com/community/Mercurial

, , , , , , ,

  1. #1 by Kobe Subramaniam on February 4, 2012 - 9:48 am

    thanks for relieving me.

    • #2 by gullele on February 4, 2012 - 9:41 pm

      I am glad you are relieved 🙂

  2. #3 by ajing on February 16, 2012 - 12:32 am

    Thanks mate.

  3. #4 by Cristina on March 28, 2013 - 3:10 pm

    Thank you. This worked just fine :).

Leave a comment