编译Haskell-mpi

时间:2012-02-21 19:09:41

标签: haskell mpi cabal

在最终确定如何为haskell-mpi安装所有必需的软件包后,我运行:

sudo cabal install --global haskell-mpi

并且,它给出了标题错误:

Resolving dependencies...
Configuring haskell-mpi-1.2.1...
Preprocessing library haskell-mpi-1.2.1...
dist/build/Control/Parallel/MPI/Internal.chs.h:1:17: error: mpi.h: No such file or directory
c2hs: Error during preprocessing custom header file
cabal: Error: some packages failed to install:
haskell-mpi-1.2.1 failed during the building phase. The exception was:
ExitFailure 1

如何链接标题?

2 个答案:

答案 0 :(得分:1)

您可能需要通过软件包管理器为MPI安装发行版的开发包。在名称中查找-dev的一个;这似乎是一个普遍的惯例。

答案 1 :(得分:0)

这很有用!

sudo cabal install --global --extra-include-dirs=/usr/lib/openmpi/include/ haskell-mpi

readme中提到了这一点,但package page中没有提及。