[Met_help] Re: METv1.0 running

John Halley Gotway johnhg at rap.ucar.edu
Mon Feb 4 13:34:34 MST 2008


D. Srinivas,

I'm glad you were able to get MET to compile.  Since you're running on a 64-bit machine, you may encounter the runtime problems with BUFRLIB that are listed on the known issues page.

Please let us know if any more problems or questions come up.

Thanks,
John

sreenivas desamsetti wrote:
> Dear Sir
> I am very happy today I met you
> Thanking you very much for your great help
> I am thankful to you
> My sincere thanks to you sir
> Best regards
> D. Srinivas
> 
> John Halley Gotway <johnhg at rap.ucar.edu> wrote: D Srinivas,
> 
> Don't worry about it.  I realize that the build process for MET is a little confusing.  Hopefully in the future we'll be able to streamline the process.
> 
> I've attached a new Makefile for you to use "Makefile_new".  There were a couple of bugs in the version of the Makefile you were using (Makefile_pgi).  The things I changed are:
> - added "-I" in front of F2C_INCS definition
> - modified F2C_LIBS definition
> - added F2C_LIBNAME definition
> 
> The problems with the file Makefile_pgi are already listed on the MET known issues page: http://www.dtcenter.org/met/users/support/known_issues/METv1.0/METv1.0_known_issues.php
> 
> So hopefully this Makefile will do the trick for you.
> 
> Please let me know how it goes.
> 
> John
> 
> sreenivas desamsetti wrote:
>> Dear Sir
>> I am so sorry for giving inconvenience to you
>> But I am getting success slowly
>> Upto now three binaries were created in the bin file sir
>> I am not getting the problem where I need to change
>> You only can help me sir to solve my problem
>> I am really very sorry as giving inconvenience to you
>> Please pardon me sir
>> Thanking you sir
>> I am herewith sending the files for your reference
>> Thanking you sir
>> D Srinivas
>>
>> John Halley Gotway  wrote: D Srinivas,
>>
>> It appears that you're using the version of the Makefile that was set up for PGI compilers (Makefile_pgi) rather than the version that was set up for the GNU compilers (Makefile).
>>
>> So your version of the "Makefile", change the following two lines...
>> FROM THIS:
>> PGI_LIBS        = -lpgftnrtl
>> FLAGS           = -g -Bstatic
>>
>> TO THIS:
>> PGI_LIBS        =
>> FLAGS           = -g -Wall -Wshadow -static
>>
>> By providing the "-static" option for g++, it should solve the problem your experiencing.
>>
>> Thanks for being patient.  Hopefully, we can get you up and running soon.
>>
>> John
>>
>> sreenivas desamsetti wrote:
>>> Dear Sir,
>>> Thanking you very much for your reply
>>> I successed up to some level
>>> Now I got problem some where at libgsl.so
>>> actually it is available at /usr/lib
>>> I have given that path also
>>> But the error came
>>> Please kindly suggest me sir
>>> Thanking you
>>> D Srinivas
>>>
>>> John Halley Gotway  wrote: D Srinivas,
>>>
>>> The error is another complaint from the compiler about NetCDF.  It's looking in NETCDF_INCS (set to /usr/local/netcdf/include) for the file netcdf.hh, but can't find it.  It may be the case that when 
>>> NetCDF was built on your system, the C++ interface wasn't installed.
>>>
>>> Here's something to try:
>>> cd /usr/local/netcdf
>>> find ./ -name "netcdf.hh"
>>>
>>> If that "netcdf.hh" file is found, just add that directory to the NETCDF_INCS definition.
>>> For example: NETCDF_INCS  = -I$(NETCDF_BASE)/include -I/new/path/to/netcdf.hh
>>>
>>> If that "netcdf.hh" file is NOT found, then your installation of NetCDF isn't compatible with MET.  You'll need to reinstall NetCDF with the C++ interface.  You could either have your system 
>>> administrator do that for you, or you could install it yourself locally.  If you install it locally, then you'll need to redefine the variables, NETCDF_INCS and NETCDF_LIBS in your Makefile to point 
>>> to the directories which contain the header files (netcdf.h and netcdf.hh) and the library files (libnetcdf.a and libnetcdf_c++.a).
>>>
>>> If you'd like to install it locally, you can download NetCDF from: http://www.unidata.ucar.edu/software/netcdf/
>>> And be sure to download version 3 rather than version 4.  MET doesn't support version 4.  In the top-level NetCDF directory, read the file "INSTALL" for directions.
>>>
>>> I use commands similar to the following to install NetCDF:
>>> cd /insert/your/path/here/netcdf-3.6.2
>>> ./configure --prefix=/insert/your/path/here/netcdf-3.6.2
>>> ./make check
>>> ./make install
>>>
>>> Thanks,
>>> John
>>>
>>> sreenivas desamsetti wrote:
>>>> Dear Sir,
>>>> I tried all the ways
>>>> I am sending the files which way I have sent previously,
>>>> Please kindly look at them
>>>> Thanking you sir
>>>> D Srinivas
>>>>
>>>> John Halley Gotway  wrote: D Srinivas,
>>>>
>>>> I apologize.  I found a typo in what I wrote.  Try setting these as follows:
>>>>
>>>> NETCDF_BASE  = /usr/local/netcdf
>>>> NETCDF_INCS  = -I$(NETCDF_BASE)/include
>>>> NETCDF_LIBS  = -L$(NETCDF_BASE)/lib
>>>>
>>>> Thanks,
>>>> John
>>>>
>>>> John Halley Gotway wrote:
>>>>> D Srinivas,
>>>>>
>>>>> Thanks for sending along your "Makefile" and "make_met.log".  It make 
>>>>> debugging the issue very straight-forward.
>>>>>
>>>>> It looks like there's a problem in the way the NetCDF variables are set 
>>>>> in your top-level Makefile.  The compiler can't find the file, 
>>>>> "netcdf.h".  It's looking in the directory specified in in the Makefile 
>>>>> by "NETCDF_INCS" for that file.  But if you look in 
>>>>> /usr/local/netcdf/src/cxx, that directory probably doesn't even exist.
>>>>>
>>>>> I'd suggest modifying the top-level Makefile as follows:
>>>>> NETCDF_BASE  = /usr/local/netcdf
>>>>> NETCDF_INCS  = -I$(NETCDF_BASE)/include
>>>>> NETCDF_LIBS  = -L$(NETCDF_BASE)/src/lib
>>>>>
>>>>> The NETCDF_INCS directory should contain "netcdf.h" and the NETCDF_LIBS 
>>>>> directory should contain the files "libnetcdf.a" and "libnetcdf_c++.a".
>>>>>
>>>>> However you will likely encounter other issues trying to run a 64-bit 
>>>>> machine.  Please refer to the MET website listing of known issues for 
>>>>> METv1.0:
>>>>> http://www.dtcenter.org/met/users/support/known_issues/METv1.0/METv1.0_known_issues.php 
>>>>>
>>>>>
>>>>> The issue posted on 1/25/2008 relates to running on a 64-bit machine.
>>>>>
>>>>> Thanks,
>>>>> John Halley-Gotway
>>>>>
>>>>>
>>>>> sreenivas desamsetti wrote:
>>>>>> Dear Sir,
>>>>>>  I am D Srinivas, research scholar from Andhra University
>>>>>>  I am really interested to use MET tools for the model evaulation and 
>>>>>>  verification  I am unable to install this in my computer
>>>>>>  Ours is AMD 64 bit machine which is working on Linux platform
>>>>>>  I am herewith attaching the Makefile and log file
>>>>>>  Could you please give me suggestions to install
>>>>>>  successfully
>>>>>>  Best regards
>>>>>>  D Srinivas
>>>>>>  
>>>>>>
>>>>>> Desamsetti Srinivas
>>>>>>      Research Scholar,
>>>>>>      Department of Meteorology and Oceanography,
>>>>>>      Andhra University,
>>>>>>      Visakhapatnam - 530 003
>>>>>>      91 9948530618 (M)
>>>>>>      sreeds82 at yahoo.com
>>>>>>      sreeds82 at rediffmail.com
>>>>>>        ---------------------------------
>>>>>> Never miss a thing.   Make Yahoo your homepage.
>>>>>>
>>>>> _______________________________________________
>>>>> Met_help mailing list
>>>>> Met_help at mailman.ucar.edu
>>>>> http://mailman.ucar.edu/mailman/listinfo/met_help
>>>> Desamsetti Srinivas
>>>>      Research Scholar,
>>>>      Department of Meteorology and Oceanography,
>>>>      Andhra University,
>>>>      Visakhapatnam - 530 003
>>>>      91 9948530618 (M)
>>>>      sreeds82 at yahoo.com
>>>>      sreeds82 at rediffmail.com
>>>>        
>>>> ---------------------------------
>>>> Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
>>>
>>> Desamsetti Srinivas
>>>      Research Scholar,
>>>      Department of Meteorology and Oceanography,
>>>      Andhra University,
>>>      Visakhapatnam - 530 003
>>>      91 9948530618 (M)
>>>      sreeds82 at yahoo.com
>>>      sreeds82 at rediffmail.com
>>>        
>>> ---------------------------------
>>> Never miss a thing.   Make Yahoo your homepage.
>>
>>
>> Desamsetti Srinivas
>>      Research Scholar,
>>      Department of Meteorology and Oceanography,
>>      Andhra University,
>>      Visakhapatnam - 530 003
>>      91 9948530618 (M)
>>      sreeds82 at yahoo.com
>>      sreeds82 at rediffmail.com
>>        
>> ---------------------------------
>> Never miss a thing.   Make Yahoo your homepage.
> # *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
> # ** Copyright UCAR (c) 1992 - 2005
> # ** University Corporation for Atmospheric Research(UCAR)
> # ** National Center for Atmospheric Research(NCAR)
> # ** Research Applications Lab (RAL)
> # ** P.O.Box 3000, Boulder, Colorado, 80307-3000, USA
> # *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
> 
> ###############################################################################
> #
> # Makefile for the Model Evaluation Tools Project 
> #
> ###############################################################################
> # 
> ###############################################################################
> #
> # Begin Variables to be modified before building
> #
> ###############################################################################
> 
> # Path to the C++ Compiler
> CPP_COMPILER = /usr/bin/g++
> 
> # Path to the Fortran-77 Compiler
> F77_COMPILER = /usr/bin/g77
> 
> # Top level directory for the MET build
> MET_BASE     = /home/mm5/sree/METv1.0
> 
> # Top level directory for the NetCDF library
> NETCDF_BASE  = /home/mm5/softwares/netcdf-3.6.2
> 
> # Directory within the NetCDF library containing the C/C++ header files:
> #    netcdf.hh
> # Specified as: -I/your/include/path
> NETCDF_INCS  = -I$(NETCDF_BASE)/include
> 
> # Directories within the NetCDF library containing the C/C++ archive files:
> #    libnetcdf.a and libnetcdf_c++.a
> # Specified as: -L/your/library/path
> NETCDF_LIBS  = -L$(NETCDF_BASE)/lib
> 
> # Top level directory for the BUFR library
> BUFR_BASE    = /home/mm5/softwares/BUFR
> 
> # Directory within the BUFR library containing header files
> # Specified as: -I/your/include/path
> BUFR_INCS    = -I$(BUFR_BASE)
> 
> # Directory within the BUFR library containing the libbufr.a archive file
> # Specified as: -L/your/library/path
> BUFR_LIBS    = -L$(BUFR_BASE)
> 
> # Directory containing the GNU Scientific Library header files 
> # (if they're not in a standard location)
> # Specified as: -I/your/include/path
> GSL_INCS     = -I/usr/include
> 
> # Directory containing the GNU Scientific Library archive file, libgsl.a
> # (if it's not in a standard location)
> # Specified as: -L/your/library/path
> GSL_LIBS     = -L/usr/lib
> 
> # Directory containing the F2C or G2C Library header files 
> # (if they're not in a standard location)
> # Specified as: -I/your/include/path
> F2C_INCS     = -I/usr/include
> 
> # Directory containing the F2C or G2C Library archive file, 
> # libf2c.a or libg2c.a (if it's not in a standard location)
> # Specified as: -L/your/library/path
> F2C_LIBS     = -L/usr/include
> 
> # Name of the Fortan to C Library to be used
> # Specified as: -lf2c or -lg2c
> F2C_LIBNAME  = -lf2c
> 
> ###############################################################################
> #
> # End Variables to be modified before building
> #
> ###############################################################################
> 
> ###############################################################################
> #
> # Export variables to be used by submakes
> #
> ###############################################################################
> 
> export MET_BASE
> 
> export NETCDF_INCS
> 
> export NETCDF_LIBS
> 
> export BUFR_INCS
> 
> export BUFR_LIBS
> 
> export GSL_INCS
> 
> export GSL_LIBS
> 
> export F2C_INCS
> 
> export F2C_LIBS
> 
> export F2C_LIBNAME
> 
> ###############################################################################
> #
> # End export variables to be used by submakes
> #
> ###############################################################################
> 
> PGI_LIBS =
> 
> FLAGS  = -g -Wall -Wshadow -static
> 
> FAKES  = all clean libs targets
> 
> LIB_DIR  = lib
> 
> INC_DIR  = lib
> 
> SRC_DIR  = src
> 
> VX_AFM  = $(LIB_DIR)/vx_afm
> VX_ANALYSIS_UTIL= $(LIB_DIR)/vx_analysis_util
> VX_CAL  = $(LIB_DIR)/vx_cal
> VX_COLOR = $(LIB_DIR)/vx_color
> VX_CONTABLE = $(LIB_DIR)/vx_contable
> VX_DATA_GRIDS = $(LIB_DIR)/vx_data_grids
> VX_ECONFIG = $(LIB_DIR)/vx_econfig
> VX_GNOMON = $(LIB_DIR)/vx_gnomon
> VX_GRIB_CLASSES = $(LIB_DIR)/vx_grib_classes
> VX_GSL_PROB = $(LIB_DIR)/vx_gsl_prob
> VX_MATH  = $(LIB_DIR)/vx_math
> VX_MET_UTIL = $(LIB_DIR)/vx_met_util
> VX_NAV  = $(LIB_DIR)/vx_nav
> VX_PLOT_UTIL = $(LIB_DIR)/vx_plot_util
> VX_PS  = $(LIB_DIR)/vx_ps
> VX_PXM  = $(LIB_DIR)/vx_pxm
> VX_RENDER = $(LIB_DIR)/vx_render
> VX_UTIL  = $(LIB_DIR)/vx_util
> VX_WRFDATA = $(LIB_DIR)/vx_wrfdata
> VX_WRFMODE = $(LIB_DIR)/vx_wrfmode
> PCP_COMBINE = $(SRC_DIR)/pcp_combine
> MODE  = $(SRC_DIR)/mode
> GRID_STAT = $(SRC_DIR)/grid_stat
> PB2NC  = $(SRC_DIR)/pb2nc
> POINT_STAT = $(SRC_DIR)/point_stat
> VSDB_ANALYSIS = $(SRC_DIR)/vsdb_analysis
> MODE_ANALYSIS = $(SRC_DIR)/mode_analysis
> 
> all:
>  @ echo
>  @ echo "*** Making the Model Evaluation Tools Project ***"
>  @ echo
>  @ make libs    --no-print-directory
>  @ make targets --no-print-directory
>  @ echo
>  @ echo "*** Finished Making the Model Evaluation Tools Project ***"
>  @ echo
> 
> libs:
>  @ cd $(VX_AFM);   make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_ANALYSIS_UTIL);make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_CAL);   make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_COLOR);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_CONTABLE);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_DATA_GRIDS);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_ECONFIG);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_GNOMON);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_GRIB_CLASSES); make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_GSL_PROB);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_MATH);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_MET_UTIL);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_NAV);   make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_PLOT_UTIL);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_PS);   make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_PXM);   make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_RENDER);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_UTIL);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_WRFDATA);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VX_WRFMODE);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
> 
> targets: 
>  @ cd $(PCP_COMBINE);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(MODE);   make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(GRID_STAT);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(PB2NC);   make CPP_COMPILER=$(CPP_COMPILER) F77_COMPILER=$(F77_COMPILER) FLAGS="$(FLAGS)" PGI_LIBS="$(PGI_LIBS)" --no-print-directory
>  @ cd $(POINT_STAT);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(VSDB_ANALYSIS);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
>  @ cd $(MODE_ANALYSIS);  make COMPILER=$(CPP_COMPILER) FLAGS="$(FLAGS)" --no-print-directory
> 
> clean:
>  @ cd $(VX_AFM);   make clean --no-print-directory
>  @ cd $(VX_ANALYSIS_UTIL);make clean --no-print-directory
>  @ cd $(VX_CAL);   make clean --no-print-directory
>  @ cd $(VX_COLOR);  make clean --no-print-directory
>  @ cd $(VX_CONTABLE);  make clean --no-print-directory
>  @ cd $(VX_DATA_GRIDS);  make clean --no-print-directory
>  @ cd $(VX_ECONFIG);  make clean --no-print-directory
>  @ cd $(VX_GNOMON);  make clean --no-print-directory
>  @ cd $(VX_GRIB_CLASSES); make clean --no-print-directory
>  @ cd $(VX_GSL_PROB);  make clean --no-print-directory
>  @ cd $(VX_MATH);  make clean --no-print-directory
>  @ cd $(VX_MET_UTIL);  make clean --no-print-directory
>  @ cd $(VX_NAV);   make clean --no-print-directory
>  @ cd $(VX_PLOT_UTIL);  make clean --no-print-directory
>  @ cd $(VX_PS);   make clean --no-print-directory
>  @ cd $(VX_PXM);   make clean --no-print-directory
>  @ cd $(VX_RENDER);  make clean --no-print-directory
>  @ cd $(VX_UTIL);  make clean --no-print-directory
>  @ cd $(VX_WRFDATA);  make clean --no-print-directory
>  @ cd $(VX_WRFMODE);  make clean --no-print-directory
>  @ cd $(PCP_COMBINE);  make clean --no-print-directory
>  @ cd $(MODE);   make clean --no-print-directory
>  @ cd $(GRID_STAT);  make clean --no-print-directory
>  @ cd $(PB2NC);   make clean --no-print-directory
>  @ cd $(POINT_STAT);  make clean --no-print-directory
>  @ cd $(VSDB_ANALYSIS);  make clean --no-print-directory
>  @ cd $(MODE_ANALYSIS);  make clean --no-print-directory
>  rm -r -f *.a *.o junk temp core log c.ps a.out
> 
> .PHONY: $(FAKES)
> 
> 
> 
> Desamsetti Srinivas
>      Research Scholar,
>      Department of Meteorology and Oceanography,
>      Andhra University,
>      Visakhapatnam - 530 003
>      91 9948530618 (M)
>      sreeds82 at yahoo.com
>      sreeds82 at rediffmail.com
>        
> ---------------------------------
> Looking for last minute shopping deals?  Find them fast with Yahoo! Search.


More information about the Met_help mailing list