[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20050706:linking WRF to NETCDF



Unidata Support <address@hidden> writes:

> ------- Forwarded Message
>
>>To: address@hidden
>>From: "Michael Brennan" <address@hidden>
>>Subject: linking WRF to NETCDF
>>Organization: UCAR/Unidata
>>Keywords: 200507061913.j66JD4jo020704
>
> Hi,
>
> This question is in reference to a support email I found in the archives
> concerning compiling the WRF model and linking to executables using
> NETCDF.  I'm using a precompiled version of netcdf 3.6.0-p1 running RedHat
> 7.2.  I've encountered the same problem, and I get the following errors
> when compiling WRF:
>
> /usr1/netcdf-3.6.0-p1/lib/linbetcdf.a(string.o): In function
> 'NC_check_name': /a/scratch/rus/bulids/rodney-36p1/src/libsrc/string.c:50:
> undefined reference to '__ctype_b_loc'
<snip>
>
> -Mike
> -- 
> Michael J. Brennan
> Graduate Research Assistant
> Department of Marine, Earth and Atmospheric Sciences
> North Carolina State University
> Email: address@hidden
> Phone: (919) 515-1447
>

Mike,

Instead of using a precompiled binary, build netcdf on the target
system. Get the tar ball:

ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.6.0-p1.tar.gz

Then try to link to the newly built netcdf library.

Let me know whether that works.

Good luck,

Ed
-- 
Ed Hartnett  -- address@hidden