【问题标题】:Can't install gtk-mac-integration无法安装 gtk-mac-integration
【发布时间】:2012-03-31 22:31:18
【问题描述】:

我不明白这个错误,因为它似乎需要我尝试安装的同一软件包的版本。

$ cabal install gtk-mac-integration
Resolving dependencies...
[1 of 2] Compiling SetupWrapper     ( /var/folders/cU/cUDMo9+9Gl817+j+h1DAvk+++TI/-Tmp-/gtk-mac-integration-0.1.0.46479/gtk-mac-integration-0.1.0.4/SetupWrapper.hs, /var/folders/cU/cUDMo9+9Gl817+j+h1DAvk+++TI/-Tmp-/gtk-mac-integration-0.1.0.46479/gtk-mac-integration-0.1.0.4/dist/setup/SetupWrapper.o )
[2 of 2] Compiling Main             ( /var/folders/cU/cUDMo9+9Gl817+j+h1DAvk+++TI/-Tmp-/gtk-mac-integration-0.1.0.46479/gtk-mac-integration-0.1.0.4/Setup.hs, /var/folders/cU/cUDMo9+9Gl817+j+h1DAvk+++TI/-Tmp-/gtk-mac-integration-0.1.0.46479/gtk-mac-integration-0.1.0.4/dist/setup/Main.o )
Linking /var/folders/cU/cUDMo9+9Gl817+j+h1DAvk+++TI/-Tmp-/gtk-mac-integration-0.1.0.46479/gtk-mac-integration-0.1.0.4/dist/setup/setup ...
[1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o )
[2 of 2] Compiling Main             ( SetupMain.hs, dist/setup-wrapper/Main.o )
Linking dist/setup-wrapper/setup ...
Configuring gtk-mac-integration-0.1.0.4...
setup: The pkg-config package gtk-mac-integration version >=0.9.6 is required
but it could not be found.
cabal: Error: some packages failed to install:
gtk-mac-integration-0.1.0.4 failed during the configure step. The exception
was:
ExitFailure 1

【问题讨论】:

    标签: macos haskell gtk cabal leksah


    【解决方案1】:

    它不想要 Haskell 包 gtk-mac-integration,它想要 systemgtk-mac-integration。也就是说,您尝试安装的 Haskell 包只是绑定到 gtk-mac-integration 库(我认为它与 GTK+ 捆绑在一起);您必须先单独安装它,然后才能安装 Haskell 包。

    如果你已经安装了GTK+,那么问题是Cabal用来查找外部库依赖的pkg-config工具找不到库对应的.pc文件。不过,我不知道如何解决这个问题;至少不是没有更多细节。

    【讨论】:

    • 是的,我已经安装了一个 gtk 版本,但它比较旧。如果我能弄清楚我是如何安装它的,我会尝试更新 gtk。
    • 努力更新 gtk+。使用 $ ~/.local/bin/jhbuild build meta-gtk-osx-core,我收到错误:*** gtk+ 阶段配置期间出错:########## Error running autoreconf -fis && ./configure --prefix /Users/peter/gtk/inst --libdir '/Users/peter/gtk/inst/lib' --with-gdktarget=quartz --enable-quartz-relocation *** [12/14 ]
    • 不幸的是,编译 GTK+ 远远超出了我的专业领域。我建议再问一个问题(可能是关于超级用户?我不确定)。
    猜你喜欢
    • 2015-07-17
    • 1970-01-01
    • 2013-08-05
    • 2018-03-14
    • 2021-05-05
    • 2018-12-22
    • 1970-01-01
    • 2019-10-17
    • 1970-01-01
    相关资源
    最近更新 更多