<div>That was an old try. </div>
<div> </div>
<div>My new try including all output information is the following. Everything is OK except for "make test" has one error. </div>
<div>I checked the library of HYPRE. All HYPRE libs have been created, but they cannot be installed with PETSC libs. </div>
<div>And I manually copy all HYPRE libs into the directory of the final-installed PETSC's libs, but "make test" still has </div>
<div>the same problem. </div>
<div> </div>
<div>Please fix it, thanks.</div>
<div> </div>
<div>David</div>
<div>-----------------------------------------------the final installed libs-------------------------------------------------------------------------------------------------</div>
<div>[ petsc-2.3.3-p15]$ ls /home/David/petsc233-p15/lib/linux-gnu-c-debug/<br>libpetsc.a libpetscdm.a libpetscmat.a libpetscts.a<br>libpetsccontrib.a libpetscksp.a libpetscsnes.a libpetscvec.a<br></div>
<div>------------------------------------------------PETSC libs---------------------------------------------------------------------------------------------------</div>
<div>[ petsc-2.3.3-p15]$ ls lib/linux-gnu-c-debug/<br>libpetsc.a libpetscdm.a libpetscmat.a libpetscts.a<br>libpetsccontrib.a libpetscksp.a libpetscsnes.a libpetscvec.a</div>
<div> </div>
<div>--------------------------------------------------HYPRE libs------------------------------------------------------------------------------------------------- </div>
<div> </div>
<div>[ petsc-2.3.3-p15]$ ls externalpackages/hypre-2.0.0/linux-gnu-c-debug/lib/<br>libHYPRE.a libHYPRE_MatrixMatrix.a libHYPRE_sstruct_ls.a<br>libHYPRE_DistributedMatrix.a libHYPRE_multivector.a libHYPRE_sstruct_mv.a<br>
libHYPRE_DistributedMatrixPilutSolver.a libHYPRE_ParaSails.a libHYPRE_struct_ls.a<br>libHYPRE_Euclid.a libHYPRE_parcsr_block_mv.a libHYPRE_struct_mv.a<br>libHYPRE_IJ_mv.a libHYPRE_parcsr_ls.a libHYPRE_utilities.a<br>
libHYPRE_krylov.a libHYPRE_parcsr_mv.a<br>libHYPRE_LSI.a libHYPRE_seq_mv.a<br>----------------------------------------configure------------------------------------------------------------------------------------------------------<br>
[ petsc-2.3.3-p15]$ export PETSC_DIR=$PWD<br>[ petsc-2.3.3-p15]$ ./config/configure.py --prefix=/home/David/petsc233-p15 --with-cc=gcc --with-cxx=g++ --with-fc=ifort --with-mpi-dir=/opt/openmpi --with-hypre=1 --download-hypre=ifneeded<br>
=================================================================================<br> Configuring PETSc to compile on your system<br>=================================================================================<br>
TESTING: configureLibrary from PETSc.packages.hypre(python/PETSc/packages/hypre.py:120) using: --with-MPI-include="/opt/openmpi/include"<br>Compilers:<br> C Compiler: gcc -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -g3<br>
C++ Compiler: g++ -Wall -Wwrite-strings -Wno-strict-aliasing -g -fPIC<br> Fortran Compiler: ifort -fPIC -g<br>Linkers:<br> Shared linker: gcc -shared -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -g3<br>
Dynamic linker: gcc -shared -fPIC -Wall -Wwrite-strings -Wno-strict-aliasing -g3<br>PETSc:<br> **<br> ** Before running "make" your PETSC_ARCH must be specified with:<br> ** ** setenv PETSC_ARCH linux-gnu-c-debug (csh/tcsh)<br>
** ** PETSC_ARCH=linux-gnu-c-debug; export PETSC_ARCH (sh/bash)<br> **<br> PETSC_DIR: /home/David/petsc/petsc-2.3.3-p15<br> **<br> ** Now build and test the libraries with "make all test"<br> **<br> Clanguage: C<br>
PETSc shared libraries: disabled<br> PETSc dynamic libraries: disabled<br> Scalar type:real<br>MPI:<br> Includes: ['/opt/openmpi/include']<br> Library: ['/opt/openmpi/lib/libmpi.a']<br>X11:<br> Includes: ['-I/usr/X11R6/include']<br>
Library: ['-L/usr/X11R6/lib -lX11']<br>BLAS/LAPACK: -llapack -lblas<br>hypre:<br> Includes: ['/home/David/petsc/petsc-2.3.3-p15/externalpackages/hypre-2.0.0/linux-gnu-c-debug/include']<br> Library: ['/home/David/petsc/petsc-2.3.3-p15/externalpackages/hypre-2.0.0/linux-gnu-c-debug/lib/libHYPRE.a', '-Wl,-rpath,/usr/lib/gcc/i386-redhat-linux/3.4.6', '-Wl,-rpath,/usr/lib/gcc/i386-redhat-linux/3.4.6/../../..', '-lstdc++']<br>
---------------------------------------------------make install---------------------------------------------------------------------------------</div>
<div>Installing PETSc at /home/David/petsc233-p15<br>Shared libraries disabled<br>sh/bash: PETSC_DIR=/home/David/petsc233-p15; export PETSC_DIR<br>csh/tcsh: setenv PETSC_DIR /home/David/petsc233-p15<br>Then do make test to verify correct install<br>
---------------------------------------------------make test-------------------------------------------------------------------------------------</div>
<div>Running test examples to verify correct installation<br>C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1 MPI process<br>C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2 MPI processes<br>
Possible error running Graphics examples src/snes/examples/tutorials/ex19 1 MPI process<br>See <a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html">http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html</a><br>
lid velocity = 0.0016, prandtl # = 1, grashof # = 1<br>[0]PETSC ERROR: --------------------- Error Message ------------------------------------<br>[0]PETSC ERROR: Error in external library!<br>[0]PETSC ERROR: Unable to open display on apmachine:0.0<br>
. Make sure your COMPUTE NODES are authorized to connect<br> to this X server and either your DISPLAY variable<br> is set or you use the -display name option<br>!<br>[0]PETSC ERROR: ------------------------------------------------------------------------<br>
[0]PETSC ERROR: Petsc Release Version 2.3.3, Patch 15, Tue Sep 23 10:02:49 CDT 2008 HG revision: 31306062cd1a6f6a2496fccb4878f485c9b91760<br>[0]PETSC ERROR: See docs/changes/index.html for recent updates.<br>[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.<br>
[0]PETSC ERROR: See docs/index.html for manual pages.<br>[0]PETSC ERROR: ------------------------------------------------------------------------<br>[0]PETSC ERROR: ./ex19 on a linux-gnu named apmachine by David Wed Mar 24 11:41:48 2010<br>
[0]PETSC ERROR: Libraries linked from /home/David/petsc233-p15/lib/linux-gnu-c-debug<br>[0]PETSC ERROR: Configure run at Wed Mar 24 11:21:40 2010<br>[0]PETSC ERROR: Configure options --prefix=/home/David/petsc233-p15 --with-cc=gcc --with-cxx=g++ --with-fc=ifort --with-mpi-dir=/opt/openmpi --with-hypre=1 --download-hypre=ifneeded --with-shared=0<br>
[0]PETSC ERROR: ------------------------------------------------------------------------<br>[0]PETSC ERROR: PetscDrawXGetDisplaySize_Private() line 618 in src/sys/draw/impls/x/xops.c<br>[0]PETSC ERROR: PETSc unable to use X windows<br>
proceeding without graphics<br>Number of Newton iterations = 2<br>lid velocity = 0.0016, prandtl # = 1, grashof # = 1<br>Number of Newton iterations = 2<br>Fortran example src/snes/examples/tutorials/ex5f run successfully with 1 MPI process<br>
Completed test examples<br></div>
<div> </div>
<div class="gmail_quote">On Wed, Mar 24, 2010 at 9:35 AM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">On Tue, 23 Mar 2010, David sheehan wrote:<br><br>> I try openmpi, there are the following error,<br>><br>> ./configure --prefix=/home/David/petsc300p11_openmpi --with-cc=gcc<br>> --with-cxx=g++ --with-fc=ifort --download-openmpi=1 --download-hypre=1<br>
> =================================================================================<br>> Configuring PETSc to compile on your system<br>> =================================================================================<br>
> TESTING: check from<br>> config.libraries(config/BuildSystem/config/libraries.py:126)<br>> *********************************************************************************<br>> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for<br>
> details):<br>> ---------------------------------------------------------------------------------------<br>> Currently --download-openmpi option does not work with --prefix install.<br>> Suggest installing OpenMPI separately, and then configuring PETSc with<br>
> --with-mpi-dir option.<br>> *********************************************************************************<br>><br>> How to fix it? thanks.<br><br></div>configure already gave the answer to your question<br>
<font color="#888888"><br>satish<br></font></blockquote></div><br>