我是Haskell的新手,試圖編寫一個編譯器構建類的程序。cabal安裝bnfc缺失目錄
我安裝的是哈斯克爾平臺包在我的Ubuntu 13.10,然後(不帶安裝哈斯克爾平臺後什麼亂搞)試圖運行下面的命令:
$ sudo cabal install bnfc
與結果:
Resolving dependencies...
Configuring BNFC-2.6.0.3...
cabal: The following installed packages are broken because other packages they
depend on are missing. These broken packages must be rebuilt before they can
be used.
package process-1.1.0.2 is broken due to missing package
directory-1.2.0.1-508733a890139bbedb8aa76468431462
Failed to install BNFC-2.6.0.3
cabal: Error: some packages failed to install:
BNFC-2.6.0.3 failed during the configure step. The exception was:
ExitFailure 1
當我嘗試安裝軟件包目錄時說它已經安裝了軟件包。 任何人都可以幫忙嗎?
您是否嘗試過'cabal update'? –
是的,我試過 – niczka
避免在'cabal'中使用'sudo'。通過'cabal install'來重建'process'和'directory'。 – 2013-11-15 18:36:41