Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blob.h:33:10: fatal error: 'git2.h' file not found #85

Closed
kamal2222ahmed opened this issue Jan 22, 2019 · 1 comment
Closed

blob.h:33:10: fatal error: 'git2.h' file not found #85

kamal2222ahmed opened this issue Jan 22, 2019 · 1 comment

Comments

@kamal2222ahmed
Copy link

kamal2222ahmed commented Jan 22, 2019

could not install on mac:

$sudo pip install git-deps
   gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/syedahmed/anaconda3/include -arch x86_64 -I/Users/syedahmed/anaconda3/include -arch x86_64 -I/usr/local/include -I/Users/syedahmed/anaconda3/include/python3.7m -c src/blob.c -o build/temp.macosx-10.7-x86_64-3.7/src/blob.o
    In file included from src/blob.c:30:
    src/blob.h:33:10: fatal error: 'git2.h' file not found
    #include <git2.h>
             ^~~~~~~~
    1 error generated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/Users/syedahmed/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-ahdxifbe/pygit2/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-x_ywauvu/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-ahdxifbe/pygit2/
@aspiers
Copy link
Owner

aspiers commented Jan 22, 2019

Sounds like you missed the first step of the installation described in option one which is installing libgit2 and pygit2. Please follow these instructions and then let me know if you still have an issue.

@aspiers aspiers closed this as completed Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants