How to install clang (11) without xcode?
-
30-05-2021 - |
Question
My brother gave me ssh access to his macbook (uname -a
says 19.6.0). I'd like to compile a few simple c files with clang (specifically clang and not gcc). I grabbed the clang 11 mac binary from the official site and move all the folders into /usr/local/
. which clang
gives me /usr/local/bin/clang
. If I do clang main.c
it just hangs. Even clang --version
hangs
How do I properly install this? There's no xcode or developers tools on it
Solution
Homebrew walks you through this command line install.
Basically, call xcode-select --install
and have your brother click OK one time to approve the installation.
Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange