I always seem to forget this!
I work in Perl a lot and mostly develop on a Mac. When installing or updating perl modules I sometimes get errors like these:
ld: library not found for -lgcc_s.10.4
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The problem here is that gcc or make can’t be found, however this was working fine yesterday!
The cause is an update of Xcode. After installing / updating Xcode it’s necessary to (re-)install the command line tools. You can do this by running this from the command line:
xcode-select --install