macports trouble on OS X Lion
Goldberg, Arthur P
arthur.p.goldberg at mssm.edu
Thu Jun 7 08:38:38 PDT 2012
Thanks Ryan
No, '/usr/include/stdio.h' doesn't exist.
I'm running Xcode Version 4.2.1 on OS X Lion. The Downloads section in Preferences offers Components and Documentation.
All the Components are iOS parts. Do I need to install the documentation, or reinstall Xcode from Apple horrible web store?
A
On Jun 6, 2012, at 1:24 PM, Ryan Schmidt wrote:
>
> On Jun 6, 2012, at 11:36, Goldberg, Arthur P wrote:
>
>> Another problem
>>> $ sudo port install mercurial
>>> Password:
>>> ---> Computing dependencies for mercurial
>>> ---> Fetching archive for mercurial
>>> ---> Attempting to fetch mercurial-2.2.1_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/mercurial
>>> ---> Fetching distfiles for mercurial
>>> ---> Attempting to fetch mercurial-2.2.1.tar.gz from http://mercurial.selenic.com/release/
>>> ---> Verifying checksum(s) for mercurial
>>> ---> Extracting mercurial
>>> ---> Applying patches to mercurial
>>> ---> Configuring mercurial
>>> ---> Building mercurial
>>> Error: org.macports.build for port mercurial returned: command execution failed
>>> Please see the log file for port mercurial for details:
>>> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_mercurial/mercurial/main.log
>>> To report a bug, follow the instructions in the guide:
>>> http://guide.macports.org/#project.tickets
>>> 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.
>
> Does /usr/include/stdio.h actually exist? If not, reinstall Xcode, or if you haven't already, install the command line tools; as of Xcode 4.3 this is a separate installation that must be done from within the Xcode application's Downloads section.
>
>
>
More information about the macports-users
mailing list