此問題僅適用於yak-shaving,以嘗試排除another problem的故障。Cabal:cabal configure failed
因此,在試圖診斷我的另一個問題,有人建議我嘗試:
cabal unpack base
cd base-4.3.1.0
cabal haddock
要看看是什麼一樣。
只有當我做了cabal unpack base
,它解壓縮base-3.0.3.2
。然後cabal haddock
抱怨說,我需要先運行cabal configure
然後失敗(遺憾地失去了確切的錯誤)。
所以我決定安裝base-4.3.1.0,以便我可以準確地重新執行指令。
即使安裝後,cabal unpack base
解包base-3.0.3.2
,但cabal unpack base-4.3.1.0
解包base-4.3.1.0
。
現在,我不能讓任何配置:
% cabal unpack base
Unpacking to base-3.0.3.2/
% cd base-3.0.3.2
% cabal haddock
cabal: Run the 'configure' command first.
% cabal configure
Resolving dependencies...
Configuring base-3.0.3.2...
cabal: At least the following dependencies are missing:
base >=4.0 && <4.3, syb ==0.1.*
% cd ..
%
% cabal unpack base-4.3.1.0
Unpacking to base-4.3.1.0/
% cd base-4.3.1.0
% cabal haddock
cabal: Run the 'configure' command first.
% cabal configure
Resolving dependencies...
Configuring base-4.3.1.0...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for gcc... gcc
checking whether the C compiler works... yes
...
checking for library containing iconv... -liconv
checking for library containing locale_charset... none required
configure: creating ./config.status
config.status: error: cannot find input file: `base.buildinfo.in'
% cd ..
而且,我不能恢復到基礎-3.0.3.2,因爲它依賴於具有 基礎版本> = 4.0 < 4.3 (WTF?),並且我無法安裝base-4.2.0.2 b/c,但它不能通過 b/c找不到base.buildinfo.in
。
% cabal --version
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library
% cabal info base
* base (library)
Synopsis: Basic libraries (backwards-compatibility version)
Versions available: 3.0.3.1, 3.0.3.2, (4.0.0.0), (4.1.0.0), (4.2.0.0),
(4.2.0.1), (4.2.0.2), (4.3.0.0), (4.3.1.0)
Versions installed: (4.3.1.0)
Homepage: [ Not specified ]
Bug reports: http://hackage.haskell.org/trac/ghc/newticket?component=libraries/base
Description: This is a backwards-compatible version of the base package.
It depends on a later version of base, and was probably
supplied with your compiler when it was installed.
License: BSD3
Maintainer: [email protected]
Source repo: http://darcs.haskell.org/packages/base3-compat
Dependencies: base >=4.0 && <4.3, syb ==0.1.*
Documentation: /usr/local/share/doc/ghc/html/libraries/base-4.3.1.0
Cached: Yes
Modules:
...
%
我在做什麼錯,我該如何解決?