[petsc-users] trouble installing petsc 3.1-p8 on centos 4.8

Satish Balay balay at mcs.anl.gov
Thu Nov 17 13:02:25 CST 2011


On Thu, 17 Nov 2011, Edward Le wrote:

> export LD_LIBRARY_PATH=/home/edward/MPM/openmpi-1.4.4/build2/lib
> 
> ./config/configure.py --configModules=PETSc.Configure --optionsModule=PETSc.compilerOptions --with-shared --known-mpi-shared=1 --with-debugging=0 --with-batch --with-mpi-dir=/home/edward/MPM/openmpi-1.4.4/build2

Sorry - should have said: with the correct LD_LIBRARY_PATH - you
shouldn't need --with-batch --known-mpi-shared=1 options.

>>>>>>
Executing: /home/edward/MPM/openmpi-1.4.4/build2/bin/mpicc -show
sh: icc -I/opt/openmpi-1.2.6/include -pthread -L/opt/openmpi-1.2.6/lib -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil
<<<<<<

Looks like openmpi is installed in /opt/openmpi-1.2.6/ - so
LD_LIBRARY_PATH=/opt/openmpi-1.2.6/lib and
--with-mpi-dir=/opt/openmpi-1.2.6 is more appropriate.


But I see some wierd version differences between the above 2. Perhaps
you'll have not done 'make install' - after building openmpi? Or used
the wrong prefix for it?


> /home/edward/MPM/uintah/petsc-3.1-p8/linux-gnu-c-opt/lib/libpetsc.so: undefined reference to                                 `mpi_conversion_fn_null_'


Might be releated to the above.

Or - just let petsc install mpi to avoid these issues..

./configure --download-openmpi=1 --with-cc=icc --with-fc=ifort  --with-shared=1

Satish


More information about the petsc-users mailing list