Where is gcc on OSX? I have installed Xcode already

前端 未结 8 1552
醉酒成梦
醉酒成梦 2020-12-20 13:08

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

相关标签:
8条回答
  • 2020-12-20 14:03

    Is it possible that rather than not having gcc installed, your $PATH variable is messed up? first check if gcc is in /usr/bin manually. Then echo $PATH...

    0 讨论(0)
  • 2020-12-20 14:07

    Something went wrong with your install.

    gcc is installed under /usr/bin with a symlink to gcc-4.2:

    cd diciu$ pkgutil --file-info /usr/bin/gcc-4.2 
    volume: /
    path: /usr/bin/gcc-4.2
    
    pkgid: com.apple.pkg.gcc4.2Leo
    pkg-version: 4.2.0.9000000000.1.1249367152
    [..]
    pkgid: com.apple.pkg.Xcode3.2.1Update
    pkg-version: 1.0.1.1249367152
    [..]
    pkgid: com.apple.pkg.Xcode3.2.1UpdateUNIXDevSupport
    pkg-version: 1.0.1.1249367152
    [..]
    
    0 讨论(0)
提交回复
热议问题