dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #06780
Re: slepc/pydolfin
Kristian Oelgaard skrev den 25/03-2008 følgende:
>
>
> I'm running local installations of PETSc and SLEPc which are both picked up
> during configuration of DOLFIN. But, when running
> demo/pde/poisson/python/demo.py I get the following error:
>
>
> oelgaard@mech028:~/fenics/dolfin/demo/pde/poisson/python$ python demo.py
> Traceback (most recent call last):
> File "demo.py", line 20, in <module>
> from dolfin import *
> File
> "/home/oelgaard/fenics/dolfin/local/lib/python2.5/site-packages/dolfin/__init__.py",
> line 4, in <module>
> from assemble import *
> File
> "/home/oelgaard/fenics/dolfin/local/lib/python2.5/site-packages/dolfin/assemble.py",
> line 17, in <module>
> from dolfin import *
> File
> "/home/oelgaard/fenics/dolfin/local/lib/python2.5/site-packages/dolfin/dolfin.py",
> line 7, in <module>
> import _dolfin
> ImportError: libslepc.so: cannot open shared object file: No such file or directory
>
> What is going wrong?
The dynamic library libslepc.so is not found at run time. A solution is to add
the correct path to your LD_LIBRARY_PATH:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SLEPC_DIR/lib/linux-gnu-cxx-debug
^^^^^^^^^^^^^^^^^^^*)
*) might differ if you build with a different compiler or on a different
system etc.
Eventually, the build system should figure this out the same way as with
PETSc, since they are very similar put together.
Ola
> Kristian
>
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev
Follow ups
References