[Users] Compiling Cactus with PETSc

Frank Loeffler frank.loeffler at aei.mpg.de
Sat Apr 12 15:52:36 CDT 2008


On Sun, Apr 13, 2008 at 02:30:24AM +0800, #NGUYEN CONG TRI# wrote:
> /usr/bin/ld: cannot find -lpetscfortran

That means that the linker could not find the library petscfortran,
which can have different reasons. For debugging the problem, it would be
important to know, if this happenes because the library really does not
exist, if it exists, but the linker cannot find it or because it finds
it, but it migt not be compatible (you can have that on mixed
32bit/64bit systems).

So, please check first, if you find files with the name libpetscfortran.*
(where the * can e.g. be 'a' or 'so'.). The best place to look would be
the nstallation directory of petsc.

If you find it, I would expect the problem to be Cactus/the linker not
finding the library. But let us do that after we confirmed the first
step.

Frank



More information about the Users mailing list