← Back to team overview

dolfin team mailing list archive

Re: [Question #140285]: dolfin installation

 

Question #140285 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/140285

    Status: Answered => Open

S Wood is still having a problem:
I compiled dolfin with no errors but when I try running the demos using
python I get a strange error:

$ python demo.py

Traceback (most recent call last):
  File "demo.py", line 22, in <module>
    from dolfin import *
  File "/usr/local/lib/python2.6/site-packages/dolfin/__init__.py", line 13, in <module>
    import dolfin.cpp as cpp
  File "/usr/local/lib/python2.6/site-packages/dolfin/cpp.py", line 28, in <module>
    _cpp = swig_import_helper()
  File "/usr/local/lib/python2.6/site-packages/dolfin/cpp.py", line 24, in swig_import_helper
    _mod = imp.load_module('_cpp', fp, pathname, description)
ImportError: /home/user/Work/Codes/FEniCS/dolfin-0.9.9/dolfin/libdolfin.so.0: undefined symbol: _ZNK5boost15program_options29value_semantic_codecvt_helperIcE5parseERNS_3anyERKSt6vectorISsSaISsEEb


I did't notice any problem with swig during the installation. 

Here is my $PYTHONPATH:
/usr/local/lib/python2.6/site-packages:/usr/local/lib/python2.6/site-packages:/usr/local/bin:/root/Work/FEniCS/lib/python2.6/site-packages

And in response to:

ldd /home/user/Work/Codes/FEniCS/dolfin-0.9.9/dolfin/libdolfin.so.0

I get:

        libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00002ad5ab745000)
        libarmadillo.so.0 => /root/Work/FEniCS/lib/libarmadillo.so.0 (0x00002ad5aba82000)
        libboost_filesystem.so.1.45.0 => /usr/local/lib/libboost_filesystem.so.1.45.0 (0x00002ad5abc83000)
        libboost_system.so.1.45.0 => /usr/local/lib/libboost_system.so.1.45.0 (0x00002ad5abea9000)
        libslepc.so => /root/Work/FEniCS/src/slepc-3.1-p4/linux-gnu-cxx-opt/lib/libslepc.so (0x00002ad5ac0ac000)
        libpetsc.so => /root/Work/FEniCS/src/petsc-3.1-p4/linux-gnu-cxx-opt/lib/libpetsc.so (0x00002ad5ac37c000)
        libX11.so.6 => /usr/lib64/libX11.so.6 (0x00002ad5acdc5000)
        liblapack.so.3 => /usr/lib64/atlas/liblapack.so.3 (0x00002ad5ad0d1000)
        libblas.so.3 => /usr/lib64/libblas.so.3 (0x00002ad5ad7ce000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00002ad5ada20000)
        libmpi.so.0 => /root/Work/FEniCS/lib/libmpi.so.0 (0x00002ad5adc24000)
        libopen-rte.so.0 => /root/Work/FEniCS/lib/libopen-rte.so.0 (0x00002ad5adec5000)
        libopen-pal.so.0 => /root/Work/FEniCS/lib/libopen-pal.so.0 (0x00002ad5ae111000)
        libnsl.so.1 => /lib64/libnsl.so.1 (0x00002ad5ae363000)
        libutil.so.1 => /lib64/libutil.so.1 (0x00002ad5ae57b000)
        libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002ad5ae77f000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ad5ae98d000)
        libmpi_f77.so.0 => /root/Work/FEniCS/lib/libmpi_f77.so.0 (0x00002ad5aeba8000)
        libgfortran.so.1 => /usr/lib64/libgfortran.so.1 (0x00002ad5aedd2000)
        libm.so.6 => /lib64/libm.so.6 (0x00002ad5af069000)
        libmpi_cxx.so.0 => /root/Work/FEniCS/lib/libmpi_cxx.so.0 (0x00002ad5af2ec000)
        libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002ad5af507000)
        libatlas.so.3 => /usr/lib64/atlas/libatlas.so.3 (0x00002ad5af807000)
        libcholmod.so.1 => /usr/lib64/libcholmod.so.1 (0x00002ad5b00fc000)
        libcamd.so.2 => /usr/lib64/libcamd.so.2 (0x00002ad5b03ce000)
        libcolamd.so.2 => /usr/lib64/libcolamd.so.2 (0x00002ad5b05d7000)
        libccolamd.so.2 => /usr/lib64/libccolamd.so.2 (0x00002ad5b07dd000)
        libCGAL.so.5 => /root/Work/FEniCS/lib/libCGAL.so.5 (0x00002ad5b09e7000)
        libgmpxx.so.4 => /root/Work/FEniCS/lib/libgmpxx.so.4 (0x00002ad5b0c15000)
        libgmp.so.10 => /root/Work/FEniCS/lib/libgmp.so.10 (0x00002ad5b0e19000)
        libboost_thread.so.1.45.0 => /usr/local/lib/libboost_thread.so.1.45.0 (0x00002ad5b1085000)
        libz.so.1 => /usr/lib64/libz.so.1 (0x00002ad5b129d000)
        libcppunit-1.12.so.0 => /usr/lib64/libcppunit-1.12.so.0 (0x00002ad5b14b1000)
        libc.so.6 => /lib64/libc.so.6 (0x00002ad5b16ff000)
        libcblas.so.3 => /usr/lib64/atlas/libcblas.so.3 (0x00002ad5b1a56000)
        libclapack.so.3 => /usr/lib64/atlas/libclapack.so.3 (0x00002ad5b1c75000)
        librt.so.1 => /lib64/librt.so.1 (0x00002ad5b1e8e000)
        libXau.so.6 => /usr/lib64/libXau.so.6 (0x00002ad5b2097000)
        libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00002ad5b229a000)
        libf77blas.so.3 => /usr/lib64/atlas/libf77blas.so.3 (0x00002ad5b249f000)
        /lib64/ld-linux-x86-64.so.2 (0x00000033a9200000)
        libgmpxx.so.3 => /usr/lib64/libgmpxx.so.3 (0x00002ad5b26bd000)
        libgmp.so.3 => /usr/lib64/libgmp.so.3 (0x00002ad5b28c1000)

Any thoughts how to resolve this? Many thanks in advance.

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.



References