我是 Haskell 的新手,正在尝试为编译器构造类编写程序。
我在我的 ubuntu 13.10 上安装了 haskell-platform 包,然后(在安装 haskell 平台后没有搞乱任何东西)尝试运行以下命令:
$ 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
当我尝试安装包目录时,它说包已经安装。任何人都可以帮忙吗?