编译 Haskell-mpi
最终弄清楚如何安装 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
How do I link the header?
After finally figuring out how to install all the required packages for haskell-mpi, I run:
sudo cabal install --global haskell-mpi
and, it gives a header error:
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
How do I link the header?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能需要通过包管理器安装 MPI 发行版的开发包。寻找名称中带有
-dev
的产品;这似乎是一个共同的惯例。You likely need to install your distribution's development package for MPI through your package manager. Look for one with
-dev
in the name; that seems to be a common convention.这有效!
自述文件中提到了这一点,但 软件包页面。
This worked!
This is mentioned in the readme, but not in the package page.