ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
738 stars 134 forks source link

'hoogle data all' fails with the shipped wget on OS X 10.10 #110

Open blitzcode opened 9 years ago

blitzcode commented 9 years ago

When setting up a new hoogle database with version 4.2.40 on OS X 10.10 executing 'hoogle data all' fails with the following:

Downloading downloads/hoogle.tar.gz
# hoogle.tar.gz (for downloads/hoogle.tar.gz)
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.
wget: unrecognized option `--no-check-certificate'
Downloaded downloads/hoogle.tar.gz
hoogle: Error when running Shake build system:
* OracleQ (HoogleVersion "all")
* downloads/hoogle.index
* downloads/hoogle.tar
* downloads/hoogle.tar.gz
Error, rule with ?> failed to build file:
  downloads/hoogle.tar.gz

It seems like the wget shipped with OS X is too old. Installing a new wget with homebrew seems to fix it. It would be nice if Hoogle could work with the default version or check and complain about the old one.

ndmitchell commented 9 years ago

With Hoogle 5 I use the tar/http libraries from Haskell, which works and has no dependency on wget, so the plan is certainly to eliminate that problem. See http://neilmitchell.blogspot.co.uk/2015/01/hoogle-5-is-coming.html for the Hoogle 5 plans.

blitzcode commented 9 years ago

Oh, I did not see that before, very neat. In any case, that certainly addresses my concern, thanks!