2014-12-13 12 views
1

그것은 내가 Windows에서이기 때문에이 같은 투쟁 가능 ... 망할 놈의 배쉬 사용하여 음모 지옥에서 얻을 내 최신 시도 :카발 설치 HTTP-도관 브라우저

$ rm -R ~/AppData/Roaming/ghc ~/AppData/Roaming/cabal 
$ cabal update 
$ cabal install cabal-install 
$ cabal install http-conduit-browser 

결과 지역 :

Failed to install http-conduit-1.9.6 
Last 10 lines of the build log (C:\Users\T\AppData\Roaming\cabal\logs\http-conduit-1.9.6.log): 
     so you can specify the instance context yourself 
    When deriving the instance for (Read Cookie) 

Network\HTTP\Conduit\Types.hs:239:19: 
    No instance for (Show UTCTime) 
     arising from the third field of `Cookie' (type `UTCTime') 
    Possible fix: 
     use a standalone 'deriving instance' declaration, 
     so you can specify the instance context yourself 
    When deriving the instance for (Show Cookie) 
cabal.exe: Error: some packages failed to install: 
http-conduit-1.9.6 failed during the building phase. The exception was: 
ExitFailure 1 
http-conduit-browser-1.9.0.2 depends on http-conduit-1.9.6 which failed to 
install. 

http-conduit 잘 작동 설치를 시도,하지만 난 http-conduit-browser 전혀 설치 얻을 수없는 것. 이것이 작동하지 않으면 다른 라이브러리가 있습니까? 나는 또한 을 시도했지만 curl 라이브러리 때문에 작동하지 않습니다.

+0

전체 로그'C : \ Users \ T \ AppData \ Roaming \ cabal \ logs \ http-conduit-1.9.6.log'를 게시 할 수 있습니까? – Arnon

+1

나는 아래의 대답에서 제안을 취하여 대신 Wreq를 사용했습니다. 나는 로그를 게시 할 것이지만 내 cabal을 nuked 이후. 다른 사람이 같은 문제를 겪는다면 Wreq는 설정하고 사용하기가 쉽습니다. – TheCriticalImperitive

답변

1

http-conduit-browser의 github 페이지 (link)은 대신 wreq (link)을 사용할 것을 권장합니다.

  1. 음모 GET HTTP-도관-1.9.6
  2. CD의 HTTP :

    여기에 HTTP-도관 브라우저를 사용하려면

    는 HTTP-도관-1.9.6 빌드 얻는 데 트릭 도관-1.9.6
  3. 네트워크를 수정/HTTP/도관/Types.hs이에 따른 SO 답이 (link) [수입 Data.Time과 수입 대체 Data.Time.Clock]
  4. 음모가 설치

이제 http-conduit-browser를 빌드 할 수 있어야합니다.

+0

Wreq는 훌륭하게 작동했습니다. 감사 :) – TheCriticalImperitive