2014-05-23 5 views
4

모두 hdevtools로 시작되었습니다.Cabal, haskell origin을 사용하여 unix-2.7.0.1 패키지 설치

내 Windows 7 시스템에 Sublime 3 용 SublimeHaskell 패키지를 설치했으며 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 

그래서 내 생각을, 어쩌면 내가 유닉스 - 2.7.0.1 패키지를 설치해야합니다. 여기에 cabal install unix-2.7.0.1이 있습니다. 필자는 caball이 유닉스 2.7.0.1을 단순히 내 시스템에 구축 할 수 없다는 말로 정확히 동일한 출력으로 보이는 것으로 끝납니다. .tar 파일을 수동으로 다운로드하고 구성한 후 runhaskell Setup configure을 성공한 후 압축을 푼 디렉토리에 runhaskell Setup build으로 구성/구축하면 동일한 결과를 얻습니다.

내 Windows 7 컴퓨터에서 unix-2.7.0.1을 빌드 할 수없는 이유는 무엇입니까?

+0

'ghc --version'의 결과는 무엇입니까? (당신이 GHC를 사용한다고 가정하십시오.) – Ryan

+0

출력은'The Glorious Glasgow Haskell Compilation System, version 7.6.3'입니다. – user3669580

+0

GHC 7.8에서 시도하십시오. – Ryan

답변