install pygit2: fatal error: 'git2.h' file not found
还没有人认领这个 Issue。
评估
调研方向
首先,在报告的 macOS Python 2.7 环境中重现 sudo pip install git-deps,并检查 pygit2 围绕缺失的 git2.h 头文件的构建要求。追踪项目是否记录或控制此依赖项;当安装成功,或所需的前置条件和失败原因得到清晰记录时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
maybe this is not a git-explode issue, but still I've run into it:
sudo pip install git-deps
results in:
creating build/temp.macosx-10.11-x86_64-2.7
building '_pygit2' extension
creating build/temp.macosx-10.11-x86_64-2.7/src
clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I/usr/local/Cellar/python@2/2.7.15/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/blob.c -o build/temp.macosx-10.11-x86_64-2.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 'clang' failed with exit status 1
----------------------------------------
Command "/usr/local/opt/python@2/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-u4aDlM/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-_osVGz/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-u4aDlM/pygit2/
- 主要语言
- Python
- 星标
- 60
- 派生
- 3
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aspiers/git-explode 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
aspiers/git-explode#7 ·
-
Ignores --prefix未关闭
难度 3/5 1-2 天 新手友好度 45/100
aspiers/git-explode#8 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
aspiers/git-explode#6 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
aspiers/git-explode#4 ·
-
Needs decent test coverage可能重新可做 @aspiers 于 3056 天前认领,目前没有进行中的 PR。 未关闭help wanted
aspiers/git-explode#2 · 已指派 1 人 ·
查看 aspiers/git-explode 的全部 Issue
相似的 Issue
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
workflow: a tick's dispatch counts as 'only this step', and no review self-grants a round unattended未关闭workflow
难度 2/5 1-3 小时 新手友好度 85/100
kristofdegrave/homeassistant-smart-charging#1505 ·
维护者通常 1 天内回复
-
metadata submission
难度 2/5 1-3 小时 新手友好度 82/100
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
canonical/content-cache-operator#163 · 1 条评论 ·
维护者通常 1 天内回复
-
[submission]未关闭submission
难度 1/5 1 小时以内 新手友好度 65/100
leanprover/lean-eval-submissions#1852 ·
维护者通常 1 天内回复