From: Leopold P. A. <le...@wo...> - 2003-11-06 16:15:20
|
A Dijous 06 Novembre 2003 16:51, Benjamin S. Kirk va escriure: > On most systems where PETSc is installed from source the environment > variables PETSC_DIR and PETSC_ARCH are used to describe the > installation. For example, on my machine, the values for these > variables are: > > hactar(4)$ echo $PETSC_DIR > /usr/local/petsc/petsc-2.1.5 > hactar(5)$ echo $PETSC_ARCH > linux > > > so, for your system I think this should work: > > export PETSC_DIR=/usr > export PETSC_ARCH=linux > > and re-run configure. > > We currently do not support a 'make install' target, so at the moment > the --prefix=/usr command line argument will have no effect and may be > omitted. > > Let me know if you have any more trouble. I know of another user > (right, Denis?) who has exactly your configuration working, so it is > certainly possible. I personally don't have access to a Debian machine > with the PETSc packages installed, so my troubleshooting is a little > limited... > > -Ben Hi Ben, thank's for the answer. Sadly I say htat I have some trouble.... :-( lepalom@e01:~/Finite element/libmesh-0.4.1-rc2$ export PETSC_DIR=/usr lepalom@e01:~/Finite element/libmesh-0.4.1-rc2$ export PETSC_ARCH=linux lepalom@e01:~/Finite element/libmesh-0.4.1-rc2$ ./configure --enable-mpi --enable-petsc --enable-laspack ..... checking for /usr/include/petsc.h... no checking for /include/mpi.h... no checking for /lib/libmpich.a... no ..... The question is the configure checks for include/petsch.h, and no, in a debian system in general in the /usr/include/ there are the directories with the name of the directory and inside the headers, so your /usr/include/ has some kind or ordre. I think that it's necessary to change the aclocal.m4 in the line 505: ...... AC_DEFUN(CONFIGURE_PETSC, [ AC_CHECK_FILE($PETSC_DIR/include/petsc.h, PETSC_H_PATH=$PETSC_DIR/include/petsc.h) if (test -r $PETSC_DIR/include/petsc.h) ; then ... I think that this macro is not good. You think that all the tditributions of petsc put the petsc.h header in a include directory, and for example debian doens't. So, probably is necessary to change this macro, and re-run autoconf to create the configure file. IMO. But I have tried to modify it and I have lost :-( Leo Leo |