简体   繁体   English

Xmonad构建失败:找不到模块control.monad.reader

[英]Xmonad build failed: cound not find module control.monad.reader

I'm trying to cabal install xmonad with profiling and I keep getting the error: cound not find module control.monad.reader 我正试图用分析安装xmonad并且我一直收到错误:cound not find module control.monad.reader

The error message suggested that I may not have installed the profiling libs for mtl-2.0.1.0, but I have confirmed that it is installed with ghc-pkg list | 错误消息表明我可能没有为mtl-2.0.1.0安装了性能分析库,但我已经确认它是使用ghc-pkg list安装的。 grep mtl. grep mtl。 I then took a stab at running ghc-pkg expose on it, but no luck. 然后,我开始尝试运行ghc-pkg暴露,但没有运气。

I tried googling and checking SO, but all I could find were problems related to having multiple instances of control.monad.reader installed and ghc being unable to determine which to use. 我尝试使用谷歌搜索和检查SO,但我发现的所有问题都与安装了多个control.monad.reader实例以及ghc无法确定使用哪个实例有关。

Right now, I'm just out of ideas about what do, any help would be appreciated. 现在,我只是出于关于做什么的想法,任何帮助都会受到赞赏。

Just because you have mtl installed does NOT mean you have the profiling libraries installed. 仅仅因为你安装了mtl并不意味着你已经安装了分析库。 You shouldn't need profiling - how are you installing XMonad? 您不应该需要分析 - 您如何安装XMonad? Did you change your cabal config file recently to enable profiling? 您最近是否更改了cabal配置文件以启用性能分析?

The way I see it you can either reinstall mtl with profiling: 我看到它的方式你可以重新安装mtl与分析:

cabal install --reinstall --enable-library-profiling mtl

Then install XMonad, or just disable profiling for the xmonad installation: 然后安装XMonad,或者只是禁用xmonad安装的分析:

cabal install --disable-library-profiling xmonad

(I'm assuming that will override the setting from the config file) (我假设它会覆盖配置文件中的设置)

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

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