简体   繁体   English

cabal-install不保留版本为happy

[英]cabal-install does not retain the version for happy

I've trying to do cabal install hoogle but there is a hickup with the haskell-src-exts-1.13.5 dependency: 我试图做cabal install hoogle但是有一个与haskell-src-exts-1.13.5依赖关系haskell-src-exts-1.13.5

Configuring haskell-src-exts-1.13.5...
setup: The program happy version >=1.17 is required but it could not be found.

When I try to do cabal install happy it seems to finish successfully, but cabal-install does not retain the version: 当我尝试做cabal install happy它似乎成功完成,但cabal-install不保留版本:

>$ cabal list happy
* happy
    Synopsis: Happy is a parser generator for Haskell
    Default available version: 1.18.10
    Installed versions: [ Unknown ]
    Homepage: http://www.haskell.org/happy/
    License:  BSD3

As you can see the version is [ Unknown ] . 如您所见,版本为[ Unknown ] It stays unknown, and cabal-install remains oblivious if I try to run cabal install happy again. 它仍然未知,如果我尝试再次运行cabal install happy ,cabal-install仍然无动于衷。

What gives? 是什么赋予了?

Thanks in advance! 提前致谢!

Looks like cabal does not show Installed versions for executables, but for libraries only. 看起来cabal没有显示可执行文件的Installed versions ,但仅适用于库。

Maybe cabal install happy somewhere to your home directory, for example in $HOME/.cabal/bin , and it's not in your PATH . 也许CABAL安装happy某处你的home目录,例如$HOME/.cabal/bin ,这是不是在你的PATH cabal install happy show this path in some last lines. cabal install happy在最后几行显示这条路径。 So you can add this path to your PATH and try to install haskell-src-exts again. 因此,您可以将此路径添加到PATH并尝试再次安装haskell-src-exts

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM