我正在尝试在 ubuntu 上安装 wxhaskell(我已经安装了 wxwidget,它在代码块中运行良好)
我cabal install wxc
在终端运行
这是输出
/tmp/wxc-0.92.1.1-2711/wxc-0.92.1.1/Setup.hs:25:8:
Could not find module Distribution.Compat.Exception
It is a member of the hidden package Cabal-1.22.5.0.
it is a hidden module in the package Cabal-1.16.0
Use -v to see a list of the files searched for.
Failed to install wxc-0.92.1.1
cabal: Error: some packages failed to install:
wxc-0.92.1.1 failed during the configure step. The exception was:
ExitFailure 1
实际上,我可以找到Distribution.Compat.Exception
并尝试过 sudo ghc-pkg expose Cabal-1.16.0
sudo ghc-pkg expose Cabal-1.22.5.0
,但没有任何改变
有人帮帮我,非常感谢!