Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cabal failed to install unix-2.7.0.0

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
like image 773
user3063208 Avatar asked Dec 04 '13 12:12

user3063208


1 Answers

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

like image 85
akiva Avatar answered Oct 14 '22 10:10

akiva