[gmx-users] Installing topolbuild
Bruce D. Ray
brucedray at yahoo.com
Thu Mar 5 14:41:46 CET 2009
On Thursday, March 5, 2009 1:47:28 AM,
vivek sharma <viveksharma.iitb at gmail.com> wrote:
> I am trying to Install topolbuild on my system, while doing so with
> the make file given in the topolbuild folder. but I end up with a list
> of error mentioned below:
> ......
> .
> .
> .
> .compare_FF.c:(.text+0x1285): undefined reference to `exp'
>
compare_FF.c:(.text+0x12cc): undefined reference to `sqrt'
> collect2: ld returned 1 exit status
> make: *** [topolbuild] Error 1
>
> If somebody has tried this. please help me in figuring out the problem.
The errors mean that ld cannot locate the math library ( the -lm in the
compilation instruction in Makefile which tells it to link against libm.*
that is usually found in /usr/lib . On most *nix's, this is libm.so but
its libm.dylib on Mac OS X.) If libm.* is not present in either the
standard location, or in someplace pointed to by LD_LIBRARY_PATH
then it will not be found.
What is the system on which you are trying to build, where is libm.*
located, and what is LD_LIBRARY_PATH set to? If libm.* is in
some unusuall place, then the easiest way to go is to add that location
to LD_LIBRARY_PATH
As a side note, an early version of topolbuild was missing the -lm
in the compilation instruction in Makefile. I checked what I've
submitted since then and the makefiles all have the -lm as the last
item in the compilation instruction.
Sincerely,
--
Bruce D. Ray, Ph.D.
Associate Scientist
IUPUI
Physics Dept.
402 N. Blackford St.
Indianapolis, IN 46202-3273
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-users/attachments/20090305/aad9edf2/attachment.html>
More information about the gromacs.org_gmx-users
mailing list