2012-05-22 5 views
4

온라인 파일 (일부 XML 파일)에 액세스 할 수 있도록 내 프로젝트에서 'Import Text.XML.HXT.Curl'을 사용하려고합니다.Windows 7의 Haskell 플랫폼에서 Curl 사용

Could not find module `Text.XML.HXT.Curl': 
    Use -v to see a list of the files searched for. 

내가 시도 :

그래서 내가 오류입니다

:! cabal install curl 

하지만 난 그게 UNIX 또는 Cygwin에서에 있어야한다는 오류가 발생, 그래서 나는 지금, Cygwin에서 설치에 대한 이동 그것은 말합니다 :

checking for gcc... gcc 
checking for C compiler default output file name... configure: error: C compiler cannot create executables 
See `config.log' for more details. 
cabal: Error: some packages failed to install: 
curl-1.3.7 failed during the configure step. The exception was: 
ExitFailure 77 

:! gcc -version 
Access is denied 

컬 패키지를 다운로드하여 cmd를 사용하여 설치하려고했습니다 : runHaskell Setup.hs configure 이 :

Setup.hs: Missing dependency on a foreign library: 
Missing C library: curl 
This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version) 

gcc, g ++, libcurl, make cygwin에서 설치를 시도했지만 여전히 실패합니다.

mingw/mysis 설치를 시도했지만 실패했습니다. curl/curl.h가 누락되었습니다.

아무도 성공하지 못했고 그가 어떻게했는지 말할 수 있습니까?

답변

2

windows에 curl을 설치하는 것은 까다로울 수 있습니다. 하지만 hxt-http 패키지를 사용해 볼 수 있습니다. 기본 HTTP 패키지를 기반으로하며 외부 종속성이 필요하지 않습니다. AFAIK는 창문 밖의 상자에서 그냥 작동합니다.

작은 참고 : curlhxt과 함께 사용하려면 hxt-curl 패키지를 설치해야합니다. 하지만 그래, 그게 도움이되지 않습니다, 그것은 curl 패키지에 따라 달라지기 때문에 (

그래서 내 대답은 실제로 "윈도우에서 컬 사용"에 관한 것이 아니라 "윈도우에서 컬 사용"에 관한 것입니다. 도움이되지 않습니다.