Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hoogle data on Windows

I can install hoogle using cabal install hoogle on Windows, however, when I run hoogle data from MinGW shell, I encounter the following error:

$ hoogle data
Extracting tarball...
gzip: ..\hackage-cabal.tar.gz: No such file or directory
hoogle.exe: System command failed: gzip --decompress --force ..\hackage-cabal.ta
r.gz

How can I install hoogle easily on Windows?

like image 622
Sawyer Avatar asked Sep 23 '11 00:09

Sawyer


3 Answers

Make sure you don't have MinGW or Cygwin version's gzip in your path, if you install Windows version Git, you have MinGW installed by default, this will cause your gzip starts in the wrong directory, thus you may see the error:

No such file or directory

Use the installer version of the Windows compatible binary (all the binaries will be installed within one directory by default), and add the binary to windows path variable.

wget: http://sourceforge.net/projects/gnuwin32/files/wget/1.11.4-1/wget-1.11.4-1-setup.exe/download

gzip: http://sourceforge.net/projects/gnuwin32/files/gzip/1.3.12-1/gzip-1.3.12-1-setup.exe/download

tar: http://sourceforge.net/projects/gnuwin32/files/tar/1.13-1/tar-1.13-1-bin.exe/download

like image 157
Sawyer Avatar answered Nov 06 '22 22:11

Sawyer


To further clarify the answers given, what's going on is that hoogle internally is using windows paths while msys is making it see its view of the filesystem, resulting in hoogle being confused. To have this not happen fire up powershell, the windows version of the command line, and run hoogle data from there. You will need to have the GnuWin32 versions of wget, gzip and tar as mentioned by Sawyer. Once you've generated the data you will be able to use hoogle from msys without problem, though if later on you run hoogle data again you will still have to do it from powershell.

like image 24
user1477223 Avatar answered Nov 06 '22 23:11

user1477223


http://gnuwin32.sourceforge.net/packages.html has everything you'll need.

I went through this myself last week.

like image 1
llayland Avatar answered Nov 06 '22 23:11

llayland