[petsc-users] Problem installing PETSC with openmpi 1.4.1
Eric Chamberland
Eric.Chamberland at giref.ulaval.ca
Mon Jun 13 10:45:40 CDT 2011
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
=================================================================
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
More information about the petsc-users
mailing list