← Back to team overview

dorsal team mailing list archive

Re: build successful under Scientific Linux 6 (rhel6), but no viper

 

It works!  Thanks a lot, Johannes.

In summary, with the platform file below and

LD_LIBRARY_PATH=${INSTALL_PATH}/lib/vtk-5.6:${INSTALL_PATH}/lib:$LD_LIBRARY_PATH:/usr/lib/openmpi/lib

dolfin installs and functions under Scientific Linux 6,
including viper.

Note that I also needed to explicitly add /usr/lib/openmpi/lib
to LD_LIBRARY_PATH.


Platform file for Scientific Linux 6 (probably also RHEL 6 and CentOS 6)
# This build script assumes that you have several packages already
# installed installed via Fedora's yum using the following command:
#
# su -c 'yum install -y wget bzr pkgconfig libxml2-devel gcc gcc-c++ \
# openmpi-devel openmpi numpy swig boost-devel atlas-devel blas-devel \
# lapack-devel python-devel cmake mpfr-devel gmp-devel cppunit-devel'
##

# Platform specific variables
default PETSC_ARCH=linux-gnu-cxx-opt
default SCOTCH_ARCH=pc_linux2

# Define the packages this platform needs
PACKAGES=(
cmake
vtk
parmetis
scotch
trilinos
petsc
slepc
armadillo
cgal
scientificpython
fiat
ferari
ufc
ufl
ffc
viper
instant
dolfin
)


On 08/08/2011 07:21 AM, Johannes Ring wrote:
Douglas,

On Sun, Aug 7, 2011 at 5:12 PM, Douglas N Arnold<arnold@xxxxxxx>  wrote:
Dear Johannes:  Thanks for your continuing help with this.  I can now
build dolfin, including vtk and viper, under Scientific Linux 6.
However viper does not work because of some VTK library problem.
When I enter "from dolfin import *" I get

*** Warning:
/home/faculty/arnold/workshop/FEniCS-sl6/lib/python2.6/site-packages/VTK-5.6.1-py2.6.egg/vtk/libvtkIOPython.so:
undefined symbol: PyVTKClass_vtkMPASReaderNew
*** Warning: Unable to import Viper, plotting disabled.

This could very well be my fault. I told you to set LD_LIBRARY_PATH like this:

   export LD_LIBRARY_PATH=${INSTALL_PATH}/lib/vtk-5.4:${LD_LIBRARY_PATH}

But that would be for VTK 5.4, not 5.6, which is installed by Dorsal.
Try this instead and see if it fixes the problem:

   export LD_LIBRARY_PATH=${INSTALL_PATH}/lib/vtk-5.6:${LD_LIBRARY_PATH}

Johannes



Follow ups

References