3

I'm trying to run 'hoogle data', and I get this as the output :

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'.

I'm not sure what to do, last time I ran hoogle data it just worked and generated everything, but I can't figure out how to get around this error.

4

1 回答 1

5

要解决此问题,请尝试为以下内容创建包装器wget

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

将此文件保存wget在您的某个$PATH位置并确保它是可执行的:

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

现在重试您的 hoogle 命令。

于 2014-11-14T18:41:53.850 回答