Then you need to install the command-line tools in Terminal. How to find App Store? Do a “Spotlight Search” by typing ⌘ Space and start typing App Store and hit Enter when it guesses correctly. Now you need the compiler, so you need to go to App Store and install Xcode which is Apple’s compiler and development tools. How do I compile C program in Mac terminal? How do I install the latest version of bash on a Mac?.How do you check if you are using bash or zsh?.How do I set the default fish terminal?.How do I compile C program in Mac terminal?.