2013-12-08 7 views
0

카발로 스냅을 설치하려고 할 때 다음과 같은 문제가 발생합니다. 어떻게 해결할 수 있습니까? :ghc :`snap-core-0.9.4.1 '패키지를로드 할 수 없습니다

$ cabal install snap 
Resolving dependencies... 
Configuring snap-0.13.1.2... 
Building snap-0.13.1.2... 
Preprocessing library snap-0.13.1.2... 
[ 1 of 33] Compiling Snap.Snaplet.Internal.RST (src/Snap/Snaplet/Internal/RST.hs, dist/build/Snap/Snaplet/Internal/RST.o) 
[ 2 of 33] Compiling Snap.Snaplet.Internal.Lensed (src/Snap/Snaplet/Internal/Lensed.hs, dist/build/Snap/Snaplet/Internal/Lensed.o) 
[ 3 of 33] Compiling Snap.Snaplet.Internal.LensT (src/Snap/Snaplet/Internal/LensT.hs, dist/build/Snap/Snaplet/Internal/LensT.o) 
[ 4 of 33] Compiling Control.Access.RoleBased.Internal.Role (src/Control/Access/RoleBased/Internal/Role.hs, dist/build/Control/Access/RoleBased/Internal/Role.o) 
[ 5 of 33] Compiling Control.Access.RoleBased.Internal.Rule (src/Control/Access/RoleBased/Internal/Rule.hs, dist/build/Control/Access/RoleBased/Internal/Rule.o) 
[ 6 of 33] Compiling Control.Access.RoleBased.Internal.Types (src/Control/Access/RoleBased/Internal/Types.hs, dist/build/Control/Access/RoleBased/Internal/Types.o) 
[ 7 of 33] Compiling Control.Access.RoleBased.Role (src/Control/Access/RoleBased/Role.hs, dist/build/Control/Access/RoleBased/Role.o) 
[ 8 of 33] Compiling Control.Access.RoleBased.Types (src/Control/Access/RoleBased/Types.hs, dist/build/Control/Access/RoleBased/Types.o) 
[ 9 of 33] Compiling Control.Access.RoleBased.Internal.RoleMap (src/Control/Access/RoleBased/Internal/RoleMap.hs, dist/build/Control/Access/RoleBased/Internal/RoleMap.o) 
[10 of 33] Compiling Control.Access.RoleBased.Checker (src/Control/Access/RoleBased/Checker.hs, dist/build/Control/Access/RoleBased/Checker.o) 
[11 of 33] Compiling Snap.Snaplet.Session.SessionManager (src/Snap/Snaplet/Session/SessionManager.hs, dist/build/Snap/Snaplet/Session/SessionManager.o) 
[12 of 33] Compiling Snap.Snaplet.Session.SecureCookie (src/Snap/Snaplet/Session/SecureCookie.hs, dist/build/Snap/Snaplet/Session/SecureCookie.o) 
[13 of 33] Compiling Snap.Snaplet.Session.Common (src/Snap/Snaplet/Session/Common.hs, dist/build/Snap/Snaplet/Session/Common.o) 
[14 of 33] Compiling Snap.Snaplet.Config (src/Snap/Snaplet/Config.hs, dist/build/Snap/Snaplet/Config.o) 

src/Snap/Snaplet/Config.hs:9:1: 
    Warning: In the use of `mkTyCon' 
      (imported from Data.Typeable): 
      Deprecated: "either derive Typeable, or use mkTyCon3 instead" 
[15 of 33] Compiling Snap.Snaplet.Internal.Types (src/Snap/Snaplet/Internal/Types.hs, dist/build/Snap/Snaplet/Internal/Types.o) 
Loading package ghc-prim ... linking ... done. 
Loading package integer-gmp ... linking ... done. 
Loading package base ... linking ... done. 
Loading package bytestring-0.9.2.1 ... linking ... done. 
Loading package primitive-0.4.1 ... linking ... done. 
Loading package vector-0.9.1 ... linking ... done. 
Loading package vector-algorithms-0.5.4.2 ... linking ... done. 
Loading package array-0.4.0.0 ... linking ... done. 
Loading package stm-2.3 ... linking ... done. 
Loading package extensible-exceptions-0.1.1.4 ... linking ... done. 
Loading package transformers-0.3.0.0 ... linking ... done. 
Loading package MonadCatchIO-transformers-0.3.0.0 ... linking ... done. 
Loading package deepseq-1.3.0.0 ... linking ... done. 
Loading package containers-0.4.2.1 ... linking ... done. 
Loading package text-0.11.2.0 ... linking ... done. 
Loading package attoparsec-0.10.4.0 ... linking ... done. 
Loading package enumerator-0.4.20 ... linking ... done. 
Loading package attoparsec-enumerator-0.3.1 ... linking ... done. 
Loading package blaze-builder-0.3.1.1 ... linking ... done. 
Loading package blaze-builder-enumerator-0.2.0.5 ... linking ... done. 
Loading package hashable-1.1.2.5 ... linking ... done. 
Loading package case-insensitive-1.1 ... linking ... done. 
Loading package mtl-2.1.1 ... linking ... done. 
Loading package parsec-3.1.2 ... linking ... done. 
Loading package unix-2.5.1.0 ... linking ... done. 
Loading package network-2.3.0.13 ... linking ... done. 
Loading package old-locale-1.0.0.4 ... linking ... done. 
Loading package HUnit-1.2.4.2 ... linking ... done. 
Loading package bytestring-mmap-0.2.2 ... linking ... done. 
Loading package filepath-1.3.0.0 ... linking ... done. 
Loading package old-time-1.1.0.0 ... linking ... done. 
Loading package directory-1.1.0.2 ... linking ... done. 
Loading package time-1.4 ... linking ... done. 
Loading package random-1.0.1.1 ... linking ... done. 
Loading package regex-base-0.93.2 ... linking ... done. 
Loading package regex-posix-0.95.1 ... linking ... done. 
Loading package unix-compat-0.4.1.1 ... linking ... done. 
Loading package unordered-containers-0.2.3.3 ... linking ... done. 
Loading package zlib-0.5.3.3 ... linking ... done. 
Loading package zlib-bindings-0.1.1.3 ... linking ... done. 
Loading package zlib-enum-0.2.3 ... linking ... done. 
Loading package snap-core-0.9.4.1 ... linking ... ghc: 
unknown symbol `_directoryzm1zi2zi0zi1_SystemziDirectory_doesDirectoryExist2_closure' 
ghc: unable to load package `snap-core-0.9.4.1' 
Failed to install snap-0.13.1.2 
cabal: Error: some packages failed to install: 
snap-0.13.1.2 failed during the building phase. The exception was: 
ExitFailure 1 
+0

전체 haskell 플랫폼을 재설치하고 다시 설치했습니다. 이제 상황이 다시 좋아집니다. –

답변

1

내 생각 엔 당신이 설치된 디렉토리의 두 개 이상의 다른 버전을 가지고있다. rm -fr ~/.ghc으로 패키지 저장소를 날려 버리고 다시 설치하는 것이 좋습니다. 그래도 작동하지 않으면 더 많은 정보가 필요합니다. 이 경우 #snapframework IRC 채널에서 대화 형으로 디버깅하는 것이 더 쉬울 것입니다.