OSX上的gcc在哪里?我已经安装了Xcode [英] Where is gcc on OSX? I have installed Xcode already
问题描述
我已经从工具cd安装了Xcode,我想这会让我从命令行使用gcc,但是我找不到它。
我是什么失踪
编辑
当我写下时,找不到我的意思是我使用查找它,其中gcc
如果 gcc
首先会在 PATH
中, 会找到它。
由于 gcc
不在 PATH
中(这是我第一次来到这里的)其中
不会找到它!
我认为这很明显,但我在这里做笔记是因为它不是
您没有选中显示UNIX Development Support [1](或者您可能没有选中它;我不记得它是否默认启用),因此它没有在 / us中安装必要的符号链接和驱动程序r / bin /
。
重新安装,并确保阅读配置选项的描述并选择您需要的配置选项。 p>
1:可选内容允许从引导卷进行命令行开发。安装GCC编译器和命令行工具的副本等等等等......
I have installed Xcode from the Tool cd, I thought that would let me use gcc from the command line but I can't find it.
What am I missing
EDIT
When I wrote I can't find it I meant "I look for it using which gcc
"
If gcc
would have been in the PATH
in first place, which
would have find it.
Since gcc
is not in the PATH
( that's what brought me here in first place ) which
won't find it!
I think that was obvious but I'm making the note here because it wasn't
You didn't check the box that says "UNIX Development Support"[1] (or possibly you unchecked it; I can't remember if it's on by default or not) when you did the install, so it didn't install the necessary symlinks and drivers in /usr/bin/
.
Reinstall, and make sure to read the descriptions of the configuration options and select the ones that you need.
1: "Optional content to allow command-line development from the boot volume. Installs a duplicate of the GCC compiler and command line tools blah blah blah..."
这篇关于OSX上的gcc在哪里?我已经安装了Xcode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!