On Thu, Jun 26, 2014 at 9:45 PM, Anawati, Perris <[email protected]> wrote:
> Me and my partner cannot figure out how to get FEniCS set up. I THINK I
> installed everything properly on my mac. I tried running a sample code, but
> keep getting an error saying dolfin is no defined. I'm relatively new to all
> of this, so I spent hours searching for a solution, but cannot find one.

Did you install the binary package? If yes, then you can either use
FEniCS by clicking on the FEniCS icon in the Applications folder or
start a terminal and run the following command:

  source /Applications/FEniCS.app/Contents/Resources/share/fenics/fenics.conf

In both cases, you will have a terminal with environment variables set
up to run FEniCS programs.

If you want to use FEniCS in Eclipse, I assume that you must set the
same environment variables as in fenics.conf inside Eclipse. These
environment variables are listed next:

FEniCS_RESOURCES=/Applications/FEniCS.app/Contents/Resources
export PATH=$FEniCS_RESOURCES/bin:$PATH
export 
DYLD_LIBRARY_PATH=$FEniCS_RESOURCES/lib:$FEniCS_RESOURCES/lib/vtk-5.10:$DYLD_LIBRARY_PATH
export 
PYTHONPATH=$FEniCS_RESOURCES/lib/python2.7/site-packages:$FEniCS_RESOURCES/lib/vtk-5.10:$PYTHONPATH
export 
PKG_CONFIG_PATH=$FEniCS_RESOURCES/lib/pkgconfig:/usr/lib/pkgconfig:$PKG_CONFIG_PATH
export MANPATH=$FEniCS_RESOURCES/man:$FEniCS_RESOURCES/share/man:$MANPATH
export BOOST_DIR=$FEniCS_RESOURCES
export SWIG_LIB=$FEniCS_RESOURCES/share/swig/2.0.8
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export OPAL_PREFIX=$FEniCS_RESOURCES

Johannes
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to