2

Windows にリアクティブなバナナ パッケージをインストールしようとしましたが、ほとんど成功しませんでした。パッケージについては知っているようですが、インストールに失敗します。ヒントはありますか?

>cabal install Reactive
Resolving dependencies...
...
cabal: Error: some packages failed to install:
category-extras-0.53.5 failed during the building phase. The exception was:
ExitFailure 1
reactive-0.11.5 depends on category-extras-0.53.5 which failed to install.

>cabal install category-extras
Resolving dependencies...
Configuring category-extras-0.53.5...
...
cabal: Error: some packages failed to install:
category-extras-0.53.5 failed during the building phase. The exception was:
ExitFailure 1

>cabal install reactive-banana-wx
Resolving dependencies...
Downloading monads-tf-0.1.0.0...
Warning: monads-tf.cabal: A package using 'cabal-version: >=1.2.3' must use
section syntax. See the Cabal user guide for details.
...
setup.exe: wx-config: does not exist
cabal: Error: some packages failed to install:
reactive-banana-wx-0.3.0.1 depends on wxcore-0.12.1.7 which failed to install.
wx-0.12.1.6 depends on wxcore-0.12.1.7 which failed to install.
wxcore-0.12.1.7 failed during the configure step. The exception was:
ExitFailure 1

etc...

OK、すべての wx-stuff をインストールしました - いくつかの手順を実行しました。wx-config、wxWidgets の順にインストールし、Haskell パーツ (wx、wxcore、reactive-banana.wx) をインストールします。しかし、基本的な Reactive とカテゴリ エクストラは、上記のように失敗します。- カテゴリ エクストラの 99 のステップ 39 が失敗します。

[39 of 99] Compiling Control.Monad.Either ( src\Control\Monad\Either.hs, dist\bu
ild\Control\Monad\Either.o )

src\Control\Monad\Either.hs:44:10:
    Duplicate instance declarations:
      instance Monad (Either e)
        -- Defined at src\Control\Monad\Either.hs:44:10-25
      instance Monad (Either e) -- Defined in Control.Monad.Instances

src\Control\Monad\Either.hs:49:10:
    Duplicate instance declarations:
      instance Applicative (Either e)
        -- Defined at src\Control\Monad\Either.hs:49:10-31
      instance Applicative (Either e) -- Defined in Control.Applicative

src\Control\Monad\Either.hs:53:10:
    Duplicate instance declarations:
      instance MonadFix (Either e)
        -- Defined at src\Control\Monad\Either.hs:53:10-28
      instance MonadFix (Either e) -- Defined in Control.Monad.Fix
cabal: Error: some packages failed to install:
category-extras-0.53.5 failed during the building phase. The exception was:
ExitFailure 1

アップデート:

Haskell の Wx ユニバースは少し混乱しています。これに関する多くの注意事項と、Windows での wx & wxHaskell に関する問題の説明、古いバージョンの GHC が必要な提案などがあります。コードは現在の MSoft コンパイラと互換性がないため、他のコンパイラのインストールが必要になるなどです。全体として数時間突っついた後、私にはかなりがっかりしました。wx-config、wxPack、wxWidgets、wxHaskell、そして cabal wx & wxcore; からインストールしました。すべてが成功を報告しましたが、それでも失敗しました (wxmsw28_gcc.dll が見つかりません; ライブラリにはあります)。彼らの最初のテスト (サンプル/コントロール...) は失敗します。wxWidgets と wxHaskell のページでは、すべてのサンプル リンクとその他多くのリンクが壊れています。再起動後 (?!)、いくつかのテストを実行しているように見えるので、成功することを期待しています。

私は魔法の「apt-get install」のような体験を望んでいました。

FRP の場合 -- FRP の例 (leksah 内) では、「リンク先が見つかりません...」というエラー メッセージが多数表示されますが、今のところ実行されています。

全体として、私の経験からすると、wxHaskell と FRP は Windows では使いにくいようです。Haskell の使いやすさと有用性の良い例として、私がクラスに割り当てるようなものではないことは確かです! :-)

これらのパッケージに含まれるすべての複雑さと作業に感謝します。文句を言うつもりはありません。ただの体験レポートです。おそらく、wxHaskell パッケージは一般的に使用されていないか、..??

4

2 に答える 2

6

「reactive-banana」に「banana」を含める必要があることに注意してください。:-)

cabal install reactive-banana
cabal install reactive-banana-wx

つまり、Reactiveお探しのパッケージではないreactive-bananaです。(このReactiveパッケージは、Conal Elliott による同様の目標を持つ古い実験ですが、いくつかのシステム上のバグがあり、少し腐っています。)

于 2011-07-12T06:56:59.377 に答える
1

ここにwx-configのWindowsポートがあるようです。それがまだwx-coreにないのなら、私は驚きます。WX cライブラリがインストールされていますか?それは必要です-HaskellパッケージはCライブラリへの単なるバインディングです。

于 2011-07-11T19:40:41.797 に答える