GIT_VERSION = 2.10.0 * new build flags CC credential-store.o In file included from cache.h:4:0, from credential-store.c:1: git-compat-util.h:280:25: fatal error: openssl/ssl.h: No such file or directory #include <openssl/ssl.h> ^ compilation terminated. make: *** [credential-store.o] Error 1
时间: 2024-02-11 13:04:10 浏览: 42
Git-2.39.1-64-bit
这个错误是由于缺少OpenSSL库导致的。您需要安装OpenSSL库来解决此问题。您可以按照以下步骤操作:
1. 使用以下命令安装OpenSSL库:
```
sudo apt-get install libssl-dev
```
2. 重新编译并安装git:
```
make configure
./configure --prefix=/usr
make all
sudo make install
```
这应该解决您遇到的问题。
阅读全文