首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Cabal: cabal配置失败

Cabal: cabal配置失败
EN

Stack Overflow用户
提问于 2011-08-11 03:07:02
回答 1查看 3.2K关注 0票数 5

此问题仅供尝试排除another problem故障时使用。

因此,为了尝试诊断我的另一个问题,我被建议尝试:

代码语言:javascript
复制
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

现在我也不能配置:

代码语言:javascript
复制
% 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 ..

此外,我不能恢复到base-3.0.3.2,因为它依赖于基本版本>=4.0 <4.3 (WTF?),并且我不能安装base-4.2.0.2 b/c它失败b/c它找不到base.buildinfo.in

代码语言:javascript
复制
% 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:    libraries@haskell.org
    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:
    ...
%

我做错了什么?我如何才能纠正它?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-08-11 05:00:46

没有人打算自编译base。它绑定到一个特定的ghc安装,所以如果您构建了它,就不能使用任何其他的基包。基本包不是从hackage构建的,我对此并不感到惊讶;很可能没有人尝试过构建它。

不管怎样,我会试试checking out the ghc sourcebase package repo中将包含base.buildinfo.in文件。您可以将文件从repo复制到解压的发行版,但从签出的源代码构建可能会更好。

只需确保只安装文档而不是库。

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7016319

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档