ld: library not found for -lgcc_s.10.5

I picked up one of the recent Yosemite updates, "Command Line Tools (OS X 10.10) for XCode" and it nearly broke my npm package installations, each time running into this dreaded error:

ld: library not found for -lgcc_s.10.5  
clang: error: linker command failed with exit code 1 (use -v to see invocation)  

After spending quite some time debugging, reinstalling node/npm and digging Internet, I stumbled up on two tickets. One against node and one against node-gyp, that outlined the issue at hand.

That update I picked up, upgraded my XCode Command Line Tools, without upgrading XCode itself to 7. Wonderful.

The solution

Head to AppStore and install XCode 7. Once done, open XCode and accept the license agreement. After that, node-gyp seems to compile just fine.

comments powered by Disqus