通过堆栈安装 bhoogle
Installing bhoogle through stack
我是 here
并查看:
Command Line UI
There is a terminal/curses based UI available through cabal install bhoogle.
我想用 stack 而不是 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?
答案是运行:
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
我是 here
并查看:
Command Line UI
There is a terminal/curses based UI available through cabal install bhoogle.
我想用 stack 而不是 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?
答案是运行:
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