Mac OS X echo $ PATH给出了奇怪的目录。 Xcode安装好吗?

时间:2012-09-25 19:27:24

标签: python c xcode macos gcc

我想知道Xcode是否安装正确,因为我在Mac OS X Mountain Lion上编译C程序时遇到了问题。为什么echo $ PATH的输出与Python.framework有关?

Shanes-MacBook-Pro:all_dsc chimpsarehungry$ echo $PATH
    /Library/Frameworks/Python.framework/Versions/Current/bin:/sw/bin:/sw/sbin:/Library/Frameworks/Python.framework/Versions/3.2/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11R6/bin

我开始研究安装Xcode的问题,因为当我尝试编译C程序时出现以下错误。

Shanes-MacBook-Pro:all_dsc chimpsarehungry$ gcc main.c
Undefined symbols for architecture x86_64:
  "_output_res", referenced from:
      _main in cc1YZOoj.o
  "_pred_acc", referenced from:
      _main in cc1YZOoj.o
  "_predict_sequence", referenced from:
      _main in cc1YZOoj.o
  "_read_sequence", referenced from:
      _main in cc1YZOoj.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status

输入'make'时出现类似的错误。我是全新的。我将发布一个关于运行C程序和将来编译的问题。但就目前而言,我只想解决这个奇怪的目录。

0 个答案:

没有答案