Heim > Fragen und Antworten > Hauptteil
CC credential-store.o
In file included from credential-store.c:1:
In file included from ./cache.h:4:
./git-compat-util.h:270:10: fatal error: 'openssl/ssl.h' file not found
^
1 error generated.
make: * [credential-store.o] Error 1
如何整?
ringa_lee2017-05-02 09:25:55
没装libssl-dev没装。
http://stackoverflow.com/questions/3368683/how-to-compile-c-file-with-openssl-includes
世界只因有你2017-05-02 09:25:55
安装 Xcode-select 命令行工具
执行xcode-select -p 打印Xcode的工作目录:我的是 /Library/Developer/CommandLineTools
进入目录cd /Library/Developer/CommandLineTools/usr/include
找到openssl安装目录下的include目录,该目录下有个openssl文件夹,里面有需要的文件,把整个openssl文件夹copy过来
主要原因是Xcode-select目录下不再有openssl的头文件了,只需要把安装好的openssl的头文件copy过来就可以解决,如果你找不到openssl的安装位置,你也可以通过brew install openssl 安装然后去brew的安装目录寻找