我是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