Where is gcc on OSX? I have installed Xcode already

前端 未结 8 1638
醉酒成梦
醉酒成梦 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: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
    [..]
    

提交回复
热议问题