すべては hdevtools から始まりました。
Sublime 3 の SublimeHaskell パッケージを Windows 7 マシンにインストールしたところ、hdevtools が見つからない、またはそのような内容の警告が表示されました。そこで、Cabal を使用してそのパッケージをインストールしようと考えました。
Cygwin がインストールされており、パスで正常に動作しています。cabal install hdevtools
私はいくつかの恐ろしいことを試してみました:
Resolving dependencies...
Configuring unix-2.7.0.1...
Warning: Unknown extensions: CApiFFI, InterruptibleFFI
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
cygwin warning:
MS-DOS style path detected: C:\Users\Stas\AppData\Roaming\cabal/share/config.site
Preferred POSIX equivalent is: /cygdrive/c/Users/Stas/AppData/Roaming/cabal/share/config.site
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
checking for gcc... gcc
checking whether the C compiler works... yes
... (大丈夫と思われる多くのチェック)
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking target system type... x86_64-unknown-cygwin
checking for library containing sem_close... no
configure: Not found
configure: creating ./config.status
config.status: creating unix.buildinfo
config.status: creating include/HsUnixConfig.h
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
cabal: Package unix-2.7.0.1 can't be built on this system.
Failed to install unix-2.7.0.1
cabal: Error: some packages failed to install:
hdevtools-0.1.0.5 depends on unix-2.7.0.1 which failed to install.
unix-2.7.0.1 failed during the building phase. The exception was:
ExitFailure 1
したがって、おそらく unix-2.7.0.1 パッケージをインストールする必要があると思います。ここに行きますcabal install unix-2.7.0.1
。私は実際にはまったく同じ出力のように見えるものになり、cabal は私のシステムでは unix-2.7.0.1 を構築できないと言っています。runhaskell Setup build
一見成功したように見えた後、.tarファイルをダウンロードし、解凍されたディレクトリで構成/ビルドして手動でビルドしようとすると、同じ結果が得られますrunhaskell Setup configure
。
Windows 7 マシンで unix-2.7.0.1 をビルドできない理由を教えてもらえますか?