2

まだ最新の GUI パッケージはありますか?

今日、wxHaskell と gtk2hs の両方をインストールしようとしましたが、どちらも解決できない依存関係で失敗しました (wxHaskell はいくつかの wxWidget ライブラリを見つけることができず、glade チュートリアル gtk2hs を試しているときに、私もインストールした pkg-config libglade2-0 が見つからないために失敗しました)。

Linux/cabal/パッケージのインストールを十分に理解していないのは私の問題だと思いますが、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

これは本当にイライラします - 誰かが私を助けてくれるかもしれません - ありがとう!

4

1 に答える 1

4

私は12.04を実行していますが、すべてうまくいきます。libglade2-dev がインストールされていますか? それはそれを修正する必要があります。ArchLinux から来て、別の開発ライブラリがあることを知らなかったとき、最初は同じ問題がありました。アーチでこれを行う必要があったことを覚えていません。

于 2012-10-05T16:11:53.030 に答える