2016-07-01 4 views
2

누락 난 다음 얻을 오류 메시지 :하스켈 도당 : 내가 하스켈 패키지 "통화 하스켈 -에서 - 아무것도"설치하려고 갔지 C 라이브러리

cabal.exe: Missing dependency on a foreign library: 
* Missing C library: HSrts-ghc8.0.1 
This problem can usually be solved by installing the system package that 
provides this library (you may need the "-dev" version). If the library is 
already installed but in a non-standard location then you can use the flags 
--extra-include-dirs= and --extra-lib-dirs= to specify where it is. 
cabal: Leaving directory 'C:\Users\Manfred\AppData\Local\Temp\cabal-tmp-2460\call-haskell-from-anything-1.0.1.0' 
cabal: Error: some packages failed to install: 
call-haskell-from-anything-1.0.1.0 failed during the configure step. The 
exception was: 
ExitFailure 1 

HSrts - ghc8.0.1 무엇입니까 라이브러리 및 Windows 시스템에서 어디에서 찾을 수 있습니까? 또는이 라이브러리를 Windows에 수동으로 설치해야합니까?

편집 1 : 한편

내가는 "스택"도구를 시도하고 비슷한 오류가있어 : 이것은 윈도우 (아직)에서 작동하지 않습니다

[1 of 1] Compiling Main    (C:\Users\Manfred\AppData\Local\Temp\stack4480\call-haskell-from-anything-1.0.1.0\Setup.hs, C:\Users\Manfred\AppData\Local\Temp\stack4480\call-haskell-from-anything-1.0.1.0\.stack-work\dist\2672c1f3\setup\Main.o) 
    Linking C:\Users\Manfred\AppData\Local\Temp\stack4480\call-haskell-from-anything-1.0.1.0\.stack-work\dist\2672c1f3\setup\setup.exe ... 
    Configuring call-haskell-from-anything-1.0.1.0... 
    Determining GHC version: 7.10.3 
    setup.exe: Missing dependency on a foreign library: 
    * Missing C library: HSrts-ghc7.10.3 
    This problem can usually be solved by installing the system package that 
    provides this library (you may need the "-dev" version). If the library is 
    already installed but in a non-standard location then you can use the flags 
    --extra-include-dirs= and --extra-lib-dirs= to specify where it is. 
+0

GHC (특히 RTS 또는 "런타임 시스템")의 일부인 것처럼 보입니다. GHC의 어떤 버전을 사용하고 있습니까? – MathematicalOrchid

+0

Windows 10에서 8.0.1 32 비트 버전을 사용하고 있습니다. – ManzMoody

+0

OK. 따라서 * 설치 * 할 필요는 없습니다. DLL이 어디에 있는지 파악하고 Cabal이 찾도록 유도해야합니다. 나는 그 부분들 중 하나에 대한 답을 정확히 모르겠다 ... – MathematicalOrchid

답변

1

합니다.

call-haskell-from-anything-dynamic을 지원해야하는 GHC 버전을 사용하는 것으로 나타납니다. 그들의 음모 파일 :

ghc-options: 
    -- For building TemplateHaskell with cabal and -dynamic, we have to disable -dynamic sometimes 
    -no-hs-main -fPIC -shared -dynamic 

또한 -fPIC는 위치 독립적 인 코드가 필요합니다/사용하지 않는 창으로 Windows에서 아무 의미 플래그가 없습니다.

HSrts-ghc8.0.1

때문에 나는이 다시 동적 컴파일을 지원해야 8.2.1에 의해 완수하려고 https://ghc.haskell.org/trac/ghc/ticket/5987

에 현재 윈도우에 구축되지 않은 GHC 런타임의 동적 버전을 참조한다. 하지만 지금은 죄송합니다.이 패키지는 작동하지 않습니다.

동적 지원이 필요하지 않을 수 있으므로 -fPIC-dynamic을 제거하고 프로젝트의 압축을 풀고 파일을 편집 할 수 있습니다.