Hi to all.

I've been trying to link deal.II with PETSc but I'm having problems
running the example 'step-1'. It appears that the executable file cannot
have access to one of the PETSc libraries. I've tried changing the
permissions to the files and running the executable in SUDO mode, but
nothing. Still the following error message:

cpolind...@sagan:/usr/local/deal.II/examples/step-1$ ./step-1
./step-1: error while loading shared libraries: libpetscksp.so: cannot
open shared object file: No such file or directory

Do you have any idea about what's going on here. Thanks in advance,

César Polindara
UPM, Madrid

========================================================================
SOME DETAIL'S ABOUT MY OS AND THE WAY I'VE BUILT THE LIBRARIES

OS = Ubuntu 10.04

Here's what I've done so far:

1-I've built PETSc (petsc-3.0.0-p11) with:

config/configure.py --with-mpi=0 --with-cc=gcc --with-fc=gfortran
--with-cxx=g++ --download-f-blas-lapack=1  --with-clanguage=cxx
--with-shared=1 --with-dynamic=1

2-I've compiled the optimized version of the library with: make optimized

3-I've compiled the example 'step-1' with debug-mode=off but I had
problems linking the PETSc libraries. I got this message:

============================ Linking step-1
/usr/bin/ld: warning: libpetscksp.so, needed by
/usr/local/deal.II/lib/libpetscall.so, not found (try using -rpath or
-rpath-link)
/usr/bin/ld: warning: libpetscdm.so, needed by
/usr/local/deal.II/lib/libpetscall.so, not found (try using -rpath or
-rpath-link)
/usr/bin/ld: warning: libpetscmat.so, needed by
/usr/local/deal.II/lib/libpetscall.so, not found (try using -rpath or
-rpath-link)
/usr/bin/ld: warning: libpetscvec.so, needed by
/usr/local/deal.II/lib/libpetscall.so, not found (try using -rpath or
-rpath-link)
/usr/bin/ld: warning: libpetsc.so, needed by
/usr/local/deal.II/lib/libpetscall.so, not found (try using -rpath or
-rpath-link)

4-I've modified the Makefile to include the PETSc libraries doing this:

libs.o   = $(lib-deal2-2d.o) \
           $(lib-lac.o)      \
           $(lib-base.o)     \
           
$(ROOT)/usr/local/petsc-3.0.0-p11/linux-gnu-cxx-debug/lib/libpetscksp.so
\
           
$(ROOT)/usr/local/petsc-3.0.0-p11/linux-gnu-cxx-debug/lib/libpetscdm.so
 \
           
$(ROOT)/usr/local/petsc-3.0.0-p11/linux-gnu-cxx-debug/lib/libpetscmat.so
\
           
$(ROOT)/usr/local/petsc-3.0.0-p11/linux-gnu-cxx-debug/lib/libpetscvec.so
\
           $(ROOT)/usr/local/petsc-3.0.0-p11/linux-gnu-cxx-debug/lib/libpetsc.so
   \

5-I've compiled 'step-1' once again and I get no error messages. I've done
this. But then when I run the executable the following happens:

cpolind...@sagan:/usr/local/deal.II/examples/step-1$ ./step-1
./step-1: error while loading shared libraries: libpetscksp.so: cannot
open shared object file: No such file or directory


_______________________________________________
dealii mailing list http://poisson.dealii.org/mailman/listinfo/dealii

Reply via email to