← Back to team overview

dorsal team mailing list archive

Installing on a mac

 

Hi
I am trying to install on a mac with snow leopard 10.6.4 and gcc 4.2.1 (also ifort 11.1) and up to date macports using dorsal-0.8.1.

The build went without obvious problems.

So I tried 

python demo.py

in the pde/poisson demo and I get

> lindv9:python monk$ !py
> python demo.py
> Traceback (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


(BTW a colleague here who installed yesterday using0.8.0 with a seemingly very similar setup had no problem - except for the fenicsproject edit).


After this I have tried to read the discussion in the archives but it doesn't make a lot of sense to me.  

So I am at a bit of a loss what to do next.  Can someone summarize in a simple way what edits I should make in order to install FEniCS on a mac with snow leopard.  Thanks and my apologies for asking you about something that has been so extensively discussed already.

Peter



Follow ups