编译curl的时候不支持https

最近在使用curl库的时候,需要把openssl编译进去以支持https,但是在configure的时候已经设置了--with-ssl, 并且/usr/loacl目录下是安装了opensll的,但是还是提示checking for SSL_connect in -lssl... no ,configure: error: OpenSSL libs and/or directories were not found where speci这样的错误

换了几个curl和openssl的版本都解决不了问题,后来查看curl的config.log文件,发现可能是缺少dlopen类似的函数定义。

果段在curl的configure命令后加入LDFLAGS="-ldl -lrt"编译选项,成功。。。。这破事足足花了我三四个小时。。。

猜你喜欢

转载自blog.csdn.net/a549875231/article/details/51175560