[Met_help] MET Library Issues
John Halley Gotway
johnhg at rap.ucar.edu
Tue Aug 19 14:33:01 MDT 2008
Dave,
Just wanted to check in to see if you've made any progress with getting MET to compile. Did rebuilding NetCDF address the problem?
Thanks,
John Halley-Gotway
johnhg at ucar.edu
Dave Radell wrote:
> Hi John,
>
> Thanks. The files you list are actually all there (which is why I
> thought the error was strange) except for netcdf.inc. So, I'm going to
> try and rebuild netcdf and see if that works.
>
> Dave
>
> John Halley Gotway wrote:
>> Hello Dave,
>>
>> It looks like the compiler is complaining that it can't find the
>> following file:
>> /home/wrfuser/METv1.1/METv1.1/lib/external_libs/netcdf/include/netcdfcpp.h
>>
>>
>> I'm wondering when you built NetCDF, if the C++ interface was built or
>> not. When I do a listing of the include subdirectory for the NetCDF
>> library on my machine, here are the files I see:
>> > ls
>> /nfs/pigpen_pd6/score/MET/MET_releases/external_libs/netcdf/netcdf-3.6.2/include
>>
>> ncvalues.h netcdfcpp.h netcdf.h netcdf.hh netcdf.inc
>>
>> Take a look in your NetCDF include directory
>> (/home/wrfuser/METv1.1/METv1.1/lib/external_libs/netcdf/include) and
>> see if the file "netcdfcpp.h" exists in there or not.
>>
>> If not, you could try rebuilding NetCDF and make sure that the
>> netcdfcpp.h file exists.
>>
>> John Halley-Gotway
>> johnhg at ucar.edu
>>
>> Dave Radell wrote:
>>> Hi,
>>>
>>> I am installing MET V1.1 on an x_86_64 machine running Linux. I have
>>> compiled all the required libraries (32 bit) but am having difficulty
>>> with one of the MET libraries as noted below (vx_contable). I am
>>> wondering if I'm missing a flag in the vx_contable Makefile or
>>> something elsewhere that's causing this. Thanks for any suggestions
>>> you might have.
>>>
>>> Dave
>>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>>> *
>>> MAKE OUTPUT:*
>>>
>>> *** Making the Model Evaluation Tools Project ***
>>>
>>>
>>> *** Making vx_afm Library ***
>>>
>>> /usr/bin/g++ afm.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ afm_keywords.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ afm_line.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ afm_token.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ afmkeyword_to_string.cc -Wall -Wshadow -static -g -m32
>>> -c -I..
>>> /usr/bin/g++ afmtokentype_to_string.cc -Wall -Wshadow -static -g
>>> -m32 -c -I..
>>> ar -rs libvx_afm.a afm.o afm_keywords.o afm_line.o afm_token.o
>>> afmkeyword_to_string.o afmtokentype_to_string.o
>>> ar: creating libvx_afm.a
>>> ranlib libvx_afm.a
>>>
>>> cp libvx_afm.a ../.
>>>
>>> *** Making vx_analysis_util Library ***
>>>
>>> /usr/bin/g++ analysis_utils.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ box.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ by_case_info.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ data_line.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ mask_poly.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ mode_atts.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ mode_job.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ mode_line.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ time_series.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ vsdb_job.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ vsdb_line.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ vsdbjobtype_to_string.cc -Wall -Wshadow -static -g -m32
>>> -c -I..
>>> /usr/bin/g++ vsdblinetype_to_string.cc -Wall -Wshadow -static -g
>>> -m32 -c -I..
>>> ar -rs libvx_analysis_util.a analysis_utils.o box.o by_case_info.o
>>> data_line.o mask_poly.o mode_atts.o mode_job.o mode_line.o
>>> time_series.o vsdb_job.o vsdb_line.o vsdbjobtype_to_string.o
>>> vsdblinetype_to_string.o
>>> ar: creating libvx_analysis_util.a
>>> ranlib libvx_analysis_util.a
>>>
>>> cp libvx_analysis_util.a ../.
>>>
>>> *** Making vx_cal Library ***
>>>
>>> /usr/bin/g++ date_to_mjd.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ day_dif.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ day_of_week.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ doyhms_to_unix.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ easter.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ holiday.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ is_dst.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ is_leap_year.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ mdyhms_to_unix.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ mjd_to_date.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ time_strings.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ unix_to_mdyhms.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> ar -rs libvx_cal.a date_to_mjd.o day_dif.o day_of_week.o
>>> doyhms_to_unix.o easter.o holiday.o is_dst.o is_leap_year.o
>>> mdyhms_to_unix.o mjd_to_date.o time_strings.o unix_to_mdyhms.o
>>> ar: creating libvx_cal.a
>>> ranlib libvx_cal.a
>>>
>>> cp libvx_cal.a ../.
>>>
>>> *** Making vx_color Library ***
>>>
>>> /usr/bin/g++ cfile.tab.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ lex.color.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ vx_clist.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ vx_color.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> /usr/bin/g++ vx_ctable.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> ar -rs libvx_color.a cfile.tab.o lex.color.o vx_clist.o vx_color.o
>>> vx_ctable.o
>>> ar: creating libvx_color.a
>>> ranlib libvx_color.a
>>>
>>> cp libvx_color.a ../.
>>>
>>> *** Making vx_contable Library ***
>>>
>>> /usr/bin/g++ vx_contable.cc -Wall -Wshadow -static -g -m32 -c -I..
>>> -I/home/wrfuser/METv1.1/METv1.1/lib/external_libs/gsl-1.10/include
>>> -I/home/wrfuser/METv1.1/METv1.1/external_libs/netcdf/include
>>> /usr/bin/g++ vx_contable_stats.cc -Wall -Wshadow -static -g -m32 -c
>>> -I..
>>> -I/home/wrfuser/METv1.1/METv1.1/lib/external_libs/gsl-1.10/include
>>> -I/home/wrfuser/METv1.1/METv1.1/external_libs/netcdf/include
>>> In file included from ../vx_met_util/read_pcp_combine_netcdf.h:16,
>>> from ../vx_met_util/vx_met_util.h:21,
>>> from vx_contable_stats.cc:20:
>>> /home/wrfuser/METv1.1/METv1.1/lib/external_libs/netcdf/include/netcdf.hh:1:23:
>>> netcdfcpp.h: No such file or directory
>>> In file included from ../vx_met_util/vx_met_util.h:21,
>>> from vx_contable_stats.cc:20:
>>> ../vx_met_util/read_pcp_combine_netcdf.h:25: warning:
>>> `read_pcp_combine_netcdf' initialized and declared `extern'
>>> ../vx_met_util/read_pcp_combine_netcdf.h:25: error: variable or field
>>> `read_pcp_combine_netcdf' declared void
>>> ../vx_met_util/read_pcp_combine_netcdf.h:25: error: `NcFile' was not
>>> declared in this scope
>>> ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected
>>> primary-expression before ',' token
>>> ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected
>>> primary-expression before "const"
>>> ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected
>>> primary-expression before "char"
>>> ../vx_met_util/read_pcp_combine_netcdf.h:26: error: expected
>>> primary-expression before '&' token
>>> ../vx_met_util/read_pcp_combine_netcdf.h:26: error: expected
>>> primary-expression before ',' token
>>> ../vx_met_util/read_pcp_combine_netcdf.h:26: error: expected
>>> primary-expression before '&' token
>>> ../vx_met_util/read_pcp_combine_netcdf.h:26: error: expected
>>> primary-expression before ',' token
>>> ../vx_met_util/read_pcp_combine_netcdf.h:26: error: expected
>>> primary-expression before "int"
>>> ../vx_met_util/read_pcp_combine_netcdf.h:27: error: expected
>>> primary-expression before '&' token
>>> ../vx_met_util/read_pcp_combine_netcdf.h:27: error: expected
>>> primary-expression before ',' token
>>> ../vx_met_util/read_pcp_combine_netcdf.h:27: error: expected
>>> primary-expression before '&' token
>>> ../vx_met_util/read_pcp_combine_netcdf.h:27: error: expected
>>> primary-expression before ',' token
>>> ../vx_met_util/read_pcp_combine_netcdf.h:28: error: expected
>>> primary-expression before '&' token
>>> ../vx_met_util/read_pcp_combine_netcdf.h:28: error: expected
>>> primary-expression before ')' token
>>> ../vx_met_util/read_pcp_combine_netcdf.h:28: error: initializer
>>> expression list treated as compound expression
>>> make[3]: *** [vx_contable_stats.o] Error 1
>>> make[2]: *** [vx_contable_all] Error 2
>>> make[1]: *** [libs] Error 2
>>> make: *** [all] Error 2
>>>
>>>
>>> ****************************************************************************************************************************
>>>
>>> *Top level MAKEFILE:*
>>>
>>> #
>>> # Begin Variables to be modified before building
>>> #
>>> ###############################################################################
>>>
>>>
>>> # Path to GNU Make command
>>> MAKE = /usr/bin/make
>>>
>>> # Architecture flags
>>> ARCH_FLAGS =
>>>
>>> # Path to the C++ Compiler
>>> # C++ compiler flags
>>> # Any additional required libraries
>>> CXX = /usr/bin/g++
>>> CXX_FLAGS = -Wall -Wshadow -static -g -m32
>>> CXX_LIBS =
>>>
>>> # Path to the Fortran Compiler
>>> # Fortran compiler flags
>>> # Any additional required libraries
>>> FC = /usr/bin/g77
>>> FC_FLAGS = -Wall -Wshadow -static -g -m32
>>> FC_LIBS = # -lgfortran
>>>
>>> # Make print options
>>> PRINT_OPTS = --no-print-directory
>>>
>>> # Top level directory for the NetCDF library
>>> # NetCDF include directory specified as: -I/your/include/path
>>> # NetCDF library directory specified as: -L/your/library/path
>>> NETCDF_BASE = /home/wrfuser/METv1.1/METv1.1/external_libs/netcdf/
>>> NETCDF_INCS = -I$(NETCDF_BASE)/include
>>> NETCDF_LIBS = -L$(NETCDF_BASE)/lib
>>> # Top level directory for BUFRLIB
>>> # BUFRLIB include directory specified as: -I/your/include/path
>>> # BUFRLIB library directory specified as: -L/your/library/path
>>> BUFR_BASE = /home/wrfuser/METv1.1/METv1.1/lib/external_libs/BUFRLIB
>>> BUFR_INCS = -I$(BUFR_BASE)
>>> BUFR_LIBS = -L$(BUFR_BASE)
>>>
>>> # Top level directory for the GNU Scientific Library (GSL) if it's not
>>> # installed in a standard location.
>>> # GSL include directory specified as: -I/your/include/path
>>> # GSL library directory specified as: -L/your/library/path
>>> GSL_BASE = /home/wrfuser/METv1.1/METv1.1/lib/external_libs/gsl-1.10
>>> GSL_INCS = -I$(GSL_BASE)/include
>>> GSL_LIBS = -L$(GSL_BASE)/lib
>>>
>>> # Top level directory for the F2C or G2C Library if it's not
>>> installed in a
>>> # standard location.
>>> # F2C include directory specified as: -I/your/include/path
>>> # F2C library directory containing libf2c.a or libg2c.a and specified
>>> as:
>>> # -L/your/library/path
>>> # Name of the library to be used: -lf2c or -lg2c
>>> F2C_BASE = /home/wrfuser/METv1.1/METv1.1/lib/external_libs/F2C
>>> F2C_INCS = -I$(F2C_BASE)
>>> F2C_LIBS = -L$(F2C_BASE)
>>> F2C_LIBNAME = -lg2c
>>>
>>> # Optional flags to disable the compilation of MET tools
>>> # Specify a non-zero value to disable the compilation of the tool
>>> DISABLE_PCP_COMBINE = 0
>>> DISABLE_MODE = 0
>>> DISABLE_GRID_STAT = 0
>>>
>>> *
>>>
>>>
>>> *
>>>
>>>
>>> _______________________________________________
>>> Met_help mailing list
>>> Met_help at mailman.ucar.edu
>>> http://mailman.ucar.edu/mailman/listinfo/met_help
More information about the Met_help
mailing list