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

标签 haskell hoogle

我正在尝试运行“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/

相关文章:

haskell - 如何在 Haskell 中搜索库版本?

haskell - 使用 DataKinds 时无法在 GHCI 中指定类型签名

haskell - "least"和 "greatest"在谈到定点时指的是什么顺序?

haskell - cabal 安装 hoogle 错误 - BuilderResponse 丢失

linux - cabal 安装 hoogle 不工作

haskell - 如何在 QuickCheck 中使用自定义 listOf

haskell - 如何派生具有类型族的记录的实例

haskell - 在 Haskell 数据类型中使用 Data.Array

haskell - Hoogle 和 yesod - 如何轻松查找非默认包中的函数