我正在运行ubuntu 13.10而且我在安装fay时遇到了麻烦。我使用 sudo apt-get install haskell-platform
安装了haskell。我尝试cabal install fay
并收到以下消息:
$ cabal install fay
Resolving dependencies...
Configuring type-eq-0.4.2...
cabal: The program cpphs is required but it could not be found.
Failed to install type-eq-0.4.2
cabal: Error: some packages failed to install:
fay-0.20.0.0 depends on type-eq-0.4.2 which failed to install.
haskell-names-0.3.3.2 depends on type-eq-0.4.2 which failed to install.
type-eq-0.4.2 failed during the configure step. The exception was:
ExitFailure 1
我尝试安装cpphs
,但我已经拥有它了。
$ cabal install cpphs
Resolving dependencies...
All the requested packages are already installed:
cpphs-1.18.4
Use --reinstall if you want to reinstall anyway.
最后,我尝试自行安装type-eq
,并且预计它依赖于cpphs
。
$ cabal install type-eq
Resolving dependencies...
Configuring type-eq-0.4.2...
cabal: The program cpphs is required but it could not be found.
Failed to install type-eq-0.4.2
cabal: Error: some packages failed to install:
type-eq-0.4.2 failed during the configure step. The exception was:
ExitFailure 1
我该怎么办?在此先感谢您的帮助。
答案 0 :(得分:4)
根据原帖的评论:
cabal
抱怨无法找到已安装cpphs
which cpphs
说命令无法找到
表示cpphs
不在shell
将~/.cabal/bin
添加到PATH
可用于解决此问题