문제

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

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 apple.stackexchange
scroll top