我試圖在Ubuntu 安裝wxhaskell(我已經安裝wxwidget和它運作良好,在碼塊)wxHaskell找不到模塊`Distribution.Compat.Exception」
我在運行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
但沒有改變
有人幫助我,十分感謝!
請接受的答案,如果它解決了問題 – mrsteve