从源代码编译MPICH2

从源代码编译MPICH2

本文介绍了从源代码编译MPICH2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着this的问题,我开始从源代码构建MPICH2。我发现这个教程:安装MPICH2,到目前为止,我所做的是这样的:

  ./配置--disable-F77 --disable-FC --disable-FORTRAN
[好像是OK]
使;须藤做安装
[一个警告长时间的输出]
libtool的:警告:重新链接'的lib / libmpicxx.la
根@毕达哥拉斯:/home/gsamaras/mpich-3.1.4# mpich2version
庆典:mpich2version:命令未找到

我是什么做错了吗?请注意,我第一次安装了MPICH2 apt-get和以去除它,我所做的:

  apt-get的删除--purge MPICH2
易于得到的autoremove //​​这可能会去掉,我现在需要的东西


明天,我要试试这个:(这与第一次尝试失败了autogen.sh部分工作)。


EDIT_1 的:

我无法得到它的工作,将尝试和报告后面的两个教程的组合。我也从另一个教程配置,然后化妆,太失败


EDIT_2

这5树荫一些轻它得到了安装位置(按照第一个教程):

 根@毕达哥拉斯:/home/gsamaras/mpich-3.1.4#其中mpiexec的
在/ usr / local / bin目录/ mpiexec的
根@毕达哥拉斯:/home/gsamaras/mpich-3.1.4#其中的mpirun
在/ usr / local / bin目录/的mpirun


解决方案

您安装到/ usr / local,这是做事情的方式确定。你遵循的README说明建议的另一种方式,不会要求管理权限。

我想安装到/家庭/ robl /柔和/ MPICH-什么的,所以我可以有不同的编译器,版本,配置,等等。这种灵活性可能是矫枉过正你,但它是一种策略。

要你的问题:

 根@毕达哥拉斯:/home/gsamaras/mpich-3.1.4# mpich2version
庆典:mpich2version:命令未找到

首先,命令现在是 mpichversion ,而不是 mpich2version - 这是可能的,你是下一个旧的教程。

二,你的shell可能不知道新安装的二进制文件。 散-r (至少在bash和tcsh中)会告诉shell忘记你认为你知道我的文件系统和更努力。

As a follow-up of this question, I started building MPICH2 from source. I found this tutorial: Installing MPICH2 on a Single Machine and so far what I did is this:

./configure --disable-f77 --disable-fc --disable-fortran
[seems to be OK]
make; sudo make install
[long output with one warning]
libtool: warning: relinking 'lib/libmpicxx.la'
root@pythagoras:/home/gsamaras/mpich-3.1.4# mpich2version
bash: mpich2version: command not found

What am I doing wrong? Notice that I had first installed MPICH2 with apt-get and in order to remove it, I did:

apt-get remove --purge mpich2
apt-get autoremove // which might removed something that I need now


Tomorrow, I am going to try this: Getting And Building MPICH (which with first attempt failed to work in the autogen.sh part).


EDIT_1:

I couldn't get it to work, will try a combination of the two tutorials and report back. I did a configure and then the make from the other tutorial, failed too.


EDIT_2

This may shade some light about where it got installed (by following the first tutorial):

root@pythagoras:/home/gsamaras/mpich-3.1.4# which mpiexec
/usr/local/bin/mpiexec
root@pythagoras:/home/gsamaras/mpich-3.1.4# which mpirun
/usr/local/bin/mpirun
解决方案

You installed into /usr/local, which is an OK way to do things. The README instructions you followed suggests another way which will not require administrative privileges.

I like to install into /home/robl/soft/mpich-whatever , so I can have different compilers, versions, configurations, etc. such flexibility is probably overkill for you, but it's one strategy.

To your question:

root@pythagoras:/home/gsamaras/mpich-3.1.4# mpich2version
bash: mpich2version: command not found

First, the command is now mpichversion, not mpich2version -- it's possible you were following an old tutorial.

Second, your shell might not know about the newly installed binaries. hash -r (at least on bash and tcsh) will tell the shell "forget about what you think you know about my file system and look harder".

这篇关于从源代码编译MPICH2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-01 00:35