git command-line on Mac OS error "dyld: Symbol not found: ___strlcpy_chk"

Nabil Lemsieh picture Nabil Lemsieh · Apr 11, 2014 · Viewed 11.7k times · Source

I installed git on Mac os, when i try to create a new repository with git init, i get this error :

 dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
 Referenced from: /usr/local/git/bin/git
 Expected in: /usr/lib/libSystem.B.dylib

 dyld: Symbol not found: ___strlcpy_chk
 Referenced from: /usr/local/git/bin/git
 Expected in: /usr/lib/libSystem.B.dylib

 Trace/BPT trap: 5

NB: I don't have Xcode installed.

Answer

Jason Lee picture Jason Lee · May 12, 2014

you can consider my solution: Open XCode(Install one if you didn't install it.), and press "COMMAND + ,". Click "Download". Find "command line tool", download and install it.Then restart your mac,done!

Hope you can solve it with the same way.