gpt4 book ai didi

haskell - 无法生成 hoogle 数据,因为 wget 证书已过期?

转载 作者:行者123 更新时间:2023-12-01 11:36:05 24 4
gpt4 key购买 nike

我正在尝试运行“hoogle 数据”,我将其作为输出:

Downloading downloads/base.txt
# base.txt (for downloads/base.txt)
ERROR: cannot verify www.haskell.org's certificate, issued by '/C=BE/O=GlobalSign nv-sa/CN=GlobalSign Organization Validation CA - G2':
Issued certificate has expired.
To connect to www.haskell.org insecurely, use `--no-check-certificate'.
hoogle: Error when running Shake build system:
* default.hoo
* platform.hoo
* mtl.hoo
* base.txt
* downloads/base.txt.cache
* downloads/base.txt
Development.Shake.command, system command failed
Command: wget -nv http://www.haskell.org/hoogle/base.txt --output-document=downloads/base.txt
Exit code: 5
Stderr:
ERROR: cannot verify www.haskell.org's certificate, issued by '/C=BE/O=GlobalSign nv-sa/CN=GlobalSign Organization Validation CA - G2':
Issued certificate has expired.
To connect to www.haskell.org insecurely, use `--no-check-certificate'.

我不确定该怎么做,上次我运行 hoogle 数据时它正常工作并生成了所有内容,但我不知道如何解决此错误。

最佳答案

要解决这个问题,请尝试为 wget 创建一个包装器:

我假设您安装的 wget 位于/usr/bin/wget

将此文件另存为 wget 在您的 $PATH 中,并确保它是可执行的:

#!/bin/sh
/usr/bin/wget --no-check-certificate "$@"

现在重试您的 hoogle 命令。

关于haskell - 无法生成 hoogle 数据,因为 wget 证书已过期?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26936676/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com