[英]Installing bhoogle through stack
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.我想用堆栈而不是 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 怎么样?
$ 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?如何初始化hoogle?
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.