配置:错误:C编译器无法使用Mavericks创建可执行文件 [英] configure: error: C compiler cannot create executables with Mavericks

查看:200
本文介绍了配置:错误:C编译器无法使用Mavericks创建可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经检查了stackoverflow,但尚未找到答案.

I've checked stackoverflow but haven't found an answer yet.

我正在尝试在Mavericks上安装wget,如此处所示.

I'm trying to install wget on Mavericks as shown here.

这就是我要得到的:

bolo:wget-1.14 Michelin$ subl config.log 
bolo:wget-1.14 Michelin$ ./configure --with-ssl=openssl
configure: configuring for GNU Wget 1.14
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking build system type... i386-apple-darwin13.0.0
checking host system type... i386-apple-darwin13.0.0
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/Michelin/Downloads/wget-1.14':
configure: error: C compiler cannot create executables
See `config.log' for more details

我的config.log:

My config.log:

https://gist.github.com/bolom/7552389

我安装了命令行工具的其他东西,但我不是汇编器:(

Other thing I have installed Command Line tools BUT I don't the assembler :(

B.

推荐答案

下面在Mavericks中为我解决了此问题.我不得不使用sudo来工作.

Below solved this for me in Mavericks. I had to use sudo for this to work.

来自 https://trac.macports.org/wiki/ProblemHotlist

Xcode许可协议

当尝试构建用于编译OS X应用程序(例如gimp-app)的端口时,编译可能会失败并出现xcodebuild错误.造成这种情况的可能原因之一是,可能需要从终端进行初次运行的xcodebuild来接受EULA,然后才能进行任何编译.运行:

When attempting to build a port which compiles an OS X app (e.g., gimp-app), the compilation may fail with an xcodebuild error. One of the possible causes of this is that an initial run of xcodebuild from the terminal may be needed to accept the EULA before any compilation can proceed. Run:

xcodebuild -license

xcodebuild -license

,然后按照提示进行操作.接受EULA后,请重新构建端口.

from a terminal window and follow the prompts. After accepting the EULA, rebuild the port again.

使用某些端口和某些版本的Xcode(例如,带有Xcode 4.4+的libunwind-header),您可能需要以根用户身份接受许可证,即:

With some ports and some versions of Xcode (e.g. libunwind-headers with Xcode 4.4+) you may need to accept the license as root, i.e.:

sudo xcodebuild -license

sudo xcodebuild -license

任何Xcode升级后,都需要重复此操作.

This will need to be repeated after any Xcode upgrade.

这篇关于配置:错误:C编译器无法使用Mavericks创建可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