mpiexec configuration

Pete Wyckoff pw at osc.edu
Sat Sep 14 11:23:05 EDT 2002


ravi at cdacindia.com said:
>   I am trying to configure mpiexec-0.68 for OpenPBSv-2.3.16. I have
> already installed MPICH-1.2.4 for P4 device and Shared memory(enabled both
> options). Now according to the readme file given in the mpiexec0.68 i
> followed the steps.

You're doing fine, but you might want to consider 0.70 just in case
there were some bug fixes recently.

> configure: error: libpbs.a not found in /usr/local/PBS-2_3_16/lib
[..]
> And in the config.log file it prints these things
> configure:812: gcc -o conftest -g -O2   conftest.c -lpbs
> -L/usr/local/PBS-2_3_16/lib 1>&5
> Undefined                       first referenced
>  symbol in file 
> socket 			/usr/local/PBS-2_3_16/lib/libpbs.a(tm.o)
> gethostbyname 		/usr/local/PBS-2_3_16/lib/libpbs.a(tm.o) 
> setsockopt		/usr/local/PBS-2_3_16/lib/libpbs.a(tm.o)  
> connect			/usr/local/PBS-2_3_16/lib/libpbs.a(tm.o)  
> ld: fatal: Symbol referencing errors. No output written to conftest
> collect2: ld returned 1 exit status

Aha.  It appears that your system needs extra libraries to make socket
code work.  Good thing you looked in the log file.  I vaguely remember
having to add "-lsocket" to make such code compile on suns, for
instance.

You might try:

    LIBS=-lsocket ./configure ...

or

    LIBS="-lsocket -lnsl" ./configure ...

and see if that will convince the configure script to link with the
appropriate system libraries.  You will likely have to edit the Makefile
which is generated by this to do the same thing when it goes to build
mpiexec.

I'll work on a proper patch for you next week.

		-- Pete



More information about the mpiexec mailing list