macports trouble on OS X Lion

Goldberg, Arthur P arthur.p.goldberg at
Wed Jun 6 09:36:15 PDT 2012

Another problem
$ sudo port install mercurial
--->  Computing dependencies for mercurial
--->  Fetching archive for mercurial
--->  Attempting to fetch mercurial-2.2.1_0.darwin_11.x86_64.tbz2 from
--->  Fetching distfiles for mercurial
--->  Attempting to fetch mercurial-2.2.1.tar.gz from
--->  Verifying checksum(s) for mercurial
--->  Extracting mercurial
--->  Applying patches to mercurial
--->  Configuring mercurial
--->  Building mercurial
Error: for port mercurial returned: command execution failed
Please see the log file for port mercurial for details:
To report a bug, follow the instructions in the guide:
Error: Processing of port mercurial failed

In the log file I find a fatal error:
:info:build /opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:33:10: fatal error: 'stdio.h' file not found
:info:build #include <stdio.h>
:info:build          ^
:info:build 1 error generated.
:info:build error: command '/Developer/usr/bin/clang' failed with exit status 1

I don't understand why 'stdio.h' wouldn't be found. I've installed XCode.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.log
Type: application/octet-stream
Size: 29004 bytes
Desc: main.log
URL: <>

More information about the macports-users mailing list