OS X 10.9.2:检查C编译器是否工作...否 [英] OS X 10.9.2: checking whether the C compiler works... no

查看:100
本文介绍了OS X 10.9.2:检查C编译器是否工作...否的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装texinfo 5.2,并且在 ./configure 中遇到了一些问题,我认为这与C编译器有关。当我从Snow Leopard升级时,我没有执行干净的安装,所以也许这是问题的一部分。无论如何,这是我得到的:

I'm attempting to install texinfo 5.2, and I'm running into some issues during ./configure, which I believe are related to the C compiler. When I upgraded from Snow Leopard, I didn't perform a clean install, so perhaps that's part of the problem. Anyway, here's what I've got:

ryansmacbook:texinfo-5.2 ryan$ sudo ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64"                  CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64"                  CPP="gcc -E" CXXCPP="g++ -E"
Password:
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for perl... /usr/bin/perl
checking Perl version and Encode module... yes
checking for gawk... (cached) awk
checking for gcc... gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64
checking whether the C compiler works... no
configure: error: in `/Users/ryan/Downloads/texinfo-5.2':
configure: error: C compiler cannot create executables
See `config.log' for more details

我已经阅读了一些与此相关的其他问题,所以我试图安装命令行工具。

I've read some of the other questions related to this, so I attempted to install Command Line Tools.

ryansmacbook:~ ryan$ xcode-select -p
/Applications/Xcode.app/Contents/Developer

所以看起来他们没有安装,尽管我正在运行Xcode 5.1应用商店。从我读过的,命令行工具应该被安装,但我已经尝试了

So it seems they're not installed, although I'm running Xcode 5.1 installed from the App Store. From what I've read, Command Line Tools should be installed, but I've tried

$ xcode-select --install

当我告诉它安装时,会弹出一条消息说:无法安装软件,因为它目前不能从软件更新服务器上获得。

anyway, and when I tell it to install, a message pops up saying "Can't install software because it is not currently available from the Software Update server."

我发现我认为可能是 http ://www.topbug.ne​​t/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ ,所以我做了以下工作:

I found what I thought might be a work-around at http://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/, so I did the following:

这篇关于OS X 10.9.2:检查C编译器是否工作...否的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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