[Met_help] MET2.0 compilation errors

John Halley Gotway johnhg at rap.ucar.edu
Tue Aug 25 07:32:14 MDT 2009


Maciek,

Great.  I'm glad that did the trick.  We run Debian Linux here, and I don't have access to a Fedora machine, so I can't check.  But that's interesting.

Just let us know if any more questions come up in your use of MET.

Thanks,
John

Maciek Kryza wrote:
> John,
> Thank you very much for reply.
> I installed glibc-static and this solved the problem. libm.a is not
> available on Fedora, only libm.so* - but I'm not sure if this is always
> the case or only problem with my computer.
> best wishes,
> Maciek Kryza
> 
>> Maciek,
>>
>> The error message you're seeing about not finding -lm on your system means
>> that the linker can't find the math library file named "libm.a".  That
>> math library is a standard library and should exist in
>> a standard location on your machine.  Meaning we really shouldn't have to
>> tell the linker where to find it.  For example, on my machine it can be
>> found in /usr/lib/libm.a.  If it's not in a place that
>> the linker can find it, there may be problems with the installation of
>> your compilers.
>>
>> Here's what I'd suggest trying:
>> (1) Try locate the file "libm.a" using the following command:
>> find /usr -name "libm.a"
>> This says to recursively look in /usr for that file.
>>
>> (2) Assuming you find it, modify the MET Makefile to tell the linker where
>> to find it.  Use the following setting:
>> CXX_LIBS = /path/to/library/directory
>> Where the you set the path to the directory containing the file "libma.".
>>
>> (3) Try rebuilding MET.
>>
>> Hopefully that helps, and good luck.
>>
>> John Halley Gotway
>> johnhg at ucar.edu
>>
>> Maciek Kryza wrote:
>>> Hi,
>>> I'm trying to compile MET2.0 on Fedora 11 64 bit machine. Compilation
>>> stops at pcp_combine and the message: ld cannot find -lm
>>> I do have math.h in /usr/iclude and all compiling messages are attached.
>>> Could you please help me with this issue?
>>> Best regards,
>>> Maciek Kryza
>>>
>>>
>>>
>>> **********************************************************
>>> Maciek Kryza
>>>
>>> Zaklad Meteorologii i Klimatologii, Uniwersytet Wroclawski
>>> ul. Kosiby 6/8, 51-670 Wroclaw
>>>
>>> email: kryzam at meteo.uni.wroc.pl
>>> **********************************************************
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Met_help mailing list
>>> Met_help at mailman.ucar.edu
>>> http://mailman.ucar.edu/mailman/listinfo/met_help
> 
> 
> **********************************************************
> Maciek Kryza
> 
> Zaklad Meteorologii i Klimatologii, Uniwersytet Wroclawski
> ul. Kosiby 6/8, 51-670 Wroclaw
> 
> email: kryzam at meteo.uni.wroc.pl
> **********************************************************


More information about the Met_help mailing list