1

私もcygwinでWindows 7を使用しています。

2月からHaskellプラットフォームでhappstack-hspをうまくインストールしました。

4月からHaskell Platformをインストールしたばかりです。cabal を介して happstack-hsp パッケージをインストールしようとしたところ、次のエラーが発生しました。

$cabal install happstack-hsp
Resolving dependencies...
Configuring hsp-0.7.1...
Building hsp-0.7.1...
Preprocessing library hsp-0.7.1...
ghc.exe: could not execute: trhsx
cabal.exe: Error: some packages failed to install:
happstack-hsp-7.1.1 depends on hsp-0.7.1 which failed to install.
hsp-0.7.1 failed during the building phase. The exception was:
ExitFailure 1

次に、trhsx をインストールしようとしたところ、次のエラーが発生しました。

$cabal install trhsx
Resolving dependencies...
Configuring trhsx-0.2.2...
Building trhsx-0.2.2...
Preprocessing library trhsx-0.2.2...

Trhsx.hs:1:1:
    Could not find module `Prelude'
    It is a member of the hidden package `base'.
    Perhaps you need to add `base' to the build-depends in your .cabal file.
    It is a member of the hidden package `haskell2010-1.1.0.1'.
    Perhaps you need to add `haskell2010' to the build-depends in your .cabal file.
    It is a member of the hidden package `haskell98-2.0.0.1'.
    Perhaps you need to add `haskell98' to the build-depends in your .cabal file.
    Use -v to see a list of the files searched for.
cabal.exe: Error: some packages failed to install:
trhsx-0.2.2 failed during the building phase. The exception was:
ExitFailure 1

これをcmdでも試してみましたが、同じ結果が得られました。Haskell を使用してから何年も経ちましたが、かなり変わっています。何かアイデアはありますか?

4

1 に答える 1

1

trhsxhsx今パッケージから来ます。エラーの理由は、cabalが$HOME/.cabal/binデフォルトで実行可能ファイルをインストールするためです。ただし、デフォルトで$HOME/.cabal/binはありません。$PATH

これをに追加すると$PATH、すべて問題ないはずです。

于 2012-11-24T18:10:15.390 に答える