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

[netCDF #FYC-635019]: netCDF make check fail at t_nc



Li,

Thanks for reporting back on what worked.  This may be helpful to future users
than encounter similar problems.

--Russ

> Thank you for the hlep again! It is informative and helpful. Yast installed 
> netCDF version 4.0.1.
> I was searching the web and saw some problems that were similar to mine. So, 
> I followed some
> of the suggestions and I was able to manually build the netCDF from source. 
> Here was what
> I did:
> - Installed g++. It seems like g++ doesn't come by default in opensuse 11.4 
> 64 bits.
> - Update opensuse with latest patches.
> - Install libtool
> 
> No sure which of the above really did the fix for the tst_names problem tho .
> 
> Although when I compiled GMT source code, I got a bunch of incomptable 
> warning messages,
> but, GMT seemed working fine as for now.
> 
> Thanks and best regards,
> Li
> ________________________________________
> From: Unidata netCDF Support [address@hidden]
> Sent: Friday, June 22, 2012 2:58 AM
> To: Chen Lidong
> Cc: address@hidden
> Subject: [netCDF #FYC-635019]: netCDF make check fail at t_nc
> 
> Chen,
> 
> > Thank you for the help! You are right, it was the incompatable of the older 
> > version of netcdf with my 64 bits opensuse 11.4.
> >
> > I reinstalled libnetcdf-devel, version 4.0.1-9.3 via yast2 on my opensuse 
> > laptop. Now, t_nc passed the make check. But,
> 
> I don't know what "version 4.0.1-9.3" refers to.  Is this netCDF version 
> 4.0.1, or are
> you still working with netCDF version 3.6.3?  The line numbers in program 
> files often
> change between versions, so knowing the version of the source distribution is 
> helpful.
> 
> > I got the tst_name error as following. Is it also related to the my 64 bits 
> > setup?
> 
> I don't think so.  If I can trust the line numbers, they seem to be referring 
> to tests
> of creating a new dimension, variable, and attribute using an invalid Unicode 
> UTF-8
> name, to make sure that the netCDF functions return the error code NC_EBADNAM 
> in that
> case.  It has nothing to do with 32-bit versus 64-bit, just looking at bytes 
> and
> character encodings.
> 
> > *** testing names with file tst_names.nc...
> > *** switching to netCDF classic format...Sorry! Unexpected result, 
> > tst_names.c, line: 256
> > Sorry! Unexpected result, tst_names.c, line: 259
> > Sorry! Unexpected result, tst_names.c, line: 262
> > Sorry! Unexpected result, tst_names.c, line: 265
> > 4 failures
> > *** switching to netCDF 64-bit offset format...Sorry! Unexpected result, 
> > tst_names.c, line: 256
> > Sorry! Unexpected result, tst_names.c, line: 259
> > Sorry! Unexpected result, tst_names.c, line: 262
> > Sorry! Unexpected result, tst_names.c, line: 265
> > 4 failures
> > 8 errors detected! Sorry!
> > FAIL: tst_names
> > =========================================
> > 1 of 5 tests failed
> > Please report to address@hidden
> > =========================================
> > make[2]: *** [check-TESTS] Error 1
> > make[2]: Leaving directory `/home/testGMT/netcdf-3.6.3/nc_test'
> > make[1]: *** [check-am] Error 2
> > make[1]: Leaving directory `/home/testGMT/netcdf-3.6.3/nc_test'
> > make: *** [check-recursive] Error 1
> >
> > Any ideas?
> 
> No, those errors are puzzling.  Just to make sure, could you try
> running "make distclean" before building the netCDF libraries
> again, or re-install a later version of netCDF, if available?
> For GMT, you don't need netCDF-4, so you can build from the latest
> version using the "--disable-netcdf-4" option to configure.
> 
> If yast doesn't have a version more recent than 4.0.1 or 3.6.3, then
> maybe you should try building from source yourself, using these
> instructions:
> 
> http://www.unidata.ucar.edu/software/netcdf/docs/
> 
> --Russ
> 
> > From: Unidata netCDF Support [address@hidden]
> > Sent: Wednesday, June 20, 2012 5:25 AM
> > To: Chen Lidong
> > Cc: address@hidden
> > Subject: [netCDF #FYC-635019]: netCDF make check fail at t_nc
> >
> > Hi Chen,
> >
> > > I am trying to install GMT 4.5.8 on my opensuse 12.1 laptop, I got the
> > > following errors:
> > >
> > > make[2]: Entering directory `/home/testGMT/netcdf-3.6.3/libsrc'
> > > make  t_nc
> > > make[3]: Entering directory `/home/testGMT/netcdf-3.6.3/libsrc'
> > > make[3]: `t_nc' is up to date.
> > > make[3]: Leaving directory `/home/testGMT/netcdf-3.6.3/libsrc'
> > > make  check-TESTS
> > > make[3]: Entering directory `/home/testGMT/netcdf-3.6.3/libsrc'
> > > /home/testGMT/netcdf-3.6.3/libsrc/.libs/t_nc: error while loading shared
> > > libraries: libnetcdf.so.4: cannot open shared object file: No such file
> > > or directory
> > > FAIL: t_nc
> > >
> > > 1 of 1 tests failed
> > > Please report to address@hidden
> >
> > This just looks like a failure to find the netCDF library shared object.
> > This could occur because an older netCDF shared library was installed that
> > was a 32-bit library and you are trying to link a 64-bit program with it,
> > or vice-versa.  Another possibility is that you need to set the environment
> > variable LD_LIBRARY_PATH to include the lib directory where netCDF is
> > installed before trying to build GMT.
> >
> > If none of those suggestions help, I can only suggest you contact GMT 
> > support.
> >
> > --Russ
> >
> > > make[3]: *** [check-TESTS] Error 1
> > > make[3]: Leaving directory `/home/testGMT/netcdf-3.6.3/libsrc'
> > > make[2]: *** [check-am] Error 2
> > > make[2]: Leaving directory `/home/testGMT/netcdf-3.6.3/libsrc'
> > > make[1]: *** [check] Error 2
> > > make[1]: Leaving directory `/home/testGMT/netcdf-3.6.3/libsrc'
> > > make: *** [check-recursive] Error 1
> > >
> > >
> > > The following is the GMT4param.txt:
> > >
> > > # This script was created by install_gmt.sh on
> > > #
> > > #       Mon Jun 18 14:03:34 SGT 2012
> > > #
> > > # Do NOT add any spaces around the = signs.  The
> > > # file MUST conform to Bourne shell syntax
> > > #---------------------------------------------
> > > #       GMT VERSION TO INSTALL
> > > #---------------------------------------------
> > > VERSION=4.5.8
> > > #---------------------------------------------
> > > #       SYSTEM UTILITIES
> > > #---------------------------------------------
> > > GMT_expand=
> > > GMT_make=make
> > > #---------------------------------------------
> > > #       NETCDF SECTION
> > > #---------------------------------------------
> > > netcdf_ftp=y
> > > netcdf_install=y
> > > netcdf_path=
> > > passive_ftp=y
> > > #---------------------------------------------
> > > #       GDAL SECTION
> > > #---------------------------------------------
> > > use_gdal=y
> > > gdal_path=/usr/local
> > > #---------------------------------------------
> > > #       GMT & GSHHS FTP SECTION
> > > #---------------------------------------------
> > > GMT_ftp=y
> > > GSHHS_ftp=y
> > > GMT_inst_gmt=y
> > > GMT_inst_gshhs=y
> > > GMT_ftpsite=1
> > > #---------------------------------------------
> > > #       GMT SUPPLEMENTS SELECT SECTION
> > > #---------------------------------------------
> > > GMT_suppl_mex=d
> > > GMT_suppl_xgrid=d
> > > #---------------------------------------------
> > > #       GMT ENVIRONMENT SECTION
> > > #---------------------------------------------
> > > GMT_si=y
> > > GMT_ps=y
> > > GMT_prefix=/usr/lib/gmt
> > > GMT_bin=/usr/lib/gmt/bin
> > > GMT_lib=/usr/lib/gmt/lib
> > > GMT_share=/usr/lib/gmt/share
> > > GMT_include=/usr/lib/gmt/include
> > > GMT_man=/usr/lib/gmt/man
> > > GMT_doc=/usr/lib/gmt/share/doc/gmt
> > > GMT_sharedir=/usr/lib/gmt/share
> > > #---------------------------------------------
> > > #       COMPILING & LINKING SECTION
> > > #---------------------------------------------
> > > GMT_sharedlib=n
> > > GMT_cc=
> > > GMT_64=
> > > GMT_univ=n
> > > GMT_triangle=y
> > > GMT_flock=n
> > > #---------------------------------------------
> > > #       TEST & PRINT SECTION
> > > #---------------------------------------------
> > > GMT_run_examples=y
> > > GMT_delete=n
> > > #---------------------------------------------
> > > #       MEX SECTION
> > > #---------------------------------------------
> > > MATDIR=/usr/local/matlab
> > > mex_mdir=
> > > mex_xdir=
> > >
> > >
> > > I added the following entries in my .bashrc file:
> > >
> > > export PATH=/usr/lib/gmt/bin:/usr/lib/gmt/lib:/usr/lib/gmt/include:$PATH
> > > export GMTHOME=/usr/lig/gmt
> > > export GMTPATH=/usr/lib/gmt/bin
> > > export MANPATH=/usr/share/man:/usr/lib/gmt/man:$MANPATH
> > > export LD_LIBRARY_PATH=/usr/lib/gmt:$LD_LIBRARY_PATH
> > >
> > > Please help! many thanks!
> > >
> > > Li
> > >
> > > CONFIDENTIALITY:This email is intended solely for the person(s) named and 
> > > may be confidential and/or privileged.If you are not the intended 
> > > recipient,please delete it,notify us and do not copy,use,or disclose its 
> > > content.
> > >
> > > Towards A Sustainable Earth:Print Only When Necessary.Thank you.
> > >
> >
> > Russ Rew                                         UCAR Unidata Program
> > address@hidden                      http://www.unidata.ucar.edu
> >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: FYC-635019
> > Department: Support netCDF
> > Priority: Normal
> > Status: Closed
> >
> >
> Russ Rew                                         UCAR Unidata Program
> address@hidden                      http://www.unidata.ucar.edu
> 
> 
> 
> Ticket Details
> ===================
> Ticket ID: FYC-635019
> Department: Support netCDF
> Priority: Normal
> Status: Closed
> 
> 

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: FYC-635019
Department: Support netCDF
Priority: Normal
Status: Closed