23

私は で多くの問題を抱えていますcabal-install:
1: するたびに、そうするようにcabal update言われるのでcabal install cabal-install、そうします。もう一度やるcabal updateと、同じことを言います。

2:ghc-modハックからインストールしようとすると、次のエラーが表示されます。

[username@arch ~]$ cabal install ghc-mod
In order, the following will be installed:
haskell-src-exts-1.14.0 (reinstall) changes: pretty-1.1.1.1 -> 1.1.1.0
hlint-1.8.55 (reinstall)
ghc-mod-3.1.4
setup: The program happy version >=1.17 is required but it could not be found.
ghc-mod-3.1.4 depends on haskell-src-exts-1.14.0 which failed to install.
haskell-src-exts-1.14.0 failed during the configure step.
hlint-1.8.55 depends on haskell-src-exts-1.14.0 which failed to install.

問題は だったので、問題なく使用しThe program happy version >=1.17 is required but it could not be found.てインストールしました。happy 1.19.2cabal install happy

cabal install ghc-modもう一度試してみましたが、同じエラーだったので、試してみcabal install haskell-src-exts --reinstall --force-reinstallsました。次のエラーが表示されました。

[username@arch ~]$ cabal install haskell-src-exts --reinstall --force-reinstalls
Configuring haskell-src-exts-1.14.0...
setup: The program happy version >=1.17 is required but it could not be found.
Failed to install haskell-src-exts-1.14.0
cabal: Error: some packages failed to install:
haskell-src-exts-1.14.0 failed during the configure step. The exception was:
ExitFailure 1

基本的にThe program happy version >=1.17 is required but it could not be found.。幸せすぎてまた問題?

また、ハックから tar.gz ファイルをダウンロードしてファイルで使用しようとしcabal installましたが、 依存関係を無視するようにファイルを.cabal変更しましたが、それでも失敗しました。.cabal

4

2 に答える 2

23

同じ問題に遭遇し、パッケージのインストールに関する問題を解決しましたhappy(パッケージ名がわかりにくい)。したがって、cabal でパッケージをインストールする前に、パッケージ マネージャー (apt-get、pacman など) でインストールしてください。これで問題は解決するはずです。

于 2014-04-05T17:58:56.443 に答える