1
때문에 의존성 문제로 설치에 실패한 : 나는했습니다yesod 나는 다음과 같이 yesod 프로젝트를 설정하려고
Resolving dependencies...
cabal: Could not resolve dependencies:
next goal: Cabal (user goal)
rejecting: Cabal-1.18.1.4/installed-d6c... (global constraint requires
==1.18.1.3)
trying: Cabal-1.18.1.3/installed-476...
trying: yesod-bin-1.4.2 (user goal)
next goal: ghc (dependency of yesod-bin-1.4.2)
rejecting: ghc-7.8.3/installed-1d5... (conflict:
Cabal==1.18.1.3/installed-476..., ghc => Cabal==1.18.1.4/installed-d6c...)
Dependency tree exhaustively searched.
Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.
:
mkdir sample_blog
curl -o cabal.config www.stackage.org/nightly/cabal.config
cabal install alex happy yesod-bin
을하지만, 나는 다음과 같은 오류가 발생했습니다 homebrew를 사용하여 GHC 및 카발 설치를 설치하십시오. 버전 :이 공식 GHC보다 음모 라이브러리의 다른 버전 해운 그것은 그 사제를 표시
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.8.3
$ cabal --version
cabal-install version 1.20.0.4
using version 1.20.0.3 of the Cabal library
확인하려면 자제하지 말고 저축 문제를 원합니다. – 11Kilobytes
네, 그 문제는 좋았습니다, 고마워요. 집에서 가져온 사람이 다른 버전을 사용하는 이유를 설명하는 것이 좋을 것입니다. 이제 생각해 보면 이론적으로 모든 Mac 사용자가 다른 버전의 Cabal 라이브러리를 가질 가능성이 있습니다. –
그건 그렇고, yesod-bin을 내 샌드 박스에 설치하면 지금 어떻게해야합니까? ./cabal-sandbox/bin/yesod init을 사용하여 새 프로젝트를 만들면 cabal-sandbox가없는 새 하위 디렉토리가 생깁니다. 그렇다면 현재 디렉토리에 새 프로젝트를 만들려면 어떻게해야합니까? – 11Kilobytes