下载最新版openssl
https://www.openssl.org/source/
安装
./Configure darwin64-x86_64-cc
make
make test
sudo make install
whichlydeMacBook-Air:~ wanyu$ which openssl
/usr/local/bin/openssl
lydeMacBook-Air:~ wanyu$ /usr/local/bin/openssl version
OpenSSL 1.1.0e 16 Feb 2017
其实只需要下载解压,找到 include/openssl 目录,copy到
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。