Is there a way to install gcc in OSX without installing Xcode?

后端 未结 9 1193
囚心锁ツ
囚心锁ツ 2020-11-28 06:54

I\'ve googled the hell out of it, and it seems like there is no way to install gcc on OS X without installing Xcode (which takes at leats 1.5GB of space). All I need is gcc

相关标签:
9条回答
  • 2020-11-28 07:41

    install Command Line Tool separately.

    refer to

    1. http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x
    2. http://osxdaily.com/2012/07/06/install-gcc-without-xcode-in-mac-os-x/
    0 讨论(0)
  • 2020-11-28 07:45

    Checkout command line tools for Xcode from apple. It's official support from apple to only create the command line tools.

    0 讨论(0)
  • 2020-11-28 07:46

    Install the GCC package from the Packages directory in Xcode's disk image and you'll have just GCC. Note that of course you won't have autotools or other standard build tools, for which you will have to install more packages from that folder.

    0 讨论(0)
提交回复
热议问题