Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 547
Nabil Lemsieh Avatar asked Apr 11 '14 14:04

Nabil Lemsieh


2 Answers

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.

like image 106
Jason Lee Avatar answered Nov 14 '22 15:11

Jason Lee


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
like image 20
trojanfoe Avatar answered Nov 14 '22 13:11

trojanfoe