1

I want to initialize a folder for a new HTML project. The folder is called HTML. I want to create ".git"(repository?) in that folder. Here is what I keep getting after I put "git init" after my folder name:

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 

What does this mean? Is there another command I should use? I need to initialize the folder so that .git comes up.

I've tried to fix this on my own by using different folders and nothing is getting created under "git init". Git is properly installed on my Mac.

John Kugelman
  • 349,597
  • 67
  • 533
  • 578
April1900
  • 21
  • 2
  • 4
    Please show us the exact command you typed. – Kevin Nov 25 '14 at 21:51
  • 2
    Simply typing `git init` while you're in the directory should work. If that's what you're doing and you get those errors, then git is *not* properly installed. – Keith Thompson Nov 25 '14 at 22:00
  • `git init` is enough to create a repo. If you want to create a bare git repo, thats different. – Indigo Nov 25 '14 at 22:56
  • I looked into this and was told that my Mac version is older and not compatible with the new Git version. I have Mountain Lion. Now I want to uninstall Git, and reinstall an older version but don't know. SMH. – April1900 Nov 26 '14 at 01:09

3 Answers3

0

Good introduction here: http://shaun.boyblack.co.za/blog/2009/03/14/getting-started-with-git-on-mac-os-x/

git init (without additional words) creates a new git repo in the current working directory. Navigate to the root folder of your project and use it.

vernon
  • 1
0

Using the following steps will help you to use "git init"

  1. https://git-scm.com/book/en/v2/Getting-Started-Installing-Git Based on your OS, use the above link to install git on your machine.

  2. After the installation is successful, open terminal. Run git on the terminal and the result will appear as followsInstalled git successfully

  3. After this, run git --version to check the git version. Note, there is a space between git and --version.

  4. Checking GIT version

  5. Now, create a folder where git repo is to be created.

  6. After selecting that folder, run, "git init"
  7. Please check this link for further steps. Git commands not working in Mac terminal: "dyld: Symbol not found: ___strlcpy_chk" error
-1

Please check this thread: git + mountain lion + dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk

It is for a very similar issue on Mac. What is your Mac OS X version? Did you ever used/configured git on this Mac before? Can you run commands like git --version or git config -l ?

Community
  • 1
  • 1
Konstantinos
  • 101
  • 1
  • 9
  • You should flag the question as a duplicate – Andrew C Nov 25 '14 at 22:52
  • Ah gotcha, I didn't check to see what reputation is needed for that. I've flagged it. Thanks. – Andrew C Nov 25 '14 at 23:20
  • I am using Mac Lion. I also posted a question about how to uninstall Git and start over since I cant get past it. I was told on another forum my Mac version is not compat with the new Git. I want to uninstall it and install an older Git version or uninstall it and update my Mac. I just need to uninstall it now. – April1900 Nov 26 '14 at 03:50
  • @April1900 if that case has been closed in your oppinion, you may check the answer that satisfies you best. – Konstantinos Nov 26 '14 at 17:48