[Met_help] [rt.rap.ucar.edu #80098] History for rt.rap.ucar.edu #80097
John Halley Gotway via RT
met_help at ucar.edu
Mon May 1 13:25:15 MDT 2017
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
>Hi,
>
>
>When I compiled the met_6.0, it says: "nc_utils.h:22:18: error: netcdf: No such file or directory" as in the last part of "make_install.log" attached. However, I have successfully installed netcdf-4.1.3.
>
>I am totally confused.
>
>Thanks,
>
>
>Lidu Shen
>
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: rt.rap.ucar.edu #80097
From: John Halley Gotway
Time: Mon Apr 10 12:56:45 2017
Lidu Shen,
I see that you're having trouble compiling MET version 6.0,
specifically in
regards to NetCDF.
In 6.0 we've made a large change from using NetCDF 3 to 4. You'll
need to
have both NetCDF 4 and HDF5, upon which NetCDF 4 is built, installed.
Please feel free to take a look at the MET User's Guide and the online
tutorial:
http://www.dtcenter.org/met/users/docs/users_guide/MET_Users_Guide_v6.0.pdf
http://www.dtcenter.org/met/users/support/online_tutorial/
METv6.0/tutorial.php?name=compilation&category=req_libs
There is an additional environment variable that will need to be set,
with
the addition of HDF5:
Set *$MET_HDF5* to point to the main HDF5 directory.
Also, both the NetCDF-C package (netcdf-c-4.4.1.1) and the NetCDF-CXX
package (netcdf-cxx4-4.3.0) are required.
Here are the commands we've been using to compile these packages from
source. The following assumes that you're using the GNU compilers and
that
you've defined MET_LIB_DIR to point to your desired installation
directory:
# First pick where you'd like to install and define that as the
MET_LIB_DIR
environment variable:
setenv MET_LIB_DIR /path/to/lib/directory
# Compilers
setenv CC `which gcc`
setenv CXX `which g++`
setenv FC `which gfortran`
setenv F77 `which gfortran`
# HDF5
wget
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/
hdf5-1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
tar -xvzf hdf5-1.10.0-patch1.tar
cd hdf5-1.10.0-patch1
./configure --prefix=${MET_LIB_DIR}
make install
# NetCDF-C
wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
unzip v4.4.1.1.zip
cd netcdf-c-4.4.1.1
./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
CPPFLAGS=-I${MET_LIB_DIR}/include
make install
# NetCDF-CXX
wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
tar -xvzf v4.3.0.tar.gz
cd netcdf-cxx4-4.3.0
./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
CPPFLAGS=-I${MET_LIB_DIR}/include
make install
I hope this helps! Please let us know if you need further assistance.
Thanks,
John Halley Gotway
On Mon, Apr 10, 2017 at 2:23 AM, 沈历都 via RT <met_help at ucar.edu> wrote:
>
> Mon Apr 10 02:23:31 2017: Request 80098 was acted upon.
> Transaction: Ticket created by shenlidu052 at 126.com
> Queue: met_help
> Subject: rt.rap.ucar.edu #80097
> Owner: Nobody
> Requestors: shenlidu052 at 126.com
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80098 >
>
>
> >Hi,
> >
> >
> >When I compiled the met_6.0, it says: "nc_utils.h:22:18: error:
netcdf:
> No such file or directory" as in the last part of "make_install.log"
> attached. However, I have successfully installed netcdf-4.1.3.
> >
> >I am totally confused.
> >
> >Thanks,
> >
> >
> >Lidu Shen
> >
>
>
------------------------------------------------
More information about the Met_help
mailing list