Znn3bq.jpeg
²é¿´: 2561  |  »Ø¸´: 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µÄ»ØÌû

°åÇÅ˪

ľ³æ (ÕýʽдÊÖ)

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µÄ»ØÌû

liqizuiyang

ľ³æ (ÖøÃûдÊÖ)

It seems that the corresponding environmental variables are not correctly set. You may set them by "export CC=icc" "export CXX=icpc" etc. .

Anyway, there is no need to bother running the examples distributed along with the source code. Just try the testsuite by "make test". If it passes all the tests, then the compilation is successful.

It happened to me that openmpi with version number > 1.6.4 did not work well. On the contrary, the 1.6.4 version was proved to very robust. In fact, all the computers in our group employ this version.
5Â¥2014-08-29 09:24:41
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

°åÇÅ˪

ľ³æ (ÕýʽдÊÖ)

ÒýÓûØÌû:
5Â¥: Originally posted by liqizuiyang at 2014-08-29 09:24:41
It seems that the corresponding environmental variables are not correctly set. You may set them by "export CC=icc" "export CXX=icpc" etc. .

Anyway, there is no need to bother r ...

[han@lab-host examples]$ make test
make: *** No rule to make target `test'.  Stop.
[han@lab-host examples]$
6Â¥2014-08-30 10:40:51
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

busstop

½û³æ (СÓÐÃûÆø)

¸Ðл²ÎÓ룬ӦÖúÖ¸Êý +1
±¾ÌûÄÚÈݱ»ÆÁ±Î

7Â¥2014-08-30 10:58:39
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

°åÇÅ˪

ľ³æ (ÕýʽдÊÖ)

ÒýÓûØÌû:
7Â¥: Originally posted by busstop at 2014-08-30 10:58:39
5LÒѾ­Ö¸³öÎÊÌâÁË£¬Ó¦¸ÃÊÇÂ¥Ö÷»·¾³±äÁ¿Ã»ÉèºÃ¡£
export PATH=¡­¡­/bin:$PATH
export LD_LIBRARY_PATH=¡­¡­/lib£º$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=¡­¡­/lib/openmpi£º$LD_LIBRARY_PATH
lz,2¡¢3ÐÐÌîÁËô ...

[han@lab-host examples]$ echo $PATH
/home/han/program/icc/bin:/home/han/program/openmpi/bin:/home/han/program/openmpi/bin:/home/han/program/icc/bin:/usr/lib/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/han/bin
[han@lab-host examples]$ 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:/home/han/program/icc/lib/ia32:/home/han/program/openmpi/lib:
These are my environmental variables.............
8Â¥2014-08-30 11:21:45
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢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µÄ»ØÌû

liqizuiyang

ľ³æ (ÖøÃûдÊÖ)

ÒýÓûØÌû:
6Â¥: Originally posted by °åÇÅ˪ at 2014-08-30 10:40:51
$ make test
make: *** No rule to make target `test'.  Stop.
$...

Try "make test" at the top directory of the openmpi source code, not at the directory of 'examples'.

