2014-12-11 4 views
1

이것은 brew가 설치된 ghc 및 cabal-install이 설치된 Mac OS X에 있습니다. 최신 버전.카달 설치 렌즈 : -HHostransformers-compat-0.3.3.4-ghc7.8.3에 라이브러리가 없습니다.

Resolving dependencies... 
[1 of 1] Compiling Main    (/var/folders/23/1yjxv_x14f1g817x9fz3wy500000gp/T/distributive-0.4.4-83867/distributive-0.4.4/dist/setup/setup.hs, /var/folders/23/1yjxv_x14f1g817x9fz3wy500000gp/T/distributive-0.4.4-83867/distributive-0.4.4/dist/setup/Main.o) 
Linking /var/folders/23/1yjxv_x14f1g817x9fz3wy500000gp/T/distributive-0.4.4-83867/distributive-0.4.4/dist/setup/setup ... 
Configuring distributive-0.4.4... 
Building distributive-0.4.4... 
Preprocessing library distributive-0.4.4... 
[1 of 2] Compiling Data.Distributive.Generic (src/Data/Distributive/Generic.hs, dist/build/Data/Distributive/Generic.o) 
[2 of 2] Compiling Data.Distributive (src/Data/Distributive.hs, dist/build/Data/Distributive.o) 
ld: library not found for -lHStransformers-compat-0.3.3.4-ghc7.8.3 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
Failed to install distributive-0.4.4 
<snip> 
Loading package primitive-0.5.3.0 ... <command line>: can't load .so/.DLL for: libHSprimitive-0.5.3.0.dylib (dlopen(libHSprimitive-0.5.3.0.dylib, 9): image not found) 
Failed to install vector-0.10.12.2 
cabal: Error: some packages failed to install: 
<snip> 

cabal -V 수율 : 당신은거야 그래서

cabal-install version 1.20.0.3 
using version 1.20.0.2 of the Cabal library 
+0

'transformers-compat '이 설치되어 있습니까? 'cabal update && cabal install transformer-compat'을 먼저 실행하십시오. 이미 설치했다면 라이브러리 경로가'PATH' 환경 변수에 있는지 확인하십시오. – Arnon

+0

OSX Yosemite에서 깨끗하게 설치하십시오. 죄송합니다 : ( – OmnipotentEntity

+0

은 이미'cabal update '를했고'transformers-compat'이 이미 설치되어 있습니다. OS X Yosemite도 사용하고 있습니다. – clay

답변

1

GHC 7.8.3이 부트 패키지로 transformers-0.3.0.0 배포 내가 cabal install lens을 실행하면 GHC 7.8.3

나는이 오류 출력을 얻을 다음 두 패키지를 사용하고 싶습니다.

transformers-0.3.0.0 
transformers-compat-0.3.3.3 

이이 명령 lens

cabal install --constraint=transformers\ installed lens 

당신은 그 파일의 끝에 다음 행을 추가하여 ~/.cabal/config 파일로 글로벌 제약 조건을 추가하여 부트 패키지를 교체 피할 수를 설치.

constraint: transformers installed