Hi!
Den 21.10.10 15.11, skrev Peter Monk:
Thank you everyone who has addressed my question. I regret that the fixes do
not seem to work. Here is what I did:
1) I deleted all of macports and the ported software following the uninstall
directions in macports documentation (the idea being to start as close as
possible to my friend's computer that successfully installed FEniCS).
2) I reinstalled a new version macports and installed only what is needed by
dorsal. This failed because swig-python has a bug that doesn't install pcre.
Porting pcre and then swig-python fixes that problem.
3) I edited platforms/supported/snowleopard.platform and added
default
LAPACKANDBLAS_DIR=/opt/intel/Compiler/11.1/088/Frameworks/mkl/Libraries/em64t
I have never tried this one, but snow leopard already comes with an
optimized version (vecLib framework) from Apple. Does it not suit your
needs?
to try to get a good LAPACK and BLAS
4) I edited packages/dolfin.package and dolfin-stable.package as suggested by
Dr Ring and added
CONFOPTS="-DMETIS_LIBRARY=${INSTALL_PATH}/lib/libmetis.a"
Just for the sake of limiting error sources, could you check whether
metis is also installed from macports and temporarily
uninstall/deactivate it?
5) I reinstalled a fresh version of FEniCS
6) I then got the following error message during the configuring of petsc
Building petsc-3.1-p4
===============================================================================
Configuring PETSc to compile on your system
===============================================================================
===============================================================================
WARNING! Compiling PETSc with no debugging, this should
only be done for timing and production runs.
All developme
be done when configured using --with-debugging=1
===============================================================================
TESTING: FortranMPICheck from config.packages.MPI(config/BuildSystem/config/pack
*******************************************************************************
UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for
details):
-------------------------------------------------------------------------------
Fortran error! mpif.h could not be located at: [ ]
*
Thats odd because mpif.h exists in petsc's own directory structure but the
location seems empty....
Which compiler and mpi are you using right now? If you use Apple's gcc
( and Apple's openmpi) then there no fortran bindings included.
Does your snowleopard platform contain really petsccore (instead of petsc) ?
7) So I installed openmpi using macports (I need this for another project
anyway). I note that by this time there are metis libraries in /opt/local/lib
and in ~/FEniCS/lib. Then I remade a fresh version of FEniCS. This time
dorsal.sh completed without an obvious failure. I tried the poisson demo in
python and got
Strange. You installed openmpi and petsc worked out? Usually openmpi
from macports with "open" prefix for the binaries, making petsc unable
to find it, unless
you do something with your compiler environment variables. Just to
ensure you could check then mpi libs petsc was linked with with "otool
-L <PETSCHLIB>"
I expect that it is still linked against apple's openmpi.
Peter-Monks-MacBook:python monk$ python demo.pyTraceback (most recent call
last):
File "demo.py", line 22, in<module>
from dolfin import *
File "/Users/monk/FEniCS/lib/python2.6/site-packages/dolfin/__init__.py", line 13,
in<module>
import dolfin.cpp as cpp
File "/Users/monk/FEniCS/lib/python2.6/site-packages/dolfin/cpp.py", line 28,
in<module>
_cpp = swig_import_helper()
File "/Users/monk/FEniCS/lib/python2.6/site-packages/dolfin/cpp.py", line
24, in swig_import_helper
_mod = imp.load_module('_cpp', fp, pathname, description)
ImportError:
dlopen(/Users/monk/FEniCS/lib/python2.6/site-packages/dolfin/_cpp.so, 2):
Symbol not found: _METIS_mCPartGraphRecursive2
Referenced from:
/Users/monk/FEniCS/src/petsc-3.1-p4/darwin10.0.0-cxx-opt/lib/libpetsc.dylib
Expected in: flat namespace
in /Users/monk/FEniCS/src/petsc-3.1-p4/darwin10.0.0-cxx-opt/lib/libpetsc.dylib
You probably still use somehow the wrong metis lib I guess. As suggested
above you should deactivate metis from macports and build FEniCS again.
--
Andre
So I regret that the suggested fixes don't seem to work. The problem seems to
center around petsc.
Thanks again
Peter
_______________________________________________
Mailing list: https://launchpad.net/~dorsal
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dorsal
More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~dorsal
Post to : [email protected]
Unsubscribe : https://launchpad.net/~dorsal
More help : https://help.launchpad.net/ListHelp