1

ghc-modWindows/x64 に GHC 8.0.1をインストールしようとしています。ghc-mod経由でインストールしようとするcabal install ghc-modと、C コンパイラが動作していないというエラーが表示されます (これは にバンドルされている C コンパイラを使用していますghc)。

これが出力です(コマンドを2回実行したときの出力です。基本的には最初のコマンドが言うことですが、エラーメッセージに縮小されます):

C:\Users\******>cabal install ghc-mod
Resolving dependencies...
Configuring old-time-1.1.0.3...
Failed to install old-time-1.1.0.3
Build log ( C:\Users\******\AppData\Roaming\cabal\logs\old-time-1.1.0.3.log ):
Configuring old-time-1.1.0.3...
bash.exe: warning: could not find /tmp, please create!
configure: WARNING: unrecognized options: --with-compiler
checking for gcc... C:\PROGRA~1\Haskell Platform\8.0.1\mingw\bin\gcc.exe 
                    ^ I think the error lies here, as you can see the file path is corrupted but I wasn't able to locate the cause for this
checking whether the C compiler works... no
configure: error: in `/cygdrive/c/Users/******/AppData/Local/Temp/cabal-tmp-6084/old-time-1.1.0.3':
configure: error: C compiler cannot create executables
See `config.log' for more details
cabal: Leaving directory 'C:\Users\******\AppData\Local\Temp\cabal-tmp-6084\old-time-1.1.0.3'
cabal: Error: some packages failed to install:
cpphs-1.20.2 depends on old-time-1.1.0.3 which failed to install.
ghc-mod-5.6.0.0 depends on old-time-1.1.0.3 which failed to install.
haskell-src-exts-1.17.1 depends on old-time-1.1.0.3 which failed to install.
hlint-1.9.35 depends on old-time-1.1.0.3 which failed to install.
old-time-1.1.0.3 failed during the configure step. The exception was:
ExitFailure 77

インストールを手伝ってくれるghc-modか、他のインストール方法を教えてください。

始めたばかりなので、Haskellを再インストールしようとしましたが、違いはありませんでした。はい、haskell のホームページで提供されている 3 行を追加しました。

4

1 に答える 1