Re: "C compiler cannot create executables" on Mavericks
Re: "C compiler cannot create executables" on Mavericks
- Subject: Re: "C compiler cannot create executables" on Mavericks
- From: Jon August <email@hidden>
- Date: Thu, 05 Dec 2013 15:56:10 -0500
I’m pretty sure I’ve done this, but maybe you can be more specific about step 2.
I have run this from terminal:
# xcode-select —install
which launches a gui that installs the command-line tools. Is there another way?
On Dec 5, 2013, at 3:53 PM, Rustam Muginov <email@hidden> wrote:
> 1) Download and install Xcode.
> 2) Inside the Xcode, install command-line tools.
>
> --
> Sincerely,
> Rustam Muginov
>
> On Dec 5, 2013, at 12:41 PM, Jon August <email@hidden> wrote:
>
>> Hi,
>>
>> I’m trying to compile apache httpd (along with other packages), and I’m getting the following error with configure:
>>
>> checking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc
>> checking for C compiler default output file name... configure: error: C compiler cannot create executables
>>
>> I noticed that the path to cc it’s using doesn't actually exist. I see a few other people on the Web with the same problem, but most are able to resolve this by installing the Xcode Command-Line Tools. Unfortunately, I've done this and it doesn't resolve the issue.
>>
>> If I pass the correct path for cc to configure, it will complete, but the make fails:
>>
>> /usr/share/apr-1/build-1/libtool --silent --mode=compile /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I. -I/Users/jon/Desktop/Sources/httpd-2.4.7/os/unix -I/Users/jon/Desktop/Sources/httpd-2.4.7/include -I/usr/include/apr-1 -I/usr/local/Cellar/pcre/8.33/include -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/aaa -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/cache -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/core -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/database -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/filters -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/ldap -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/loggers -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/lua -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/proxy -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/session -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/ssl -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/test -I/Users/jon/Desktop/Sources/httpd-2.4.7/server -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/arch/unix -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/dav/main -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/generators -I/Users/jon/Desktop/Sources/httpd-2.4.7/modules/mappers -prefer-non-pic -static -c unixd.c && touch unixd.lo
>> libtool: compile: unable to infer tagged configuration
>> libtool: compile: specify a tag with `--tag'
>> make[3]: *** [unixd.lo] Error 1
>> make[2]: *** [all-recursive] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all-recursive] Error 1
>>
>> This is a fresh install of Mavericks. Any help on getting it to compile some open source packages would be greatly appreciated.
>>
>> -Jon
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Darwin-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden