← Back to team overview

dolfin team mailing list archive

Re: error running demos

 

That fixed it! =D

But I never got the message in the configure script, maybe because the PATH was correct but not the LD_LIBRARY_PATH

-- Andy

Johan Jansson wrote:
On Wed, Dec 06, 2006 at 11:35:44AM -0600, Andy R Terrel wrote:
Hello,

So I wanted to get some of my older dolfin code working and I have been running into a good many errors. But now it appears that I cannot get some of the demos to run for me. For both the stokes/taylorhood and stokes/stabilized, they compile fine but I get the following runtime error:

./dolfin-stokes: error while loading shared libraries: libdolfin.so.0: cannot open shared object file: No such file or directory

But when I look for the library I find it:

aterrel@aterrel-laptop:~/FenicsSoftware/dolfin/src/demo/pde/stokes/stabilized$ ls -l /usr/local/lib/libdolfin.so* lrwxrwxrwx 1 root root 18 2006-12-06 11:26 /usr/local/lib/libdolfin.so -> libdolfin.so.0.0.0 lrwxrwxrwx 1 root root 18 2006-12-06 11:26 /usr/local/lib/libdolfin.so.0 -> libdolfin.so.0.0.0 -rwxr-xr-x 1 root root 15222084 2006-12-06 11:26 /usr/local/lib/libdolfin.so.0.0.0


Any help would be appreciated.

--Andy


This looks like you haven't set LD_LIBRARY_PATH to point to
/usr/local/lib. DOLFIN prints this on configure:

    echo 'Warning: Installation directory is not in PATH.'
    echo ''
    echo 'To compile a program against DOLFIN (including the demos)'
    echo 'you need to update your environment variables to reflect'
    echo 'the installation directory you have chosen for DOLFIN.'
    echo 'A simple way to do this if you are using Bash-like shell'
    echo 'is to source the file dolfin.conf:'
    echo ''
    echo '  source dolfin.conf'
    echo ''
    echo 'This will update the values for the environment variables'
    echo 'PATH, LD_LIBRARY_PATH, PKG_CONFIG_PATH and PYTHONPATH.'

You should just have to run dolfin.conf. Otherwise I'm not sure what
could be wrong.

You can also use "ldd ./dolfin-stokes" to see which libraries it's
using (and not finding).

  Johan


--

====================
Andy Terrel
Computer Science Dept
University of Chicago
aterrel@xxxxxxxxxxxx
---------------------

Men are equal; it is not birth but virtue that makes the difference.
                                           -Voltaire



References