码迷,mamicode.com
首页 > 其他好文 > 详细

ld: library not found for -lssl

时间:2020-02-06 12:20:20      阅读:69      评论:0      收藏:0      [点我收藏+]

标签:方案   voc   安全   安装   exit   lang   cos   ==   软件   

#本地环境 macOS 10.14.6 (18G2022) #报错信息 ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command ‘/usr/bin/clang‘ failed with exit status 1 #解决方案(安装openssl) openSSL是有安全漏洞的,所以部分系统使用LibreSSL取代OpenSSL, (其他用LibreSSL 取代 OpenSSL的系统还有:OpenBSD 自 5.6 起,Alpine Linux 自 3.5.0 起),可以通过下面的命令查看。 ? .pip openssl version LibreSSL 2.6.5 但是,有些软件还是依赖openssl的,可以通过如下方式处理: 将Mac下的openssl更新到最新版本 确认已安装的openssl的版本和位置 $ which openssl /usr/bin/openssl $ openssl version LibreSSL 2.6.5 $ brew install openssl brew更新openssl $ brew upgrade openssl brew强制链接到openssl $ brew link openssl --force 以上就是将Mac下的openssl更新到最新版本的介绍。 上面操作完成后,就可以pip3 install mysqlclient==1.4.6。

ld: library not found for -lssl

标签:方案   voc   安全   安装   exit   lang   cos   ==   软件   

原文地址:https://blog.51cto.com/10983441/2469420

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!