Compiling python dolfin with cgal

I wanted to install fenics

and use the suggested commands

sudo add-apt-repository ppa:fenics-packages/fenics
sudo apt-get update
sudo apt-get install fenics
sudo apt-get dist-upgrade 

      

During installation, I got an error:

Processing triggers for python-support (1.0.15) ...
/usr/lib/pymodules/python2.7/scitools/pyreport/main.py:268: SyntaxWarning: import * 
only allowed at module level
  def __call__(self, name, globals=None, locals=None, fromlist=None,
/usr/lib/pymodules/python2.7/scitools/pyreport/main.py:285: SyntaxWarning: import * 
only allowed at module level
  def __call__(self, name, globals=None, locals=None,

      

When executing the following commands in the python shell:

from dolfin import*
has_cgal()

      

I get

False

      

I guess I need to compile Dolfin

along with CGAL

, but how? Any ideas?

+3


source to share





All Articles