美文网首页
openssl/aes.h: No such file or d

openssl/aes.h: No such file or d

作者: MdWhat | 来源:发表于2018-04-11 10:49 被阅读43次

解决方法:

1.命令行执行:xcode-select —install,安装xcode命令行工具,等安装完成;这样之后,/usr/local//Cellar/1.0.2k/include/openssl目录里就已经包含了相关的头文件(不同版本的openssl的版本文件夹名可能不同)。

2./Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/路径下创建openssl目录(可能创建文件夹需要权限问题,右键没有直接的创建文件夹,就点击上面的设置的按钮,有创建新文件夹,输入密码即可)

3.把 /usr/local/Cellar路径下,打开openssl,打开1.0.2k,打开include,打开openssl,然后把所有的.h文件复制到2中到openssl文件中(如果不知道怎么打开/usr/local/Cellar,就在Finder上右键,点击前往文件夹,输入/usr/local/Cellar即可)。

相关文章

网友评论

      本文标题:openssl/aes.h: No such file or d

      本文链接:https://www.haomeiwen.com/subject/gydahftx.html