[petsc-users] PETSc config error

Barry Smith bsmith at mcs.anl.gov
Wed Sep 7 21:55:03 CDT 2011


  These installation questions should be sent to petsc-maint at mcs.anl.gov not to petsc-users.

   It appears there is something wrong/incomplete with the mpicc that your are using; it is not properly connecting the executable to the MPI shared libraries that it is needs which it should do automatically.

   Where did you get this MPI? Do /home/amrit/MPI/bin/mpicc -show and send us the results. Please send all future correspondence on this issue to petsc-maint at mcs.anl.gov

    Barry

On Sep 7, 2011, at 9:06 PM, amrit poudel wrote:

> Thanks Jade. That worked out fine. But I am running into another problem now.  The error is shown below. I am not sure why it says no such file or directory.
> 
> -bash-3.2$ ./config/configure.py --prefix=/home/amrit/PETSc --with-scalar-type=complex --with-batch --with-cc=/home/amrit/MPI/bin/mpicc --with-fc=/home/amrit/MPI/bin/mpif77 --known-mpi-shared=1 --download-f-blas-lapack=1
> 
> ===============================================================================
>              Configuring PETSc to compile on your system                       
> ===============================================================================
> ===============================================================================       
> Compiling FBLASLAPACK; this may take several minutes                      =============================================================================== =================================================================================
>     Since your compute nodes require use of a batch system or mpiexec you must:  
>  1) Submit ./conftest to 1 processor of your batch system or system you are      
>     cross-compiling for; this will generate the file reconfigure.py              
>  2) Run ./reconfigure.py (to complete the configure process).                    
> =================================================================================
> 
> -bash-3.2$ ./conftest
> ./conftest: error while loading shared libraries: libmpi.so.0: cannot open shared object file: No such file or directory
> 
> 
> 
> Date: Thu, 8 Sep 2011 03:14:35 +0200
> From: jedbrown at mcs.anl.gov
> To: petsc-users at mcs.anl.gov
> Subject: Re: [petsc-users] PETSc config error
> 
> On Thu, Sep 8, 2011 at 03:13, amrit poudel <amrit_pou at hotmail.com> wrote:
> This is what I have in /lib, and by looking at libmpi.so, I believe I have a shared library.  Would you recommend building a static library for open mpi or is shared library okay?
> 
> Shared is usually fine. Just add --known-mpi-shared=1 to the configure line you ran before.



More information about the petsc-users mailing list