I'm trying to install unix package on windows environment. I'm using Cygwin, but its still not working.
Below is a snippet of the error I'm getting:
$ 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
Cygwin is a partial linux toolset for windows, it's great if you need basic things but installing a full blown unix cabal plugin might be beyond its capabilities. You may want to install a full linux os on a virtual machine (vagrant does great with this) or use a cloud real unix machine. Linux hosts are really great to work with from remote
Happy codding
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With