Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos Can';t安装gtk mac集成_Macos_Haskell_Gtk_Cabal_Leksah - Fatal编程技术网

Macos Can';t安装gtk mac集成

Macos Can';t安装gtk mac集成,macos,haskell,gtk,cabal,leksah,Macos,Haskell,Gtk,Cabal,Leksah,我不理解这个错误,因为它似乎需要与我尝试安装的软件包相同的版本 $ 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/SetupWra

我不理解这个错误,因为它似乎需要与我尝试安装的软件包相同的版本

$ 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

它不需要Haskell包
gtk mac集成
,它需要系统包
gtk mac集成
。也就是说,您尝试安装的Haskell软件包只是与
gtk mac integration
库(我认为它与gtk+捆绑在一起)的绑定;在安装Haskell软件包之前,您必须单独安装它


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

是的,我已经安装了gtk的一个版本,但它更旧。我会尝试更新gtk,如果我能弄清楚我是如何安装它的。努力更新gtk+。使用$~/.local/bin/jhbuild-build-meta-gtk-osx-core,我得到了一个错误:**在gtk+的配置阶段出现错误:\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\,编译GTK+远远超出了我的专业领域。我建议问另一个问题(可能是关于超级用户?我不确定)。