-1

我在这里

并看到:

Command Line UI

There is a terminal/curses based UI available through cabal install bhoogle.

我想用堆栈而不是 cabal 安装。我跑

$ stack install hoogle
Copied executables to /home/username/.local/bin:
- bhoogle

这是在我的路上,太好了。让我们运行它:

$ 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

太好了,让我们这样做:

$ hoogle generate

Command 'hoogle' not found, but can be installed with:

sudo apt install hoogle

不如叫它bhoogle怎么样?

$ 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

是不是找不到可执行文件?让我们使用完整路径:

$ /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

如何初始化hoogle?

4

1 回答 1

-2

答案正在运行:

stack install hoogle

两次。

第一次安装了很多包,说:

$ stack install hoogle
Copied executables to /home/username/.local/bin:
- bhoogle

第二次它没有安装任何软件包并说:

$ 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
于 2018-09-19T00:47:53.947 回答