From: Akira F. <fu...@sy...> - 2006-06-08 14:39:37
|
Hi, At Thu, 8 Jun 2006 15:20:05 +0100, "Andrew Finney" <af...@ph...> wrote: > configure:4220: result: no: > CFLAGS=-g -O2 -I/hpc/home/finneya/programs/include > LDFLAGS= -Wl,-rpath,/hpc/home/finneya/programs/lib > -L/hpc/home/finneya/programs/lib > LIBS= -lexpat -lsbml > configure:4228: error: Can not link to SBML Library: > Please, make sure to use libSBML version >= 2.3.2 > > ------------------ > > It looks as if the loader (ld) isn't performing as expected :-( > > what's the -rpath supposed to do? "-Wl,-rpath" is used to specify the library path which is used by the compiled binary at runtime. On the other hand, "-L" is used to specify the library path which is used at its compile. For example, if you compile a binary as follows: gcc -L/home/funa/ -lsbml -Wl,-rpath=/usr/local/lib the gcc will try to find libsbml in /home/funa at the compile, and the compiled binary/library will look for libsbml in /usr/local/lib at its execution. Some platform doesn't support "-Wl,-rpath" option. It depends on the version of gcc or ld (correct me if I'm wrong). So try removing -Wl,-rpath in the configure script. Hope this helps, -- Akira Funahashi, Ph.D. | Kitano Symbiotic Systems Project, [fu...@sy...]| ERATO-SORST, JST |