2011-01-15 3 views
3

내 OS는 Windows 7이고 haskell 플랫폼을 사용합니다. 6.12Haskell module-0.6.3을 windows에 설치하는 방법은 무엇입니까?

HaXml 및 기타 종속성이 이미 설치되어 있습니다.

나는 다운로드 후 이것을 시도 :

runHaskell Setup.hs configure 

과 :

runHaskell Setup.hs configure 
--extra-include-dirs=F:/language/langer/haskell/encoding-0.6.3 
--extra-lib-dirs=F:/language/langer/haskell/encoding-0.6.3 

및 사용의 음모 :

cabal install encoding 

하지만 무엇보다도 인쇄 :

* Missing header file: system_encoding.h 
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. 

Cygwin과 MINGW 및 MSDOC에서이 작업을 시도했지만 모두 실패했습니다. 많이 봤 후

, 난, 난은/usr "Cygwin에서에서이 파일을 발견 this

그들이"langinfo.h "을 언급 (haskll 카페와 구글 그룹이 동일한 콘텐츠를) 발견 /포함" . 하지만 여전히 작동하지 않습니다.

누구나 Windows에서 인코딩 -0.6.3을 성공적으로 설치할 수 있습니까?

+0

일부 버전에서 하스켈 용 Windows 설치 프로그램은 버그가있어서 올바른 헤더에 일부 c-headers를 넣지 못했습니다. 나는 인터넷 검색을했고이 특별한 경우의 Q'n'D-solution은'$ inst $ \ libs \ '에있는'extralibs' 디렉토리를 Haskell 플랫폼이 설치된'$ inst $'('$ inst $'). – Dario

+0

나는 그것을 시험해 볼 것이다. 감사합니다. – SongPengpeng

답변

1

cabal 설치를위한 깃발

1

나는 정말 코멘트 비록 나는이 단계 자신을 따르지 않는 것 같은 형식을 유지하는 대답으로이 게시 했어 :

는 "langinfo.h"을 얻을 수있는 잠재적

설치 는 MinGW에 libgw32c 라이브러리를 통해 -이이 페이지에 몇 가지 지침이있다, 그러나 그들은 침략보고 그들은 내가 (I 가능한 한 깨끗한 MSYS를 유지하기 위해 같은) 자신을 할 싶어 뭔가되지 않습니다

http://placella.com/software/zenity/

다른 방법으로 여기에 패치가 있습니다. 그러나이 주석을 다시 읽는 것은 invasi처럼 보입니다. 했습니다 내가 실행 싶어 뭔가 (내 GHC는 가능한 한 깨끗한 설치 유지하려면)되지 않습니다 : 그것은 -f - systemEncoding를 전달하는 데 충분 윈도우에 구축하기 위해

http://dmwit.com/wyvern/encoding_ffi.dpatch

관련 문제