On Mon, Jun 13, 2011 at 3:45 PM, Eric Chamberland <span dir="ltr"><<a href="mailto:Eric.Chamberland@giref.ulaval.ca">Eric.Chamberland@giref.ulaval.ca</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
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:<br>
<br>
=================================================================<br>
*** using PETSC_DIR=/home/mefpp_ericc/petsc-3.1-p8 PETSC_ARCH=linux-gnu-c-opt ***<br>
*** Installing PETSc at /opt/petsc-3.1-p8_openmpi ***<br>
Traceback (most recent call last):<br>
File "./config/install.py", line 261, in <module><br>
Installer(sys.argv[1:]).run()<br>
File "./config/install.py", line 245, in run<br>
self.installBin()<br>
File "./config/install.py", line 175, in installBin<br>
self.copies.extend(self.copytree(self.archBinDir, self.installBinDir))<br>
File "./config/install.py", line 131, in copytree<br>
raise shutil.Error, errors<br>
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'")]<br>
make: *** [install] Error 1<br></blockquote><div><br></div><div>1) I do not yet understand this error. It is saying that the source file:</div><div><br></div><div> /home/mefpp_ericc/petsc-3.1-p8/linux-gnu-c-opt/bin/ompi-checkpoint</div>
<div><br></div><div>does not exist. This is very strange since os.listdir() just told us that said file</div><div>exists. Does this file actually exist? With correct permissions?</div><div><br></div><div>2) How did OpenMPI get into your PETSc build? Didn't you install it yourself somewhere else? Did you</div>
<div><br></div><div> rm -rf $PETSC_DIR/$PETSC_ARCH</div><div><br></div><div>before you rebuilt?</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><meta charset="utf-8"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
=================================================================<br>
<br>
Here is what I did:<br>
<br>
################<br>
#1- downloaded and installed openmpi 1.4.1 (or 1.4.3) like this:<br>
################<br>
<br>
./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<br>
<br>
make all<br>
su<br>
make install<br>
<br>
and it seems to work well (I am able do use /opt/openmpi-1.4.1/bin/mpirun...)<br>
<br>
################<br>
#2- for PETSC 3.1-p8<br>
################<br>
setenv PATH /opt/openmpi-1.4.1/bin/:$PATH<br>
setenv LD_LIBRARY_PATH /opt/openmpi-1.4.1/lib/:$LD_LIBRARY_PATH<br>
<br>
./config/configure.py \<br>
--prefix=/opt/petsc-3.1-p8_openmpi \<br>
--with-mpi-dir=/opt/openmpi-1.4.1 \<br>
--with-mpi-compilers=1 \<br>
--with-debugging=no \<br>
--download-f-blas-lapack=1 \<br>
--download-mumps=yes \<br>
--download-superlu=yes \<br>
--download-superlu_dist=yes \<br>
--with-shared=0 \<br>
--download-scalapack=yes \<br>
--download-blacs=yes \<br>
--download-parmetis=yes<br>
<br>
make PETSC_DIR=/home/mefpp_ericc/petsc-3.1-p8 PETSC_ARCH=linux-gnu-c-opt all<br>
su<br>
setenv PATH /opt/openmpi-1.4.1/bin/:$PATH<br>
setenv LD_LIBRARY_PATH /opt/openmpi-1.4.1/lib/:$LD_LIBRARY_PATH<br>
make PETSC_DIR=/home/mefpp_ericc/petsc-3.1-p8 PETSC_ARCH=linux-gnu-c-opt install<br>
<br>
and I get the error I copied at the beginning of this message...<br>
<br>
What did I missed?<br>
<br>
Thank you!<br><font color="#888888">
<br>
Eric<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>