每次尝试设置 pygit2 时,我都会遇到一个奇怪的问题。以下是我运行的内容和生成的错误。
$ python3 setup.py install
running install
running build
running build_py
running build_ext
building '_pygit2' extension
/usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/lib -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include -I/usr/local/include -Iinclude -I/usr/local/Cellar/python3/3.2.3/include/python3.2m -c src/pygit2.c -o build/temp.macosx-10.7-x86_64-3.2/src/pygit2.o
In file included from src/pygit2.c:32:
include/pygit2/error.h:6:10: fatal error: 'git2.h' file not found
#include <git2.h>
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)
我想我已经成功安装了 libgit2(构建和制作完成了)。也许这是一个路径问题?我已将 LIBGIT2 环境变量设置为 libgit2 文件夹中的 src 目录。那是正确的地方吗?
我正在开发一个PHP游戏,当然我需要创建大约1000个不同的表来存储各种类型的数据.我听说,如果我错了,请纠正我,InnoDB对于因为与MyISAM的表锁定相反的行锁定而会更新很多的表更好.但是MyISAM选择速度更快.
我的问题是,我应该坚持使用一种表格类型,还是根据表格的需要混合搭配?
最近我的iPhoto数据库搞砸了,我需要将所有原始文件从文件夹结构中提取到桌面上的中央文件夹.我想通过bash命令或脚本移动所有文件夹,而不是逐个遍历所有文件夹.有什么建议.
我研究了rsync,但我认为只采用文件夹结构.