[petsc-users] Problem installing PETSC with openmpi 1.4.1
Matthew Knepley
knepley at gmail.com
Mon Jun 13 12:10:57 CDT 2011
On Mon, Jun 13, 2011 at 3:45 PM, Eric Chamberland <
Eric.Chamberland at giref.ulaval.ca> wrote:
> Hi,
>
> I am unable to install PETSC compiled with openmpi 1.4.1 (or 1.4.3). The
> configure/make phase seems to go well, but the "make install" return an
> error:
>
> =================================================================
> *** using PETSC_DIR=/home/mefpp_ericc/petsc-3.1-p8
> PETSC_ARCH=linux-gnu-c-opt ***
> *** Installing PETSc at /opt/petsc-3.1-p8_openmpi ***
> Traceback (most recent call last):
> File "./config/install.py", line 261, in <module>
> Installer(sys.argv[1:]).run()
> File "./config/install.py", line 245, in run
> self.installBin()
> File "./config/install.py", line 175, in installBin
> self.copies.extend(self.copytree(self.archBinDir, self.installBinDir))
> File "./config/install.py", line 131, in copytree
> raise shutil.Error, errors
> shutil.Error:
> [('/home/mefpp_ericc/petsc-3.1-p8/linux-gnu-c-opt/bin/ompi-checkpoint',
> '/opt/petsc-3.1-p8_openmpi/bin/ompi-checkpoint', "[Errno 2] No such file or
> directory:
> '/home/mefpp_ericc/petsc-3.1-p8/linux-gnu-c-opt/bin/ompi-checkpoint'"),
> ('/home/mefpp_ericc/petsc-3.1-p8/linux-gnu-c-opt/bin/ompi-restart',
> '/opt/petsc-3.1-p8_openmpi/bin/ompi-restart', "[Errno 2] No such file or
> directory:
> '/home/mefpp_ericc/petsc-3.1-p8/linux-gnu-c-opt/bin/ompi-restart'")]
> make: *** [install] Error 1
>
1) I do not yet understand this error. It is saying that the source file:
/home/mefpp_ericc/petsc-3.1-p8/linux-gnu-c-opt/bin/ompi-checkpoint
does not exist. This is very strange since os.listdir() just told us that
said file
exists. Does this file actually exist? With correct permissions?
2) How did OpenMPI get into your PETSc build? Didn't you install it yourself
somewhere else? Did you
rm -rf $PETSC_DIR/$PETSC_ARCH
before you rebuilt?
Thanks,
Matt
> =================================================================
>
> Here is what I did:
>
> ################
> #1- downloaded and installed openmpi 1.4.1 (or 1.4.3) like this:
> ################
>
> ./configure --prefix=/opt/openmpi-1.4.1 CC=gcc CFLAGS="-Wall
> -Wwrite-strings -Wno-strict-aliasing -O" CXX=g++ CXXFLAGS="-Wall
> -Wwrite-strings -Wno-strict-aliasing -O" F77=gfortran FFLAGS="-Wall
> -Wno-unused-variable -O" FC=gfortran FCFLAGS="-Wall -Wno-unused-variable -O"
> --enable-shared=no --enable-static=yes
>
> make all
> su
> make install
>
> and it seems to work well (I am able do use
> /opt/openmpi-1.4.1/bin/mpirun...)
>
> ################
> #2- for PETSC 3.1-p8
> ################
> setenv PATH /opt/openmpi-1.4.1/bin/:$PATH
> setenv LD_LIBRARY_PATH /opt/openmpi-1.4.1/lib/:$LD_LIBRARY_PATH
>
> ./config/configure.py \
> --prefix=/opt/petsc-3.1-p8_openmpi \
> --with-mpi-dir=/opt/openmpi-1.4.1 \
> --with-mpi-compilers=1 \
> --with-debugging=no \
> --download-f-blas-lapack=1 \
> --download-mumps=yes \
> --download-superlu=yes \
> --download-superlu_dist=yes \
> --with-shared=0 \
> --download-scalapack=yes \
> --download-blacs=yes \
> --download-parmetis=yes
>
> make PETSC_DIR=/home/mefpp_ericc/petsc-3.1-p8 PETSC_ARCH=linux-gnu-c-opt
> all
> su
> setenv PATH /opt/openmpi-1.4.1/bin/:$PATH
> setenv LD_LIBRARY_PATH /opt/openmpi-1.4.1/lib/:$LD_LIBRARY_PATH
> make PETSC_DIR=/home/mefpp_ericc/petsc-3.1-p8 PETSC_ARCH=linux-gnu-c-opt
> install
>
> and I get the error I copied at the beginning of this message...
>
> What did I missed?
>
> Thank you!
>
> Eric
>
--
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110613/38f3dd84/attachment.htm>
More information about the petsc-users
mailing list