← Back to team overview

dolfin team mailing list archive

Re: error in viper

 

On Fri, July 10, 2009 23:59, Shawn Walker wrote:
> I get this error message when I try to run the test program for VIPER:
>
> walker@box227 ~/FENICS/viper/src/demo
> $ python test.py
> Traceback (most recent call last):
>    File "test.py", line 1, in <module>
>      from dolfin import *
>    File
> "/home/walker/build/lib/python2.5/site-packages/dolfin/__init__.py", line
> 11, in <module>
>      import cpp
>    File "/home/walker/build/lib/python2.5/site-packages/dolfin/cpp.py",
> line 31, in <module>
>      import _cpp
> ImportError: libboost_program_options-gcc41-mt-1_38.so.1.38.0: cannot open
> shared object file: No such file or directory
> =========================
>
> The reason there is no such file is because I have version 1.39 of boost
> installed.  Shouldn't viper be able to work with the newest version?

Of course. The problem here isn't Viper but it seems that your SWIG
wrapped DOLFIN module (_cpp) has been linked with the wrong Boost library
(libboost_program_options-gcc41-mt-1_38.so.1.38.0).

> Or
> better yet, shouldn't it be able to work with the symbolic link that does
> NOT contain version info?

The versionless symbolic link probably pointed to
libboost_program_options-gcc41-mt-1_38.so.1.38.0 at the time of linking
(when _cpp.so was built). Try to rebuild and reinstall DOLFIN and PyDOLFIN
with your latest Boost version.

Johannes




References