Srv*_*v19 5 c++ windows git ssl mingw
我正在尝试从此存储库构建 Git:git-for-windows,它应该是具有特定于 Windows 的更改的 git 的最后一个版本。我在 Windows 上的 MinGw32 环境中工作。
我遇到了以下问题:当我尝试构建 git 时,我得到:
compat/mingw.h:134:25: fatal error: openssl/ssl.h:
No such file or directory #include <openssl/ssl.h>
Run Code Online (Sandbox Code Playgroud)
这是为什么?我已经使用make->make install序列在同一环境中从源代码安装了 openssl 。
特别是,ssl.h被安装到/usr/local/ssl/include/openssl/ssl.h和/local/ssl/include/openssl/ssl.h。
我该如何解决这个问题?
使用 MinGW-w64安装MSYS2。
打开 Mingw64 shell,添加以下包:
$ pacman -Sy mingw64/mingw-w64-x86_64-openssl \
mingw64/mingw-w64-x86_64-pcre2 \
mingw64/mingw-w64-x86_64-zlib
Run Code Online (Sandbox Code Playgroud)
克隆并构建 Git(如果你还没有 Git,你可以下载一个.zip 文件代替)
$ git clone https://github.com/git-for-windows/git.git
$ cd git
$ make
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1744 次 |
| 最近记录: |