ฉันกำลังพยายามติดตั้งแพ็คเกจ Unix บนสภาพแวดล้อม Windows ฉันใช้ Cygwin แต่ก็ยังใช้งานไม่ได้
ด้านล่างนี้เป็นตัวอย่างข้อผิดพลาดที่ฉันได้รับ:
$ cabal install unix
Resolving dependencies...
Configuring unix-2.7.0.0...
Warning: Unknown extensions: CApiFFI, InterruptibleFFI
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for gcc... gcc
.
.
.
configure: creating ./config.status
config.status: creating unix.buildinfo
config.status: creating include/HsUnixConfig.h
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
cabal.exe: Package unix-2.7.0.0 can't be built on this system.
Failed to install unix-2.7.0.0
cabal.exe: Error: some packages failed to install:
unix-2.7.0.0 failed during the building phase. The exception was:
ExitFailure 1
ghc
จากเชลล์ Cygwin คุณอาจต้องรวบรวม GHC จากแหล่งที่มา - person Mikhail Glushenkov   schedule 04.12.2013