bytestring-lexing-0.4.3.2 在配置步骤中失败

bytestring-lexing-0.4.3.2 failed during the configure step

cabal install hedis

由于其依赖项而失败 - bytestring-lexing 未安装。错误信息是,

bytestring-lexing-0.4.3.2 failed during the configure step. The exception was:
ExitFailure 1
hedis-0.6.5 depends on bytestring-lexing-0.4.3.2 which failed to install.

为了解决此包失败的原因,我使用此命令

grep 查找 bytestring-lexing 的本地安装
 ghc-pkg field bytestring-lexing depends                                                                                                   

但是没有本地包,

ghc-pkg: cannot find package bytestring-lexing

现在不是版本冲突,还有什么可能导致这个错误?

错误消息只是表明它无法找到包 bytestring-lexing。所以请先尝试安装该软件包:

cabal install bytestring-lexing

然后再次尝试安装 hedis