我在用着OpenSuse Leap
我安装了openMPI
YaST 心想。运行一个which mpirun
我得到的命令/usr/lib64/mpi/gcc/openmpi/bin/mpirun
和跑步which mpicc
i get /usr/bin/mpicc
.
如何首先确保 OpenMPI 已正确安装?
其次,我有一个简单的 hello world 我正在处理 X 程序并正在运行mpicc hello.c
我得到这个输出
gcc: 错误: libtool:: 没有这样的文件或目录
gcc: 错误: 链接:: 否
这样的文件或目录 mpicc:没有这样的文件或目录
另外,我安装了Eclipse for Parallel Application
并使用了一个内置示例,它在构建时给了我这个输出
make all
建设目标:你好
调用:GCC C 链接器
mpicc -o“你好”./src/hello.o
gcc: 错误: libtool:: 没有这样的文件或目录
gcc: 错误: 链接:: 没有这样的文件或目录
makefile:30: 目标“hello”的配方失败
mpicc:没有这样的文件或目录
make: *** [你好] 错误 1
我检查了 YaST 并安装了 libtool。
这个答案来得太晚了。我最近也遇到了同样的问题。因此,任何来这里寻求答案的人,这就是我让它发挥作用的方式。
请注意:这是一个孤立的情况,会出现类似的错误
gcc: error: libtool:: No such file or directory
gcc: error: link:: No such file or directory
mpicc: No such file or directory
首先尝试检查LP建议的解决方案。它会尝试更新你的 libtool autoconf 和 automake。如果你无事可做:
sudo zypper in automake autoconf libtool
root's password:
Loading repository data...
Reading installed packages...
'libtool' is already installed.
No update candidate for 'libtool-2.4.2-15.2.2.x86_64'. The highest available version is already installed.
'autoconf' is already installed.
No update candidate for 'autoconf-2.69-10.1.2.noarch'. The highest available version is already installed.
'automake' is already installed.
No update candidate for 'automake-1.13.4-5.1.2.noarch'. The highest available version is already installed.
Resolving package dependencies...
Nothing to do.
然后显式添加您的 OpemMPI 路径变量。
export PATH=/usr/lib64/mpi/gcc/openmpi/bin:$PATH
这对我有用。祝你好运!
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)