devel for openssl是什么意思?

devel for openssl是什么意思?,openssl,Openssl,我正在尝试使用OpenSSL。但是我得到的错误是在OpenSSL目录中找不到'libs'dir ld: warning: directory not found for option '- L/Users/user56023/Documents/Software/openssl-1.0.1h/lib' ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v

我正在尝试使用OpenSSL。但是我得到的错误是在OpenSSL目录中找不到'libs'dir

ld: warning: directory not found for option '-       L/Users/user56023/Documents/Software/openssl-1.0.1h/lib'
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
非常正确,我在OpenSSL目录中找不到'lib'目录。我尝试搜索此错误并得到以下结果:


回复说要安装devel包。这是什么意思?“devel”是另一种软件还是OpenSSL中“开发”包的简称?从哪里下载?有人能帮忙吗?

你说得对-它是“开发包”的缩写

对于Linux,您需要如下命令:

yum为Redhat/Centos/openSUSE安装openssl-openssl-devel

apt get install openssl openssl dev#for Debian/Ubuntu


注意:这些命令使用“软件包管理器”来安装openssl(听起来您已经安装了:但安装不会有什么坏处)和openssl-devel。

我使用Mac。你能告诉我如何在Mac中实现这一点吗?让我试试自制。谢谢@FoggyDay!我会回来的!在Mac上尝试自制。我给出了命令“brew安装openssl openssl dev”,但它失败了,错误是:“错误:没有适用于openssl dev的公式”。这两个链接可能有帮助:[openssl版本MacOSX Homebrew](谢谢@FoggyDay!将签出并返回!相关: