找不到’openssl / opensslv.h’文件

  • Post author:
  • Post category:其他


Every system update is an adventure when you’re a software engineer.  We do everything we can to use virtual machines so that we have (almost) complete control of the environment but sometimes you simply need to work on your host system.  Everything goes great until you update your operating system and boom: you run into an issue you thought you had fixed before.

当您是软件工程师时,每次系统更新都是一次冒险。 我们会竭尽所能使用虚拟机,以便(几乎)完全控制环境,但是有时您只需要在主机系统上工作即可。 在您更新操作系统和繁荣之前,一切都会变得很好:您遇到了以前认为已解决的问题。

One such issue is the

'openssl/opensslv.h' file not found

problem I get when updating El Capitan.   Each OS update breaks my local dev environment and I have to scramble to get the snippet to fix everything again.  The snippet I need is:

这样的问题之一是在更新El Capitan时遇到的

'openssl/opensslv.h' file not found

问题。 每次操作系统更新都会破坏我的本地开发环境,因此我必须争先恐后以获取摘要以再次修复所有问题。 我需要的代码段是:


# "'openssl/opensslv.h' file not found"
brew install openssl
brew link openssl --force


That snippet installs openssl and reestablishes the links required for access from anything that wants to use it.

该代码段将安装openssl并重新建立从任何想要使用它的对象进行访问所需的链接。

找不到符号:_BIO_new_CMS

(

Symbol not found: _BIO_new_CMS

)

Hand in hand with the original issue is this one whereby cryptography has a fit.  Here’s how I fix the _BIO_new_CMS problem:

与原始问题紧密相关的是密码学适合的这一问题。 这是解决_BIO_new_CMS问题的方法:


# Symbol not found: _BIO_new_CMS
pip uninstall cryptography
LDFLAGS="-L/usr/local/opt/openssl/lib" pip install cryptography --no-use-wheel



I found each of these snippets on the third page of a random forum so hopefully having them in one place saves someone a bunch of time!

我在随机论坛的第三页上找到了每个片段,因此希望将它们放在一个地方可以节省一些时间!

翻译自: