2012-02-21 89 views
0

终于搞清楚了如何安装所有需要的包Haskell的-MPI后,我跑:编译哈斯克尔-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 

怎么办我链接标题?

回答

0

这工作!

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

这在readme被提及,但不是在package page

1

您可能需要通过包管理器为MPI安装发行版的开发包。在名称中找一个与-dev相匹配的名称;这似乎是一个共同的惯例。

+0

我已经安装了libopenmpi-dev,并且我还尝试设置包含路径,如下所述:http://stackoverflow.com/questions/5759838/cannot-get-cabal-to-find-the-mpi-library - 用于-哈斯克尔-MPI-的窗口 – NoBugs 2012-02-21 19:25:51