1

ubuntu 13.10 を実行していますが、fay のインストールに問題があります。を使用してhaskellをインストールしまし sudo apt-get install haskell-platform た。試し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

install を試し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

私は何をすべきか?助けてくれてありがとう。

4

1 に答える 1

4

元の投稿のコメントによると:

  1. cabalすでにインストールされていることが見つからないと不平を言うcpphs

  2. which cpphsコマンドが見つからないという

  3. cpphsこれは、シェルの検索パスにないことを意味します

  4. add ~/.cabal/bintoPATHを使用してこの問題を解決できます

于 2014-05-13T04:17:41.990 に答える