前段时间我安装了nix,但我已将其删除,但是现在当我尝试安装threadscope时,我得到了以下错误:
Henriks-MBP:trial henke$ brew install homebrew/gui/Threadscope
==> Installing threadscope from homebrew/gui
==> Installing dependencies for homebrew/gui/threadscope: libpng, freetype, fontconfig, pixman, gettext, libffi, glib, cairo, ghc, jpeg, libtiff, gobject-introspection, gdk-p
==> Installing homebrew/gui/threadscope dependency: libpng
==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.21.el_capitan.bottle.tar.gz
curl: (77) SSL: can't load CA certificate file /Users/henke/.nix-profile/etc/ssl/certs/ca-bundle.crt
Error: Failed to download resource "libpng"
Download failed: https://homebrew.bintray.com/bottles/libpng-1.6.21.el_capitan.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.21.tar.xz
curl: (19) Given file does not exist
Trying a mirror...
==> Downloading https://dl.bintray.com/homebrew/mirror/libpng-1.6.21.tar.xz
curl: (77) SSL: can't load CA certificate file /Users/henke/.nix-profile/etc/ssl/certs/ca-bundle.crt
Error: Failed to download resource "libpng"
Download failed: https://dl.bintray.com/homebrew/mirror/libpng-1.6.21.tar.xz
现在为什么自制软件试图在.nix-profile
中查找内容以及如何安装线程范围依赖项呢?
答案 0 :(得分:5)
这不是专门研究.nix-profile
目录的自制软件。这是安装nix
的片段。
安装nix
后,它安装了自己的CA证书。检查SSL_CERT_FILE
的值。就我而言:
$ echo $SSL_CERT_FILE
/Users/my-user/.nix-profile/etc/ssl/certs/ca-bundle.crt
尝试将curl
与https
一起使用时,我遇到了此证书的问题,这就是自制软件正在做的事情。
我假设您刚刚删除了nix
并且仍然在shell中设置了该变量。如果你只是关闭任何当前打开的shell并打开全新的shell,这应该是固定的。
你也可以在任何打开的shell中尝试unset SSL_CERT_FILE
,而不是关闭/打开它们。