Fel*_*sén 7 haskell package cabal-install hlint
我首先尝试安装Hlint.cabal install hlint但后来我得到了错误:
cabal: Error: some packages failed to install:
cpphs-1.20.2 depends on old-time-1.1.0.3 which failed to install.
haskell-src-exts-1.18.2 depends on old-time-1.1.0.3 which failed to install.
hlint-1.9.37 depends on old-time-1.1.0.3 which failed to install.
old-time-1.1.0.3 failed during the configure step. The exception was:
ExitFailure 77
Run Code Online (Sandbox Code Playgroud)
然后我尝试安装ghc-mod,因为我读到hlint是该包的依赖项(?).认为它可以解决问题.所以我做了cabal install ghc-mod哪个给了我错误.
cabal: Error: some packages failed to install:
cpphs-1.20.2 depends on old-time-1.1.0.3 which failed to install.
ghc-mod-5.6.0.0 depends on old-time-1.1.0.3 which failed to install.
haskell-src-exts-1.17.1 depends on old-time-1.1.0.3 which failed to install.
hlint-1.9.35 depends on old-time-1.1.0.3 which failed to install.
old-time-1.1.0.3 failed during the configure step. The exception was:
ExitFailure 77
Run Code Online (Sandbox Code Playgroud)
所以在我的包裹周围似乎是同样的问题old-time-1.1.0.3.
有很多变量可以解释正在发生的事情,包括cabal-install版本ghc。如果您在问题中包含cabal --version和输出,这将会很有用。ghc --version
也就是说:我建议尝试使用Stack进行安装。安装 Stack 后(在 POSIX 系统上,通常足以运行curl -sSL https://get.haskellstack.org/ | sh),您可以使用stack --resolver lts-6.16 --install-ghc --no-system-ghc install hlint.