Brew Caveats的含义是什么?

时间:2017-01-16 15:25:45

标签: python bash homebrew

当我brew install python

时,这是什么意思
Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/openssl/lib
    CPPFLAGS: -I/usr/local/opt/openssl/include
  1. .pem个文件是什么?
  2. Keg-only,这些是否意味着我需要在我的bash配置文件中链接brew python以引用brew安装而不是在mac python中构建?

1 个答案:

答案 0 :(得分:1)

  1. pem个文件是证书文件(公钥);在使用TLS / SSL等加密(例如https://)时,您通常需要它们来验证远程端的真实性。您可以尝试使用Google搜索"PEM file",这可能会指导您,例如到What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats?

  2. keg-only意味着所安装的软件包不会污染全局命名空间(因此您不能意外地使用它并破坏事物)。 使用brew安装的python的最简单方法可能是将/usr/local/opt/python/bin/(或类似的,我现在没有brew可用)添加到PATH变量中{ {1}}。 (需要链接brew python 在bash配置文件的上下文中没有多大意义;你也应该使用术语符号链接而不是 link < / em>避免含糊不清)