2

Haskell プログラムでグラフを作成したいのですが、plot をインストールしようとすると、次のエラーが発生します。

Preprocessing library plot-0.2.3.4...

lib/Graphics/Rendering/Plot/Figure/Simple.hs:37:8:
    Could not find module ‘Numeric.Container’
    Use -v to see a list of the files searched for.

lib/Graphics/Rendering/Plot/Types.hs:25:8:
    Could not find module ‘Data.Packed.Vector’
    Use -v to see a list of the files searched for.

lib/Graphics/Rendering/Plot/Types.hs:26:8:
    Could not find module ‘Data.Packed.Matrix’
    Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
plot-0.2.3.4 failed during the building phase. The exception was:
ExitFailure 1

この問題に続いて、 hmatrix をバージョンに更新しました0.17.0.1が、それでも同じエラーが発生します。何か案は?

4

2 に答える 2

2

でプロジェクトを管理していますcabalか、それともグローバル パッケージ スペースにインストールしているだけですか?

依存関係を使用するcabalか、管理するために移動します。stackFWIWスタックリゾルバーplot-0.2.3.4を使用してコンパイルできることを確認したので、問題はないと思います。hmatrix-0.16.1.5lts-3.7hmatrix

cabal を使用している場合は、cabal ファイルを投稿してください。それ以外の場合は、スタック プロジェクトを作成することをお勧めします。

  • 走るstack new project-name
  • 編集してフィールドproject-name.cabalに追加するplotbuild-depends:
  • 走るstack build
于 2015-10-27T17:45:16.287 に答える