gpt4 book ai didi

haskell - 在 osx 上为 GHCJS 安装 webkitgtk3

转载 作者:行者123 更新时间:2023-12-03 13:02:04 26 4
gpt4 key购买 nike

我正在尝试在 Mac OSX 上安装 ghcjs-dom 包。由于存在很多依赖关系,因此一直很坎坷。 Webkitgtk3 是我目前的克星

cabal install ghcjs-dom
Resolving dependencies...
Configuring webkitgtk3-0.14.1.1...
Failed to install webkitgtk3-0.14.1.1
Build log ( /Users/markkaravan/.cabal/logs/webkitgtk3-0.14.1.1.log ):
[1 of 2] Compiling SetupWrapper ( /var/folders/br/4zwhphlx3816v87cc0bb5sxh0000gn/T/cabal-tmp-24401/webkitgtk3-0.14.1.1/SetupWrapper.hs, /var/folders/br/4zwhphlx3816v87cc0bb5sxh0000gn/T/cabal-tmp-24401/webkitgtk3-0.14.1.1/dist/setup/SetupWrapper.o )
[2 of 2] Compiling Main ( /var/folders/br/4zwhphlx3816v87cc0bb5sxh0000gn/T/cabal-tmp-24401/webkitgtk3-0.14.1.1/dist/setup/setup.hs, /var/folders/br/4zwhphlx3816v87cc0bb5sxh0000gn/T/cabal-tmp-24401/webkitgtk3-0.14.1.1/dist/setup/Main.o )
Linking /var/folders/br/4zwhphlx3816v87cc0bb5sxh0000gn/T/cabal-tmp-24401/webkitgtk3-0.14.1.1/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 webkitgtk3-0.14.1.1...
setup: The pkg-config package 'webkitgtk-3.0' version >=1.8 is required but it
could not be found.
cabal: Error: some packages failed to install:
ghcjs-dom-0.2.3.1 depends on webkitgtk3-0.14.1.1 which failed to install.
webkitgtk3-0.14.1.1 failed during the configure step. The exception was:
ExitFailure 1

我尝试了以下命令来安装这个吸盘:
brew install gtk+3    
brew install webkitgtk
brew install webkitgtk3
brew install webkitgtk+3
cabal install webkitgtk3

...但没有这样的运气。有谁知道如何安装这个包?

最佳答案

由于我现在仍然遇到这个问题,所以我创建了一个 repository here尝试使用 Homebrew 水龙头来解决此问题。它还没有完全发挥作用,但我认为它已经接近了。

关于haskell - 在 osx 上为 GHCJS 安装 webkitgtk3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34774356/

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