使用终端进入curl的根目录下,执行

./configre CC=clang

make

make install

之后前往/usr/local/lib下生成了libcurl.a和相应的动态库,头文件在/user/local/include里

默认会使用openssl来支持,因此在引用libcurl.a的时候,要依赖一些动态库,在FLAG里加一下:

            -lssl  -lcrypto  -lldap

如果想换成其他的sll库,或者想自己配置curl,执行./configure --help 查看详细选项。

相关文章:

  • 2022-12-23
  • 2022-02-09
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-20
猜你喜欢
  • 2022-02-27
  • 2021-05-14
  • 2021-10-16
  • 2022-12-23
  • 2021-04-02
  • 2021-05-26
  • 2022-12-23
相关资源
相似解决方案