Haskell中的GUI编程 - Ubuntu上的安装问题

时间:2012-10-05 08:06:01

标签: haskell gtk2hs wxhaskell

是否有一个仍然是最新的GUI包?

我今天尝试安装wxHaskell和gtk2hs并且两者都失败了我无法解决的依赖关系(wxHaskell无法找到一些wxWidget库,而在尝试使用glade教程gtk2hs失败时,我也安装了缺少的pkg-config libglade2-0)。 / p>

我想这对我来说只是一些问题,我不了解linux / cabal / package安装的东西是否足够好但是有一个最新的教程如何开始(安装)一些用于Haskell的GUI库围绕?

以下是错误:

carsten@Carsten-VirtualBox:~$ cabal install glade
Resolving dependencies...
[1 of 2] Compiling SetupWrapper     ( /tmp/glade-0.12.1-12934/glade-0.12.1/SetupWrapper.hs, /tmp/glade-0.12.1-12934/glade-0.12.1/dist/setup/SetupWrapper.o )
[2 of 2] Compiling Main             ( /tmp/glade-0.12.1-12934/glade-0.12.1/Setup.hs, /tmp/glade-0.12.1-12934/glade-0.12.1/dist/setup/Main.o )
Linking /tmp/glade-0.12.1-12934/glade-0.12.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 glade-0.12.1...
setup: The pkg-config package libglade-2.0 version >=2.0.0 is required but it
could not be found.
cabal: Error: some packages failed to install:
glade-0.12.1 failed during the configure step. The exception was:
ExitFailure 1

carsten@Carsten-VirtualBox:~$ cabal install wxc
Resolving dependencies...
[1 of 1] Compiling Main             ( /tmp/wxc-0.90.0.4-13078/wxc-0.90.0.4/Setup.hs, /tmp/wxc-0.90.0.4-13078/wxc-0.90.0.4/dist/setup/Main.o )
Linking /tmp/wxc-0.90.0.4-13078/wxc-0.90.0.4/dist/setup/setup ...
Configuring wxc-0.90.0.4...

  Warning: No config found to match: /usr/bin/wx-config --version=2.9 --version-full
           in /usr/lib/x86_64-linux-gnu/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.

setup: failed
cabal: Error: some packages failed to install:
wxc-0.90.0.4 failed during the configure step. The exception was:
ExitFailure 1

这真让我很沮丧 - 也许有人可以帮助我 - 谢谢!

1 个答案:

答案 0 :(得分:4)

我正在运行12.04,一切正常。 你确定你安装了libglade2-dev吗?那应该解决它。 来自ArchLinux我起初遇到同样的问题,当时我不知道有不同的开发库,我不记得必须在拱门中这样做。

相关问题