Re: Install ncl 6.1.0 on CentOS 6.3 i386

From: 魏士偉 <weiwilliam1987_at_nyahnyahspammersnyahnyah>
Date: Wed Dec 19 2012 - 20:47:12 MST

OK! I got it. I'll try it again.
And another problem is in the ./ni/src/ncl/FileSupport.c.
At the line around 2901, the switch loop.
If I use the same configuration above(i.e. not support NetCDF4) to install.
I'll get a message that say NC_FORMAT_NETCDF4,
                                       NC_FORMAT_NETCDF4_CLASSIC,
                                       NC_FORMAT_64BIT
                                 and NC_FORMAT_CLASSIC are undefined.
Then get Error.
So, I install by command out this 4 case statements like below now.

                        switch(format)
                        {
/*
                                case NC_FORMAT_NETCDF4:
                                        file_ext_q = cur_ext_q;
                                        found = 1;
                                        *new_hlfs = 1;
                                        break;
                                case NC_FORMAT_NETCDF4_CLASSIC:
                                case NC_FORMAT_64BIT:
                                case NC_FORMAT_CLASSIC:
                                        file_ext_q = cur_ext_q;
                                        found = 1;
                                        break;
*/
                                default:
                                        found = 0;
                                        break;

I think if I use NetCDF4 will solve this problem.
Thank you so much. I'll try it by NetCDF4(4.1.2)

2012/12/20 David Brown <dbrown@ucar.edu>

> This looks like a bug in our build system.
> The _getVarNodeFromNclFileGrpNode function is in a file that only gets
> included in the build if UseNetCDF4Features is set non-zero. However, in
> Execute.c and Symbol.c it is referenced without conditional compilation
> directives. This needs to be fixed. I think the only workaround for now is
> to always build with NetCDF4 and UseNetCDF4Features enabled.
> -dave
>
>
> On Dec 19, 2012, at 6:04 PM, 魏士偉 wrote:
>
> Hello, thanks your reply.
> My netCDF version is 3.6.3
> And I checked my Site.local(below),
>
> #define BuildRasterHDF 0
> #define HDFlib
> #define BuildHDF4 0
> #define HDFlib
> #define UseNetCDF4Features 0
> #define BuildNetCDF4 0
> #define NetCDF4lib
> #define BuildTRIANGLE 0
> #define BuildUdunits 0
> #define UdUnitslib
> #define BuildHDFEOS 0
> #define HDFEOSlib
> #define BuildHDFEOS5 0
> #define HDFEOS5lib
> #define BuildHDF5 0
> #define HDF5lib
> #define BuildGRIB2 0
> #define GRIB2lib
>
> I think I didn't let NCL to compile for NetCDF4.
> And I remember when I ran the Configure script, I choose "n" over every
> file format support option.
> It's so strange~~~ Should I try to install with NetCDF4?@@
>
>
> 2012/12/20 Mary Haley <haley@ucar.edu>
>
>>
>> Hi,
>>
>> I haven't seen these kind of errors before, but my guess is that you
>> indicated that you wanted NetCDF4 support when you ran the ./Configure
>> script, but are linking against NetCDF libraries that weren't compiled with
>> NetCDF 4 support turned on (it's possible to compile NetCDF libraries with
>> both NetCDF3 and NetCDF4 support).
>>
>> What version of NetCDF are you linking against? Did you compile that
>> version of NetCDF with "--enable-netcdf-4" set?
>>
>> --Mary
>>
>> On Dec 19, 2012, at 4:13 AM, 魏士偉 wrote:
>>
>> > I met an error when compile ncl
>> > my gcc compiler's version is 4.4.6
>> > =================================================================
>> > Execute.o: In function `CallLIST_READ_FILEVAR_OP':
>> > Execute.c:(.text+0xf8d6): undefined reference to
>> `_getVarNodeFromNclFileGrpNode'
>> > Execute.c:(.text+0xfd9b): undefined reference to
>> `_getVarNodeFromNclFileGrpNode'
>> > Symbol.o: In function `_NclReadFileVarCoord':
>> > Symbol.c:(.text+0x383c): undefined reference to
>> `_getVarNodeFromNclFileGrpNode'
>> > Symbol.o: In function `_NclReadFileVar':
>> > Symbol.c:(.text+0x3b4a): undefined reference to
>> `_getVarNodeFromNclFileGrpNode'
>> > Symbol.o: In function `_NclGetFileVarCoordInfo':
>> > Symbol.c:(.text+0x404d): undefined reference to
>> `_getVarNodeFromNclFileGrpNode'
>> > Symbol.o:Symbol.c:(.text+0x43c8): more undefined references to
>> `_getVarNodeFromNclFileGrpNode' follow
>> > collect2: ld 回傳 1
>> > make[4]: *** [ncl] Error 1
>> > make[4]: Leaving directory `/home/weiwilliam/ncl_ncarg-6.1.0/ni/src/ncl'
>> > ==================================================================
>> >
>> > I search it on internet, but I didn't find the solution.
>> > Did anyone have this problem??
>> > Thanks a lot.
>> > _______________________________________________
>> > ncl-install mailing list
>> > List instructions, subscriber options, unsubscribe:
>> > http://mailman.ucar.edu/mailman/listinfo/ncl-install
>>
>>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
>
>
Received on Wed Dec 19 20:47:21 2012

This archive was generated by hypermail 2.1.8 : Fri Dec 21 2012 - 10:42:49 MST