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

[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