On Thu, Feb 26, 2015 at 12:47 PM, Johannes Ring <[email protected]> wrote:

> > I would guess this is a good sign...? It's something to do with linking,
> as
> > it compiles allright...
>
> Yes, this looks good. Can you try one final thing? When you compile
> the demo, run
>
>   make VERBOSE=1
>
> What is the output?


Hello Johannes,

It turned out, the solution was REALLY simple:

First I used "locate" to search for libbz2.so.1:










*[laptop@worklaptop build]$ locate
libbz2.so.1/home/laptop/.hashdist/bld/bzip2/yhn7t7sdxdfd/lib/libbz2.so.1.0/home/laptop/.hashdist/bld/bzip2/yhn7t7sdxdfd/lib/libbz2.so.1.0.6/home/laptop/.hashdist/bld/profile/vyafxmz2waou/lib/libbz2.so.1.0/home/laptop/.hashdist/bld/profile/vyafxmz2waou/lib/libbz2.so.1.0.6/lib/libbz2.so.1/lib/libbz2.so.1.0.4/lib64/libbz2.so.1/lib64/libbz2.so.1.0.4*
Then I tried to build with LD_LIBRARY_PATH:




*[laptop@worklaptop build]$
LD_LIBRARY_PATH="/home/laptop/.hashdist/bld/bzip2/yhn7t7sdxdfd/lib"
make[100%] Building CXX object
CMakeFiles/demo_poisson.dir/main.cpp.oLinking CXX executable
demo_poisson[100%] Built target demo_poisson*

No errors this time!

I then tried to run the poisson-demo:



*[laptop@worklaptop build]$ ./demo_poisson ./demo_poisson: error while
loading shared libraries: libbz2.so.1.0: cannot open shared object file: No
such file or directory*
Once again, I realized I should use LD_LIBRARY_PATH:



*[laptop@worklaptop build]$
LD_LIBRARY_PATH="/home/laptop/.hashdist/bld/bzip2/yhn7t7sdxdfd/lib"
./demo_poisson Solving linear variational problem.*

AND IT WORKS!!!

You've been a huge help. I write the solution to my problem here so other
people could/would maybe find the solution from later, if anyone
experiences the same issues... I'm grateful for the help and suggestions -
I think there's a pretty remarkable speedup from using CPP in comparison
with Python (I mean for executing the code, not for writing it)...

Thanks all - everything is fine, I think! Now I'll try to learn more from
this...
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to