Если вы воспользовались стандартным инсталлятором с http://git-scm.com/download/mac, то впоследствии при выполнении команды git clone вы будете получать ошибку:
Поэтому нужно удалить эту инсталляцию запустив скрипт uninstall.sh из .img дистибутива, и установить Git другим путем.
Перво-наперво нужно установить Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
НЕ НУЖНО выполнять эту команду от имени root.
Далее можно установить Git.
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
Поэтому нужно удалить эту инсталляцию запустив скрипт uninstall.sh из .img дистибутива, и установить Git другим путем.
Перво-наперво нужно установить Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
НЕ НУЖНО выполнять эту команду от имени root.
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" ==> This script will install: /usr/local/bin/brew /usr/local/Library/... /usr/local/share/man/man1/brew.1 ==> The following directories will be made group writable: /usr/local/. /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig ==> The following directories will have their group set to admin: /usr/local/. /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig Press RETURN to continue or any other key to abort ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/. /usr/local/include /usr/local/lib /usr/local/lib/pkgconfig ==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew ==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew ==> Downloading and installing Homebrew... remote: Counting objects: 156997, done. remote: Compressing objects: 100% (44937/44937), done. remote: Total 156997 (delta 110973), reused 156971 (delta 110954) Receiving objects: 100% (156997/156997), 28.86 MiB | 631.00 KiB/s, done. Resolving deltas: 100% (110973/110973), done. From https://github.com/Homebrew/homebrew * [new branch] master -> origin/master Checking out files: 100% (3110/3110), done. HEAD is now at 9addf4a ice: build IcePHP extension Warning: Install the "Command Line Tools for Xcode": https://developer.apple.com/downloads/ ==> Installation successful! You should run `brew doctor' *before* you install anything. Now type: brew help
Далее можно установить Git.
$ brew install git ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/git-1.9.0.m ######################################################################## 100,0% ==> Pouring git-1.9.0.mountain_lion.bottle.tar.gz ==> Caveats The OS X keychain credential helper has been installed to: /usr/local/bin/git-credential-osxkeychain The 'contrib' directory has been installed to: /usr/local/share/git-core/contrib Bash completion has been installed to: /usr/local/etc/bash_completion.d zsh completion has been installed to: /usr/local/share/zsh/site-functions ==> Summary 🍺 /usr/local/Cellar/git/1.9.0: 1322 files, 32M