試圖運行cabal install時出現以下錯誤cabal-install 我已經爲Mac OS X Lion安裝了來自http://www.haskell.org/platform/的haskell平臺。我想運行cabal install cabal-install,所以我可以安裝quickcheck運行cabal-install時出錯:ExitFailure 1(Mac OS X lion)
當試圖更新時,我得到這個錯誤。
$ cabal install cabal-install
Resolving dependencies...
Configuring cabal-install-1.16.0...
Building cabal-install-1.16.0...
Preprocessing executable 'cabal' for cabal-install-1.16.0...
<command line>: cannot satisfy -package-id HTTP-4000.2.3-d6c69f84aec25261a9a3f6946119d9d2
(use -v for more information)
cabal: Error: some packages failed to install:
cabal-install-1.16.0 failed during the building phase. The exception was:
ExitFailure 1
這沒有解決顯示的錯誤,但你可以運行'cabal install quickcheck'嗎? – jtobin
我懷疑包裝破損或類似的東西。如果您運行「ghc-pkg check」並將結果告訴我們,則可幫助診斷問題。 – mhwombat
我得到錯誤: \t警告:緩存過期:/Library/Frameworks/GHC.framework/Versions/7.4.1-x86_64/usr/lib/ghc-7.4.1/package.conf.d/ package.cache \t使用'ghc-pkg recache'來修復。 \t警告:haddock-interfaces:/Library/Haskell/ghc-7.4.1/lib/GLUT-2.1.2.1/doc/html/GLUT.haddock不存在或不是文件 \t警告:haddock-接口:/Library/Haskell/ghc-7.4.1/lib/haskell-platform-2012.2.0.0/doc/html/haskell-platform.haddock不存在或不是文件 \t警告:haddock-html: /Library/Haskell/ghc-7.4.1/lib/haskell-platform-2012.2.0.0/doc/html不存在或不是目錄 – Tom