ld: library not found for -lssl

#本地環境 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。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章