libcurl库 但是不支持 https 协议 现在加上openssl 来支持https
首先下载 openssl 源码https://www.openssl.org/source
我这边下载的是3.0.13
编译openssl 参考这个https://zhuanlan.zhihu.com/p/628437266
主要命令
./Configure darwin64-x86_64-cc --prefix="/Users/aa/Downloads/curl-openssl/openssl-x86_64" no-asm
make
make install
make clean
./Configure darwin64-arm64-cc --prefix="/Users/aa/Downloads/curl-openssl/openssl-arm64" no-asm
make
make install
完成之后 编译libcurl
https://blog.csdn.net/qq_40218744/article/details/112307286
参考这个。
./configure --disable-ldap --without-zlib --disable-ldaps --with-openssl="/Users/aa/Downloads/curl-openssl/openssl-x86_64" --prefix="/Users/qg/Downloads/curl-openssl/curl-x86_64"
make install
./configure --disable-ldap --without-zlib --disable-ldaps --with-openssl="/Users/aa/Downloads/curl-openssl/openssl-arm64" --prefix="/Users/qg/Downloads/curl-openssl/curl-arm64"
make install