You need to install the development files for libxml2 (package 
libxml2-dev under Ubuntu and Debian) to build DOLFIN

You probably want to get umfpack too (although it's not necessary to 
build DOLFIN).

Garth

Kerim Schroeder wrote:
> Hello!
> Can you help me to resolve problems with the recent dolfin installation? I 
> had successfully used dolfin-0.7.2, but after installing dolfin-0.7.3 
> together with the most recent UFC,FIAT,FFC and INSTANT, I get a 
> "NameError: name 'cpp_Function' is not defined"
> when importing dolfin into python.
> 
> I append to this message
> 1) the python output
> 2) the script used to install dolfin etc.
> 3) the output from the command scons enableDemos=yes
> 4) the output from the command ./scons.local &>scons.local.log
> 
> Please advise me, if I need to install additional packages, change the 
> installation order or set any environment variables (dolfin.conf was 
> sourced.) I have no experience with Scons, so I may have used those commands 
> in a wrong way.
> 
> Thanks
> Kerim
> 
> *** 1) the python output: ***
> [EMAIL PROTECTED]:~$ python
> Python 2.5.1 (r251:54863, Mar  7 2008, 03:41:45) 
> [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import dolfin
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File 
> "/home/kerim/dolfin-0.7.3/local/lib/python2.5/site-packages/dolfin/__init__.py",
>  line 5, in <module>
>     from assemble import *
>   File 
> "/home/kerim/dolfin-0.7.3/local/lib/python2.5/site-packages/dolfin/assemble.py",
>  line 105, in <module>
>     class Function(ffc_Function, cpp_Function):
> NameError: name 'cpp_Function' is not defined
> 
> 
> *** 2) the script used to install dolfin etc.: ***
> tar xzf dolfin-0.7.3.tar.gz
> tar xzf ffc-0.4..5.tar.gz
> tar xzf ufc-1.1.tar.gz
> tar xzf viper-0.3.0.tgz
> tar xzf FIAT-0.3.4.tar.gz
> tar xzf instant-0.9.4.tar.gz
> 
> cd ufc-1.1
> sudo python setup.py install
> cd ../FIAT-0.3.4
> sudo python setup.py install
> cd ../ffc-0.4.5
> sudo python setup.py install
> cd ../instant
> sudo python setup.py install
> cd ../dolfin-0.7.3
> scons enableDemos=yes &>scons.log
> ./scons.local &>scons.local.log
> cd ..
> source dolfin-0.7.3/dolfin.conf
> 
> *** 3) the output from the command scons enableDemos=yes ***
> scons: Reading SConscript files ...
> Using options from scons/options.cache
> Checking for numpy-1... no (pkg-config file not found)
>  Trying to generate pkg-config file for numpy-1... done
>  Found NumPy and generated pkg-config file in 
>  '/home/kerim/dolfin-0.7.3/scons/pkgconfig'
> Checking for scotch... no (pkg-config file not found)
>  Trying to generate pkg-config file for scotch... failed
> Checking for trilinos... no (pkg-config file not found)
>  Trying to generate pkg-config file for trilinos... failed
> Checking for ufc-1... yes
> Checking for umfpack... no (pkg-config file not found)
>  Trying to generate pkg-config file for umfpack... failed
> Checking for python-2... no (pkg-config file not found)
>  Trying to generate pkg-config file for python-2... done
>  Found 'Python' and generated pkg-config file in 
>  /home/kerim/dolfin-0.7.3/scons/pkgconfig
> Checking for petsc... no (pkg-config file not found)
>  Trying to generate pkg-config file for petsc... failed
> Checking for gts... no (pkg-config file not found)
>  Trying to generate pkg-config file for gts... failed
> Checking for boost... no (pkg-config file not found)
>  Trying to generate pkg-config file for boost.... done
>  Found Boost and generated pkg-config file in
>  '/home/kerim/dolfin-0.7.3/scons/pkgconfig'
> Checking for slepc... no (pkg-config file not found)
>  Trying to generate pkg-config file for slepc... failed
> Checking for libxml-2.0... no (pkg-config file not found)
>  Trying to generate pkg-config file for libxml-2.0... failed
> Resolving compiler... done
> Warning: Unknown dependency package: libxml-2.0
> Enabling compilation of PyDOLFIN
> scons: done reading SConscript files.
> scons: *** No targets specified and no Default() targets found.  Stop.
> ---------------------------------------------------------
> If there were no errors, run
> 
>     scons install
> 
> to install DOLFIN on your system. Note that you may need
> to be root in order to install. To specify an alternative
> installation directory, run
> 
>     scons install prefix=<path>
> 
> You may also run ./scons.local for a local installation
> in the DOLFIN source tree.
> 
> You can compile all the demo programs in the subdirectory
> demo by running
> 
>    scons enableDemos=yes
> 
> ---------------------------------------------------------
> *** 4) the output from the command ./scons.local &>scons.local.log ***
> scons: Reading SConscript files ...
> Using options from scons/options.cache
> Checking for numpy-1... yes
> Checking for scotch... no (pkg-config file not found)
>  Trying to generate pkg-config file for scotch... failed
> Checking for trilinos... no (pkg-config file not found)
>  Trying to generate pkg-config file for trilinos... failed
> Checking for ufc-1... yes
> Checking for umfpack... no (pkg-config file not found)
>  Trying to generate pkg-config file for umfpack... failed
> Checking for python-2... yes
> Checking for petsc... no (pkg-config file not found)
>  Trying to generate pkg-config file for petsc... failed
> Checking for gts... no (pkg-config file not found)
>  Trying to generate pkg-config file for gts... failed
> Checking for boost... yes
> Checking for slepc... no (pkg-config file not found)
>  Trying to generate pkg-config file for slepc... failed
> Checking for libxml-2.0... no (pkg-config file not found)
>  Trying to generate pkg-config file for libxml-2.0... failed
> Resolving compiler... done
> Warning: Unknown dependency package: libxml-2.0
> Enabling compilation of PyDOLFIN
> scons: done reading SConscript files.
> scons: *** No targets specified and no Default() targets found.  Stop.
> ---------------------------------------------------------
> If there were no errors, run
> 
>     scons install
> 
> to install DOLFIN on your system. Note that you may need
> to be root in order to install. To specify an alternative
> installation directory, run
> 
>     scons install prefix=<path>
> 
> You may also run ./scons.local for a local installation
> in the DOLFIN source tree.
> 
> You can compile all the demo programs in the subdirectory
> demo by running
> 
>    scons enableDemos=yes
> 
> ---------------------------------------------------------
> scons: Reading SConscript files ...
> Using options from scons/options.cache
> Checking for numpy-1... yes
> Checking for scotch... no (pkg-config file not found)
>  Trying to generate pkg-config file for scotch... failed
> Checking for trilinos... no (pkg-config file not found)
>  Trying to generate pkg-config file for trilinos... failed
> Checking for ufc-1... yes
> Checking for umfpack... no (pkg-config file not found)
>  Trying to generate pkg-config file for umfpack... failed
> Checking for python-2.... yes
> Checking for petsc... no (pkg-config file not found)
>  Trying to generate pkg-config file for petsc... failed
> Checking for gts... no (pkg-config file not found)
>  Trying to generate pkg-config file for gts... failed
> Checking for boost... yes
> Checking for slepc... no (pkg-config file not found)
>  Trying to generate pkg-config file for slepc... failed
> Checking for libxml-2.0... no (pkg-config file not found)
>  Trying to generate pkg-config file for libxml-2.0... failed
> Resolving compiler... done
> Warning: Unknown dependency package: libxml-2.0
> Enabling compilation of PyDOLFIN
> scons: done reading SConscript files.
> scons: Building targets ....
> Install file: "data/graphs/directed_graph.xml" as 
> "local/share/dolfin/data/graphs/directed_graph.xml"
> Install file: "data/graphs/undirected_graph.xml" as 
> "local/share/dolfin/data/graphs/undirected_graph.xml"
> Install file: "data/meshes/README" as "local/share/dolfin/data/meshes/README"
> Install file: "data/meshes/circle.xml.gz" as 
> "local/share/dolfin/data/meshes/circle.xml.gz"
> Install file: "data/meshes/cylinder.xml.gz" as 
> "local/share/dolfin/data/meshes/cylinder.xml.gz"
> Install file: "data/meshes/dolfin-1.xml.gz" as 
> "local/share/dolfin/data/meshes/dolfin-1.xml.gz"
> Install file: "data/meshes/dolfin-2.xml.gz" as 
> "local/share/dolfin/data/meshes/dolfin-2.xml.gz"
> Install file: "data/meshes/gear.xml.gz" as 
> "local/share/dolfin/data/meshes/gear.xml.gz"
> Install file: "data/meshes/slit.xml.gz" as 
> "local/share/dolfin/data/meshes/slit.xml.gz"
> Install file: "data/meshes/snake.xml..gz" as 
> "local/share/dolfin/data/meshes/snake.xml.gz"
> Install file: "data/meshes/snake_hole.xml.gz" as 
> "local/share/dolfin/data/meshes/snake_hole.xml.gz"
> Install file: "data/meshes/sphere.xml.gz" as 
> "local/share/dolfin/data/meshes/sphere.xml.gz"
> Install file: "data/meshes/tetmesh-1.xml.gz" as 
> "local/share/dolfin/data/meshes/tetmesh-1.xml.gz"
> Install file: "data/meshes/tetmesh-16.xml.gz" as 
> "local/share/dolfin/data/meshes/tetmesh-16.xml.gz"
> Install file: "data/meshes/tetmesh-4.xml.gz" as 
> "local/share/dolfin/data/meshes/tetmesh-4.xml.gz"
> Install file: "data/meshes/tetmesh-8.xml.gz" as 
> "local/share/dolfin/data/meshes/tetmesh-8.xml.gz"
> Install file: "data/meshes/tetmesh_24_8_8.xml.gz" as 
> "local/share/dolfin/data/meshes/tetmesh_24_8_8.xml.gz"
> Install file: "data/meshes/tetmesh_LES_10_2_7.xml.gz" as 
> "local/share/dolfin/data/meshes/tetmesh_LES_10_2_7.xml.gz"
> Install file: "data/meshes/tetmesh_backward_facing_step_32_8_8.xml.gz" as 
> "local/share/dolfin/data/meshes/tetmesh_backward_facing_step_32_8_8.xml.gz"
> Install file: "data/meshes/tetmesh_bluff_body_32_8_8.xml.gz" as 
> "local/share/dolfin/data/meshes/tetmesh_bluff_body_32_8_8.xml.gz"
> Install file: "data/meshes/tetrahedron.xml.gz" as 
> "local/share/dolfin/data/meshes/tetrahedron.xml.gz"
> Install file: "data/meshes/torso.xml.gz" as 
> "local/share/dolfin/data/meshes/torso.xml.gz"
> Install file: "data/meshes/triangle.xml.gz" as 
> "local/share/dolfin/data/meshes/triangle.xml.gz"
> Install file: "data/meshes/trimesh-1.xml..gz" as 
> "local/share/dolfin/data/meshes/trimesh-1.xml.gz"
> Install file: "data/meshes/trimesh-128.xml.gz" as 
> "local/share/dolfin/data/meshes/trimesh-128.xml.gz"
> Install file: "data/meshes/trimesh-16.xml.gz" as 
> "local/share/dolfin/data/meshes/trimesh-16.xml.gz"
> Install file: "data/meshes/trimesh-2.xml.gz" as 
> "local/share/dolfin/data/meshes/trimesh-2.xml.gz"
> Install file: "data/meshes/trimesh-32.xml.gz" as 
> "local/share/dolfin/data/meshes/trimesh-32.xml.gz"
> Install file: "data/meshes/trimesh-4.xml.gz" as 
> "local/share/dolfin/data/meshes/trimesh-4.xml.gz"
> Install file: "data/meshes/trimesh-64.xml.gz" as 
> "local/share/dolfin/data/meshes/trimesh-64.xml.gz"
> Install file: "data/meshes/trimesh-8.xml.gz" as 
> "local/share/dolfin/data/meshes/trimesh-8.xml.gz"
> Install file: "data/meshes/two_particles.xml.gz" as 
> "local/share/dolfin/data/meshes/two_particles.xml.gz"
> Install file: "data/meshes/unstruct-trimesh-1.xml.gz" as 
> "local/share/dolfin/data/meshes/unstruct-trimesh-1.xml.gz"
> Install file: "data/meshes/unstruct-trimesh-2.xml.gz" as 
> "local/share/dolfin/data/meshes/unstruct-trimesh-2.xml.gz"
> Install file: "misc/utils/convert/dolfin-convert" as 
> "local/bin/dolfin-convert"
> Install file: "scons/pkgconfig/boost.pc" as "local/lib/pkgconfig/boost.pc"
> Building dolfin/dolfin.pc from dolfin/dolfin.pc.in
> Install file: "dolfin/dolfin.pc" as "local/lib/pkgconfig/dolfin.pc"
> Install file: "scons/pkgconfig/numpy-1.pc" as "local/lib/pkgconfig/numpy-1.pc"
> Install file: "scons/pkgconfig/python-2.pc" as 
> "local/lib/pkgconfig/python-2.pc"
> Install file: "site-packages/dolfin/__init__.py" as 
> "local/lib/python2.5/site-packages/dolfin/__init__.py"
> Install file: "site-packages/dolfin/assemble.py" as 
> "local/lib/python2.5/site-packages/dolfin/assemble.py"
> Install file: "site-packages/dolfin/constants.py" as 
> "local/lib/python2.5/site-packages/dolfin/constants.py"
> Install file: "site-packages/dolfin/logger.py" as 
> "local/lib/python2.5/site-packages/dolfin/logger.py"
> Install file: "site-packages/dolfin/norm.py" as 
> "local/lib/python2.5/site-packages/dolfin/norm.py"
> Install file: "site-packages/dolfin/plot.py" as 
> "local/lib/python2.5/site-packages/dolfin/plot.py"
> Install file: "dolfin/swig/directors.i" as 
> "local/include/dolfin/swig/directors.i"
> Install file: "dolfin/swig/dolfin.i" as "local/include/dolfin/swig/dolfin.i"
> Install file: "dolfin/swig/dolfin_common_post.i" as 
> "local/include/dolfin/swig/dolfin_common_post.i"
> Install file: "dolfin/swig/dolfin_docstrings.i" as 
> "local/include/dolfin/swig/dolfin_docstrings.i"
> Install file: "dolfin/swig/dolfin_exceptions.i" as 
> "local/include/dolfin/swig/dolfin_exceptions.i"
> Install file: "dolfin/swig/dolfin_fem_pre.i" as 
> "local/include/dolfin/swig/dolfin_fem_pre.i"
> Install file: "dolfin/swig/dolfin_function_pre.i" as 
> "local/include/dolfin/swig/dolfin_function_pre.i"
> Install file: "dolfin/swig/dolfin_headers.i" as 
> "local/include/dolfin/swig/dolfin_headers.i"
> Install file: "dolfin/swig/dolfin_la_post.i" as 
> "local/include/dolfin/swig/dolfin_la_post.i"
> Install file: "dolfin/swig/dolfin_la_pre.i" as 
> "local/include/dolfin/swig/dolfin_la_pre.i"
> Install file: "dolfin/swig/dolfin_log_post.i" as 
> "local/include/dolfin/swig/dolfin_log_post.i"
> Install file: "dolfin/swig/dolfin_mesh_post.i" as 
> "local/include/dolfin/swig/dolfin_mesh_post.i"
> Install file: "dolfin/swig/dolfin_mesh_pre.i" as 
> "local/include/dolfin/swig/dolfin_mesh_pre.i"
> Install file: "dolfin/swig/dolfin_pde_pre.i" as 
> "local/include/dolfin/swig/dolfin_pde_pre.i"
> Install file: "dolfin/swig/ignores.i" as "local/include/dolfin/swig/ignores.i"
> Install file: "dolfin/swig/numpy_typemaps.i" as 
> "local/include/dolfin/swig/numpy_typemaps.i"
> Install file: "dolfin/swig/renames.i" as "local/include/dolfin/swig/renames.i"
> Install file: "dolfin/swig/typemaps.i" as 
> "local/include/dolfin/swig/typemaps.i"
> Install file: "dolfin/dolfin.h" as "local/include/dolfin.h"
> scons: done building targets.
> ---------------------------------------------------------
> Warning: Installation directory is not in PATH.
> 
> To compile a program against DOLFIN, you need to update
> your environment variables to reflect the installation
> directory you have chosen for DOLFIN. A simple way to do
> this if you are using Bash-like shell is to source the
> file dolfin.conf:
> 
>     source dolfin.conf
> 
> This will update the values for the environment variables
> PATH, LD_LIBRARY_PATH, PKG_CONFIG_PATH and PYTHONPATH.
> ---------------------------------------------------------
> 
> 
>       __________________________________________________________
> Gesendet von Yahoo! Mail.
> Dem pfiffigeren Posteingang.
> http://de.overview.mail.yahoo.com
> 
> _______________________________________________
> DOLFIN-dev mailing list
> [email protected]
> http://www.fenics.org/mailman/listinfo/dolfin-dev

_______________________________________________
DOLFIN-dev mailing list
[email protected]
http://www.fenics.org/mailman/listinfo/dolfin-dev

Reply via email to