Skip to main content
Tweeted twitter.com/#!/askdifferent/status/332042305987047425
added 671 characters in body
Source Link

I have a configure on Mountain Lion that's running into trouble:

[snip]
checking for gcc...
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
checking whether the C compiler works... no
configure: error: in `/Users/jonathan/Downloads/httpd-2.4.4':
configure: error: C compiler cannot create executables
See `config.log' for more details

Meanwhile, I have just opened Xcode and installed command-like tools, including /usr/bin/gcc.

Is there a way I can invoke the configure script so it will take /usr/bin/gcc as the C compiler?

And when I specified:

CC=/usr/bin/gcc

It gives:

checking how to run the C preprocessor... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc -E
configure: error: in `/Users/jonathan/Downloads/httpd-2.4.4':
configure: error: C preprocessor "/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc -E" fails sanity check
See `config.log' for more details

For now I'll ask: how do I tell it what to use as the C preprocessor?

(Long-term what I'd like is to know why it's not aware of standard command line tools and pulls C-related functionality from an esoteric place.

I have a configure on Mountain Lion that's running into trouble:

[snip]
checking for gcc...
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
checking whether the C compiler works... no
configure: error: in `/Users/jonathan/Downloads/httpd-2.4.4':
configure: error: C compiler cannot create executables
See `config.log' for more details

Meanwhile, I have just opened Xcode and installed command-like tools, including /usr/bin/gcc.

Is there a way I can invoke the configure script so it will take /usr/bin/gcc as the C compiler?

I have a configure on Mountain Lion that's running into trouble:

[snip]
checking for gcc...
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
checking whether the C compiler works... no
configure: error: in `/Users/jonathan/Downloads/httpd-2.4.4':
configure: error: C compiler cannot create executables
See `config.log' for more details

Meanwhile, I have just opened Xcode and installed command-like tools, including /usr/bin/gcc.

Is there a way I can invoke the configure script so it will take /usr/bin/gcc as the C compiler?

And when I specified:

CC=/usr/bin/gcc

It gives:

checking how to run the C preprocessor... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc -E
configure: error: in `/Users/jonathan/Downloads/httpd-2.4.4':
configure: error: C preprocessor "/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc -E" fails sanity check
See `config.log' for more details

For now I'll ask: how do I tell it what to use as the C preprocessor?

(Long-term what I'd like is to know why it's not aware of standard command line tools and pulls C-related functionality from an esoteric place.

Source Link

How do I specify what is used as the real C compiler?

I have a configure on Mountain Lion that's running into trouble:

[snip]
checking for gcc...
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc
checking whether the C compiler works... no
configure: error: in `/Users/jonathan/Downloads/httpd-2.4.4':
configure: error: C compiler cannot create executables
See `config.log' for more details

Meanwhile, I have just opened Xcode and installed command-like tools, including /usr/bin/gcc.

Is there a way I can invoke the configure script so it will take /usr/bin/gcc as the C compiler?