I was also plagued with git causing the dreaded:
dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
Referenced from: /usr/local/bin/git
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: ___strlcpy_chk
Referenced from: /usr/local/bin/git
Expected in: /usr/lib/libSystem.B.dylib
After reading many successfully executed suggestions revolving around updating xCode (>2G) or just the Command Line Tools part of xCode (~200M) I installed the Command Line Tools and this fixed my problem when using git from the command line.
Interestingly, I was having trouble with PyCharm getting the same error, even after I did the update. I was able to fix this by changing the path where git was found (In PyCharm->Preferences...->Version Control->Git, I changed /usr/local/bin/git to /usr/bin/git near the top):
Image of PyCharm->Preferences...->Version Control->Git
I finally figured out exactly what’s going on -- and to pay homage to all the help I received from the web, want to share the specifics:
I discovered there were two versions of git installed on my machine:
/usr/bin/git
/usr/local/git/bin/git
(also interestingly: /usr/local/bin/git -> ../git/bin/git)
Some suggestions for putting /usr/bin in the path are somewhat helpful, but might not solve the niggling problem that there’s a version of git installed that doesn’t work.
So note this:
$ pwd
/usr/local/git/bin
$./git --version
git version 2.8.1
And:
$ pwd
/usr/bin
$ ./git --version
git version 1.8.5.2 (Apple Git-48)
The Apple git version is the one that works -- this is the one likely installed by installing the Command Line Tools from xCode. Note the paths in each. Also note that you don't necessarily have to install the whole Command Line Tools, just a proper version of git.
Further, in the /usr/local/git/bin/ directory, there’s an uninstall.sh script. In that script, it uses pkgutil to uninstall the version of git. (You should use this script to do the uninstall.) You can run this line to verify that this utility has record of installing git:
pkgutil --packages | grep com.git.pkg
This is not the version you want. You want the Apple version. Use the script in the /usr/local/git/bin to uninstall the broken version of git.
Uninstalling it assures you will never get this error, and that you will be using the proper version of git.
Hope that helps some others. The info was good but incomplete. And there was almost nothing for PyCharm.