Reputation: 19694
I'm here
And see:
Command Line UI
There is a terminal/curses based UI available through cabal install bhoogle.
I'd like to install with stack rather than cabal. I run
$ stack install hoogle
Copied executables to /home/username/.local/bin:
- bhoogle
This is on my path, great. Let's run it:
$ bhoogle
bhoogle error: default hoogle database not found
at /home/username/.hoogle/default-haskell-5.0.17.hoo You can create the database by installing hoogle and running
hoogle generate
Great, let's do that:
$ hoogle generate
Command 'hoogle' not found, but can be installed with:
sudo apt install hoogle
How about calling it bhoogle instead?
$ bhoogle generate
bhoogle error:
default hoogle database not found
at /home/username/.hoogle/default-haskell-5.0.17.hoo
You can create the database by installing hoogle and running
hoogle generate
Is it not finding the executable? Let's use the full path:
$ /home/username/.local/bin/bhoogle generate
bhoogle error:
default hoogle database not found
at /home/username/.hoogle/default-haskell-5.0.17.hoo
You can create the database by installing hoogle and running
hoogle generate
How can I initialize hoogle?
Upvotes: -1
Views: 157
Reputation: 19694
The answer was running:
stack install hoogle
twice.
The first time it installed many packages and said:
$ stack install hoogle
Copied executables to /home/username/.local/bin:
- bhoogle
The second time it installed no packages and said:
$ stack install hoogle
Copying from /home/username/.stack/snapshots/x86_64-linux/lts-12.6/8.4.3/bin/hoogle to /home/username/.local/bin/hoogle
Copied executables to /home/username/.local/bin:
- hoogle
Upvotes: -2