Install unix-2.7.0.1 package using Cabal, haskell origin

It all started with hdevtools.

I installed the SublimeHaskell package for Sublime 3 on my Windows 7 computer and received a warning that hdevtools could not be found or something like that. So I decided to try installing this package using Cabal.

I have Cygwin installed and my Path works fine. I try cabal install hdevtoolsI get some scary things:

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 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

... (many checks that look fine)

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. , , , , unix-2.7.0.1 . , , .tar / runhaskell Setup build runhaskell Setup configure.

- , unix-2.7.0.1 Windows 7?

+4
1
0

Source: https://habr.com/ru/post/1541801/


All Articles