gpt4 book ai didi

linux - 在 Linux 上安装 wxHaskell 时出现构建错误

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:20:58 24 4
gpt4 key购买 nike

我在 Ubuntu 13.10 上并尝试安装 wxHaskell。我从 http://repos.codelite.org/wx3.0/ubuntu/ 存储库安装了 wxWidgets 2.9。

基本的 cabal install wx 让我明白了

src/cpp/eljgrid.cpp:61:65: error: no matching function for call to ‘wxGridCellEditor::PaintBackground(wxRect, wxGridCellAttr*)’
self->PaintBackground(wxRect(x, y, w, h), (wxGridCellAttr*)attr);
^
[...]
wxcore-0.90.0.3 depends on wxc-0.90.0.4 which failed to install.

从 GitHub 存储库下载并从源代码构建让我:

setup: can't find source for Graphics/UI/WXCore/WxcClassInfo in src/haskell,
dist/build/autogen
Failed to install wxcore-0.90.1.0
cabal: Error: some packages failed to install:
wxcore-0.90.1.0 failed during the building phase. The exception was:
ExitFailure 1
Resolving dependencies...
Configuring wx-0.90.1.0...
cabal: At least the following dependencies are missing:
wxcore >=0.90.1.0
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: wx-0.90.1.0
trying: wx-0.90.1.0:+splitbase
rejecting: wxcore-0.90.0.3, 0.90.0.1, 0.90, 0.13.2.3, 0.13.2.1, 0.13.2,
0.12.1.7, 0.12.1.6, 0.12.1.5, 0.12.1.4, 0.12.1.3, 0.12.1.2, 0.12.1.1,
0.11.1.2, 0.11.1.1, 0.11.1.0, 0.11.0, 0.10.13.0, 0.10.13, 0.10.12, 0.10.11,
0.10.10, 0.10.9, 0.10.8, 0.10.7, 0.10.6, 0.10.5, 0.10.4, 0.10.3, 0.10.2,
0.10.1 (conflict: wx-0.90.1.0:splitbase => wxcore>=0.90.1.0)

这是怎么回事,需要什么来解决?

最佳答案

听起来你已经克隆了 wxHaskell 的 github 副本:

git clone https://github.com/wxHaskell/wxHaskell

然后你尝试安装 wxHaskell 而没有首先安装它的任何构建依赖项。请注意您的错误消息:

cabal: At least the following dependencies are missing:
wxcore >=0.90.1.0

那个版本的 wxcore 还没有被黑客攻击,但它在你刚刚克隆的 repo 中(参见 https://github.com/wxHaskell/wxHaskell/blob/master/wxcore/wxcore.cabal )。因此,首先转到 wxcore 目录,然后 cabal 安装该库。

编辑:注意依赖关系树变得更深。您需要先安装几个 wx* 包。

关于linux - 在 Linux 上安装 wxHaskell 时出现构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21783577/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com