24小时热门版块排行榜    

查看: 2903  |  回复: 26
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

板桥霜

木虫 (正式写手)

[求助] help---------openmpi 已有2人参与

hello every, I've got some problems when I try to compile hello_c.c, one sample of openmpi1.8 examples, the  messages are here:
./Makefile hello_c.c
./Makefile: line 27: CC: command not found
./Makefile: line 28: CXX: command not found
./Makefile: line 29: CCC: command not found
./Makefile: line 30: FC: command not found
./Makefile: line 31: JAVAC: command not found
./Makefile: line 32: SHMEMCC: command not found
./Makefile: line 33: SHMEMFC: command not found
./Makefile: line 40: CFLAGS: command not found
./Makefile: line 41: CXXFLAGS: command not found
./Makefile: line 42: CCFLAGS: command not found
./Makefile: line 43: FCFLAGS: command not found
./Makefile: line 47: EXAMPLES: command not found
./Makefile: line 70: all:: command not found
./Makefile: line 71: syntax error near unexpected token `then'
./Makefile: line 71: `        @ if which ompi_info >/dev/null 2>&1 ; then \'
[root@lab-host examples]# which mpicc
/home/han/program/openmpi/bin/mpicc
I have add the path of mpicc, mpic++ and mifort to PATH, what should I do?
Thanks alot
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

板桥霜

木虫 (正式写手)

environmental variables on nodes lab-p1 and lab-p2 are:
[han@lab-p2 ~]$ echo $PATH
/home/han/program/icc/bin:/home/han/program/openmpi/bin:/usr/lib/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/han/bin
[han@lab-p2 ~]$ echo $LD_LIBRARY_PATH
/home/han/program/icc/lib/ia32:/home/han/program/icc/composer_xe_2013_sp1.2.144/compiler/lib/ia32:/home/han/program/openmpi/lib:
9楼2014-08-30 11:46:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 27 个回答

板桥霜

木虫 (正式写手)

waiting online..............
2楼2014-08-28 09:40:12
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

liliangfang

荣誉版主 (著名写手)

【答案】应助回帖

感谢参与,应助指数 +1
在root下试试
yum install gcc*
3楼2014-08-29 07:54:58
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

板桥霜

木虫 (正式写手)

引用回帖:
3楼: Originally posted by liliangfang at 2014-08-29 07:54:58
在root下试试
yum install gcc*

I've tried using root, still wrong.
and it's not about gcc, cause
$ rpm -qa |grep gcc
gcc-c++-4.4.6-3.el6.i686
gcc-gfortran-4.4.6-3.el6.i686
gcc-4.4.6-3.el6.i686
libgcc-4.4.6-3.el6.i686
The program was complied with icc, ifort
thanks anyway~
==================================================
The work was carried out in a cluster composed of 1 server(lib-host), 2 nodes(lib-p1 and lib-p2).
NFS, NIS, RSH, and ip ruls were set up.
now,  when I login the server as user (username han):
[han@lab-host ~]$ which mpicc
~/program/openmpi/bin/mpicc
[han@lab-host ~]$ which mpic++
~/program/openmpi/bin/mpic++
[han@lab-host ~]$ which mpifort
~/program/openmpi/bin/mpifort
[han@lab-host ~]$ which mpiexec
~/program/openmpi/bin/mpiexec
[han@lab-host ~]$ which mpirun
~/program/openmpi/bin/mpirun
===================================
I can locate the file here:
[han@lab-host ~]$ locate libsvml.so
/home/han/program/icc/composer_xe_2013_sp1.2.144/compiler/lib/ia32/libsvml.so
===================================
but when I log in the node , sth was wrong:

the program of "which " was correct
[han@lab-host ~]$ locate libsvml.so
/home/han/program/icc/composer_xe_2013_sp1.2.144/compiler/lib/ia32/libsvml.so
======================================
when I use the program of "locate"
[han@lab-p1 ~]$ locate libsvml.so
[han@lab-p1 ~]$
nothing was located
the enveriment variables of PATH, LD_LIBARARY_PATH was added. what' wrong with my cluster.....


thank you
4楼2014-08-29 09:02:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 ZYXdhzDAy9ZX 2026-09-28 3/150 2026-09-29 06:42 by ZvyPK8n6Nfki
[找工作] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +3 ZYXdhzDAy9ZX 2026-09-28 3/150 2026-09-29 06:34 by ZvyPK8n6Nfki
[找工作] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +3 ZYXdhzDAy9ZX 2026-09-28 3/150 2026-09-29 06:28 by ZvyPK8n6Nfki
[考博] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 ZYXdhzDAy9ZX 2026-09-28 3/150 2026-09-29 06:18 by ZvyPK8n6Nfki
[硕博家园] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 tqUTOxClQUMF 2026-09-28 3/150 2026-09-28 23:46 by b8fCuTHqckEt
[考博] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +4 GDBe8tDZqE8z 2026-09-28 4/200 2026-09-28 23:19 by b8fCuTHqckEt
[考研] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 GDBe8tDZqE8z 2026-09-28 3/150 2026-09-28 23:12 by b8fCuTHqckEt
[硕博家园] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 CfXuS1rDhLYN 2026-09-28 4/200 2026-09-28 22:55 by ez6fGg9abYaj
[公派出国] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +4 IDs3scOF0tjC 2026-09-28 4/200 2026-09-28 22:55 by ez6fGg9abYaj
[博后之家] 售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急 +4 IDs3scOF0tjC 2026-09-28 5/250 2026-09-28 22:45 by ez6fGg9abYaj
[有机交流] 同一个分子,一条来自文献,一条来自AI——不告诉你答案,你会选哪条? +3 tianxiaoxian 2026-09-28 6/300 2026-09-28 22:44 by tianxiaoxian
[找工作] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 IDs3scOF0tjC 2026-09-28 5/250 2026-09-28 22:32 by ez6fGg9abYaj
[公派出国] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +3 IDs3scOF0tjC 2026-09-28 4/200 2026-09-28 22:28 by ez6fGg9abYaj
[博后之家] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 IDs3scOF0tjC 2026-09-28 3/150 2026-09-28 22:21 by ez6fGg9abYaj
[考博] 售SCI文章,我:8O.5.5.1O.54,科目全,可十急 +3 IDs3scOF0tjC 2026-09-28 6/300 2026-09-28 22:15 by ez6fGg9abYaj
[论文投稿] 售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急 +3 CfXuS1rDhLYN 2026-09-28 3/150 2026-09-28 19:08 by 9lS3ad5oOymn
[考研] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +3 IDs3scOF0tjC 2026-09-28 4/200 2026-09-28 18:51 by 9lS3ad5oOymn
[找工作] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +4 IDs3scOF0tjC 2026-09-28 4/200 2026-09-28 17:30 by ZYXdhzDAy9ZX
[教师之家] 某top大学教授说“能够在市场中兑现的能力才是真能力”无比同意! +7 zju2000 2026-09-26 8/400 2026-09-28 16:42 by beefly
[教师之家] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +3 GDBe8tDZqE8z 2026-09-28 3/150 2026-09-28 15:32 by ZYXdhzDAy9ZX
信息提示
请填处理意见