If this does not work, try 'make check' instead.
10Â¥2014-08-30 14:19:03
ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ °åÇÅ˪ µÄÖ÷Ìâ¸üÐÂ
×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
[¿¼ÑÐ] Çóµ÷¼Á +15 ÐܶþÏëÉϰ¶ 2026-04-04 15/750 2026-04-08 22:52 by Öí»á·É
[¿¼ÑÐ] 0703»¯Ñ§Çóµ÷¼Á +16 ²»ÖªÃûµÄСئ 2026-04-08 16/800 2026-04-08 21:53 by ÍúÍú¶¹°ü
[¿¼ÑÐ] 277Çóµ÷¼Á +16 Äß½¨Éè 2026-04-06 16/800 2026-04-08 21:28 by zhouxiaoyu
[¿¼ÑÐ] ²ÄÁÏ»¯¹¤×Ü·Ö334Çóµ÷¼Á +7 Riot2025 2026-04-08 7/350 2026-04-08 20:15 by luoyongfeng
[¿¼ÑÐ] 324Çóµ÷¼Á +17 ÏëÉÏѧÇóµ÷ 2026-04-03 17/850 2026-04-08 20:04 by ÎÒ¼õ·Ê1
[¿¼ÑÐ] 085600²ÄÁÏÓ뻯¹¤301·ÖÇóµ÷¼ÁԺУ +27 ´ÌÍ´jk 2026-04-06 28/1400 2026-04-08 16:16 by luoyongfeng
[¿¼ÑÐ] Çóµ÷¼Á +6 chenxrlkx 2026-04-05 8/400 2026-04-08 16:03 by screening
[¿¼ÑÐ] 273Çóµ÷¼Á +41 ÂóС¶£µ± 2026-04-06 48/2400 2026-04-08 15:16 by screening
[¿¼ÑÐ] ¿¼Ñе÷¼Á +11 ±ù±ù£¬£¬£¬ 2026-04-07 11/550 2026-04-08 15:08 by Delta2012
[¿¼ÑÐ] Çóµ÷¼Á +9 ÔÂ@163.com 2026-04-07 11/550 2026-04-08 14:48 by qlm5820
[¿¼ÑÐ] ²ÄÁϹ¤³ÌרҵÈÕÓïÉúÇóµ÷¼Á +9 111623 2026-04-07 9/450 2026-04-07 23:31 by Ò»Ö»ºÃ¹û×Ó?
[¿¼ÑÐ] Ò»Ö¾Ô¸ËÕÖÝ´óѧ²ÄÁϹ¤³Ì£¨085601£©×¨Ë¶ÓпÆÑо­ÀúÈýÏî¹ú½±Á½¸öʵÓÃÐÍרÀûÒ»ÏîÊ¡¼¶Á¢Ïî +11 ´ó»ðɽС»ðɽ 2026-04-05 11/550 2026-04-06 22:55 by yunlongyang
[¿¼ÑÐ] ¼ÆËã»ú11408£¬286·ÖÇóµ÷¼Á +7 ľ×ÓÄî•„ 2026-04-05 7/350 2026-04-05 19:02 by chy09050039
[¿¼ÑÐ] 277Çóµ÷¼Á +4 12A3 2026-04-02 5/250 2026-04-04 20:28 by À¶ÔÆË¼Óê
[¿¼ÑÐ] Çóµ÷¼Á +3 ũҵ¹¤³ÌÓëÐÅÏ¢¼ 2026-04-04 3/150 2026-04-04 12:19 by Éá¶øºóµÃ
[¿¼ÑÐ] 387Çóµ÷¼Á +4 °®³ÔƬ¶¹ÍÁ 2026-04-03 5/250 2026-04-04 08:10 by °¶ÉϵÄÒ»ÌõÓã
[¿¼ÑÐ] 350Ò»Ö¾Ô¸±±¾©º½¿Õº½Ìì´óѧ08500²ÄÁÏ¿ÆÑ§Ó빤³ÌÇóµ÷¼Á +5 kjnasfss 2026-04-03 5/250 2026-04-03 22:29 by Î޼ʵIJÝÔ­
[¿¼ÑÐ] 262Çóµ÷¼Á +6 ÀøÖ¾Ò»¶¨·¢ÎÄÕ 2026-04-02 7/350 2026-04-03 09:54 by linyelide
[¿¼ÑÐ] 296Çóµ÷¼Á +4 sdhu 2026-04-02 4/200 2026-04-02 21:29 by baoball
[¿¼ÑÐ] ²ÄÁÏ340·Öµ÷¼Á +7 ÏÄÒ¹Íí·ç_long 2026-04-02 9/450 2026-04-02 21:20 by dongzh2009
ÐÅÏ¢Ìáʾ
ÇëÌî´¦ÀíÒâ¼û