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.
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.
Looks like /usr/local/git/bin/git
has been compiled with the wrong -mmacosx-version-min
value. You don't mention how it got there, so I cannot help further along that path.
I would recommend installing macports and simply doing:
$ sudo port install git-core git-extras
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With