19
我試圖在Mac OSX上安裝ghcjs-dom包。因爲存在很多依賴關係,所以它一直很顛簸。 Webkitgtk3是我目前的剋星在osx上安裝webkitgtk3 for GHCJS
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
...但沒有這樣的運氣。有誰知道如何安裝這個軟件包?
你用'cabal install webkitgtk3'得到了什麼錯誤,它應該在https://hackage.haskell.org/package/webkitgtk3上可用 – epsilonhalbe
@epsilonhalbe'setup:pkg-config軟件包'webkitgtk-3.0'version> = 1.8是必需的,但無法找到。「似乎需要一個操作系統軟件包,但似乎沒有一個適合自制軟件。 –
'pkg-config --list-all'中列出了'webkitgtk-3.0'嗎?如果沒有,請嘗試找到'webkitgtk-3.0.pc'文件(或類似的東西)並將其路徑添加到'PKG_CONFIG_PATH'環境變量中。也可以嘗試'cabal configure -v3'獲取詳細的日誌。 – Yuras