[Met_help] [rt.rap.ucar.edu #60569] History for "undefined reference to ..."

John Halley Gotway via RT met_help at ucar.edu
Tue Mar 26 10:00:33 MDT 2013


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

Hello,
While trying to install MET on my laptop, I receive error messages. The
make_met.log and user_defs.mk files are attached. Kindly help.
Thanks,
Lameque


----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: Re: [rt.rap.ucar.edu #60569] "undefined reference to ..."
From: John Halley Gotway
Time: Fri Mar 08 16:47:01 2013

Lameque,

This compilation error is caused by a bug for which a fix has already
been posted to the MET website:
    http://www.dtcenter.org/met/users/support/known_issues/METv4.0/index.php

The bugfix was posted on 6/29/2012 and is titled:
    Added gslcblas library to Makefile link list for madis2nc,
plot_point_obs and gen_poly_mask

Please just follow the instructions at the top of that page to
retrieve the latest set of bugfixes for METv4.0, and then recompile
MET.

Please let me know if you still experience problems.

Thanks,
John Halley Gotway
met_help at ucar.edu


On 03/08/2013 08:04 AM, Lameque Matimbe via RT wrote:
>
> Fri Mar 08 08:04:08 2013: Request 60569 was acted upon.
> Transaction: Ticket created by lamequem at gmail.com
>         Queue: met_help
>       Subject: "undefined reference to ..."
>         Owner: Nobody
>    Requestors: lamequem at gmail.com
>        Status: new
>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60569 >
>
>
> Hello,
> While trying to install MET on my laptop, I receive error messages.
The
> make_met.log and user_defs.mk files are attached. Kindly help.
> Thanks,
> Lameque
>

------------------------------------------------
Subject: "undefined reference to ..."
From: Lameque Matimbe
Time: Mon Mar 11 10:58:00 2013

Hi Jhon,
Thank you for your help. The compiling process successful now. But,
when I
run the test scripts, I receive error messages as in the attached log
file.
Kindly advise.
Lmaeque

On Fri, Mar 8, 2013 at 6:47 PM, John Halley Gotway via RT
<met_help at ucar.edu
> wrote:

> Lameque,
>
> This compilation error is caused by a bug for which a fix has
already been
> posted to the MET website:
>
>
http://www.dtcenter.org/met/users/support/known_issues/METv4.0/index.php
>
> The bugfix was posted on 6/29/2012 and is titled:
>     Added gslcblas library to Makefile link list for madis2nc,
> plot_point_obs and gen_poly_mask
>
> Please just follow the instructions at the top of that page to
retrieve
> the latest set of bugfixes for METv4.0, and then recompile MET.
>
> Please let me know if you still experience problems.
>
> Thanks,
> John Halley Gotway
> met_help at ucar.edu
>
>
> On 03/08/2013 08:04 AM, Lameque Matimbe via RT wrote:
> >
> > Fri Mar 08 08:04:08 2013: Request 60569 was acted upon.
> > Transaction: Ticket created by lamequem at gmail.com
> >         Queue: met_help
> >       Subject: "undefined reference to ..."
> >         Owner: Nobody
> >    Requestors: lamequem at gmail.com
> >        Status: new
> >   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60569 >
>  >
> >
> > Hello,
> > While trying to install MET on my laptop, I receive error
messages. The
> > make_met.log and user_defs.mk files are attached. Kindly help.
> > Thanks,
> > Lameque
> >
>
>

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #60569] "undefined reference to ..."
From: John Halley Gotway
Time: Mon Mar 11 11:21:46 2013

Matimbe,

When you compiled MET, we had you remove the "-static" flag from the
user_defs.mk file.  That means that we compiled MET to perform dynamic
(or runtime) linking.  When you run the MET tools, the
linker needs to know where to find the libraries on which MET depends.
Here's the runtime error you're seeing:
    error while loading shared libraries: libnetcdf_c++.so.4: cannot
open shared object file: No such file or directory

That's the linker complaining that it doesn't know where to find the
NetCDF shared object file it needs for dynamic linking.  The fix for
this is pretty easy.  We just need to tell the linker where to
find that file.  And you do that using the "LD_LIBRARY_PATH"
environment variable.

Try adding the NetCDF library directory to your LD_LIBRARY_PATH and
then running one of the MET tools.  Here, I'm assuming your using the
C-Shell:

   csh
   cd METv4.0
   setenv LD_LIBRARY_PATH
${LD_LIBRARY_PATH}:/home/lameque/MET/netcdf/lib
   bin/pcp_combine

Hopefully the tool will run now and you'll see the usage statement
rather than the linker error.  If that fixed the problem, add the
NetCDF library directory to the LD_LIBRARY_PATH in your shell
configuration files (~/.cshrc, ~/.bashrc, ~/.profile).

Hope that helps.

Thanks,
John

On 03/11/2013 10:58 AM, Lameque Matimbe via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60569 >
>
> Hi Jhon,
> Thank you for your help. The compiling process successful now. But,
when I
> run the test scripts, I receive error messages as in the attached
log file.
> Kindly advise.
> Lmaeque
>
> On Fri, Mar 8, 2013 at 6:47 PM, John Halley Gotway via RT
<met_help at ucar.edu
>> wrote:
>
>> Lameque,
>>
>> This compilation error is caused by a bug for which a fix has
already been
>> posted to the MET website:
>>
>>
http://www.dtcenter.org/met/users/support/known_issues/METv4.0/index.php
>>
>> The bugfix was posted on 6/29/2012 and is titled:
>>      Added gslcblas library to Makefile link list for madis2nc,
>> plot_point_obs and gen_poly_mask
>>
>> Please just follow the instructions at the top of that page to
retrieve
>> the latest set of bugfixes for METv4.0, and then recompile MET.
>>
>> Please let me know if you still experience problems.
>>
>> Thanks,
>> John Halley Gotway
>> met_help at ucar.edu
>>
>>
>> On 03/08/2013 08:04 AM, Lameque Matimbe via RT wrote:
>>>
>>> Fri Mar 08 08:04:08 2013: Request 60569 was acted upon.
>>> Transaction: Ticket created by lamequem at gmail.com
>>>          Queue: met_help
>>>        Subject: "undefined reference to ..."
>>>          Owner: Nobody
>>>     Requestors: lamequem at gmail.com
>>>         Status: new
>>>    Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=60569 >
>>   >
>>>
>>> Hello,
>>> While trying to install MET on my laptop, I receive error
messages. The
>>> make_met.log and user_defs.mk files are attached. Kindly help.
>>> Thanks,
>>> Lameque
>>>
>>
>>
>

------------------------------------------------


More information about the Met_help mailing list