[Met_help] [rt.rap.ucar.edu #90790] History for MET Compile Issue
Julie Prestopnik via RT
met_help at ucar.edu
Wed Jun 26 15:35:21 MDT 2019
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
John, or whom it may concern, to get MET 8.1 onto our production system, our CM function has to be able to compile MET. I helped them set up the library directory like we have it set and the environmental variables as we have set, but it keeps having problems with the NETCDF library. So in an effort to try to duplicate there problem, I decide to set up a new MET directory and tried to duplicate his error to try to narrow it down. I have set up the env variables as we have in our working version expect pointing to the new libs directory. When I try to compile I get the following error:
Making install in data
make[1]: Entering directory `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data'
Making install in colortables
make[2]: Entering directory `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
Making install in NCL_colortables
make[3]: Entering directory `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables/NCL_colortables'
make[4]: Entering directory `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables/NCL_colortables'
make[4]: Nothing to be done for `install-exec-am'.
/bin/mkdir -p '/usr/local/share/met/colortables/NCL_colortables'
/bin/mkdir: cannot create directory `/usr/local/share/met': Permission denied
make[4]: *** [install-nclctableDATA] Error 1
make[4]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables/NCL_colortables'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables/NCL_colortables'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data'
make: *** [install-recursive] Error 1
My env variables are set by the following:
export MET_LIB_DIR=/h/WXQC/met-8.1_test/met-8.1
export MET_NETCDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1
export BUFR_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-2-3
export GSL_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
export MET_BUFR=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-2-3
export MET_GSL=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
export MET_GRIB2C=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-1.4.0
export MET_GRIB2CINC=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-1.4.0
export MET_GRIB2CLIB=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-1.4.0
export MET_BUFRLIB=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-2-3
export LDFLAGS='-L/h/WXQC/met-8.1_test/met-8.1/external_libs/jasper/lib -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib -L/h/WXQC
/met-8.1_test/met-8.1/external_libs/libpng-1.2.34/lib'
export LD_LIBRARY_PATH=/gpfs/lsf/9.1/linux2.6-glibc2.3-x86_64/lib:/usr/mpi/gcc/openmpi-1.8.4/lib64:/h/WXQC/met-8.1_test/met-8.1/external_libs
/gsl-1.15/lib:/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1/lib
export MET_HDFEOS=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdfeos
export MET_HDF5=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-1.8.18
export MET_HDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/HDF4.2.12
export FC=/usr/bin/gfortran
export F77=/usr/bin/gfortran
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
and the path is:
[1550 qcteam DEV9 /h/WXQC/met-8.1_test/met-8.1 -]> print $PATH
/gpfs/lsf/10.1/linux2.6-glibc2.3-x86_64/etc:/gpfs/lsf/10.1/linux2.6-glibc2.3-x86_64/bin:/h/WXQC/met-8.1_test/met-8.1/external_libs:/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.181/linux/bin/intel64:/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.181/linux/mpi/intel64/bin:/gpfs/shared/intel/parallel_studio_xe_2016_u2/debugger_2016/gdb/intel64_mic/bin:/gpfs/python/python-3.4/bin:/opt/rh/rh-python36/root/usr/bin/python3/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/opt/clustertest/bin:/opt/cuda/bin:/opt/cuda/samples/bin/x86_64/linux/release:/opt/cuda/C/NVIDIA_CUDA-5.5_Samples/bin/x86_64/linux/release:/opt/ibutils/bin:/usr/lpp/ssp/bin:/usr/lpp/ssp/install/bin:/usr/lpp/ssp/kerberos/bin:/usr/lpp/ssp/rcmd/bin:/usr/vac/bin:/usr/local/bin:/usr/local/exelis/idl/bin:.:/home/qcteam/bin:/home/qcteam/:/h/WXQC/bin/
So why is MET trying to go to: /usr/local/share/met?
Thanks
Bob Craig
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: MET Compile Issue
From: John Halley Gotway
Time: Mon Jun 24 16:22:15 2019
Bob,
MET uses the autoconf package to install software. And you build MET
by
running the "configure" command followed by "make install test". By
default, autoconf tries to install software into /usr/local. The
executables are installed into /usr/local/bin and the files need at
runtime
are installed into /usr/local/share/met. However, typically only root
has
write permission in /usr/local. Attempting to install it in
/usr/local
would result in the error you're getting.
The fix is very easy. When you run the "configure" command, just use
the
"--prefix=/path/to/install/dir" option, where "path/to/install/dir"
specifies the installation directory for the MET executables and
runtime
files. Obviously, replace "path/to/install/dir" with a real path that
actually exists on your machine. During development, I usually just
install it into the same directory as where the code lives:
./configure --prefix=`pwd` --enable-grib2 --enable-modis
--enable-mode_graphics --enable-lidar2nc --enable-python
That back-tick pwd back-tick just substitutes in the current working
directory. But it's totally up to you where you want to install it.
Thanks,
John
On Mon, Jun 24, 2019 at 2:37 PM robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:
>
> Mon Jun 24 14:37:30 2019: Request 90790 was acted upon.
> Transaction: Ticket created by robert.craig.2 at us.af.mil
> Queue: met_help
> Subject: MET Compile Issue
> Owner: Nobody
> Requestors: robert.craig.2 at us.af.mil
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
>
>
> John, or whom it may concern, to get MET 8.1 onto our production
system,
> our CM function has to be able to compile MET. I helped them set up
the
> library directory like we have it set and the environmental
variables as we
> have set, but it keeps having problems with the NETCDF library. So
in an
> effort to try to duplicate there problem, I decide to set up a new
MET
> directory and tried to duplicate his error to try to narrow it down.
I
> have set up the env variables as we have in our working version
expect
> pointing to the new libs directory. When I try to compile I get the
> following error:
>
> Making install in data
> make[1]: Entering directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data'
> Making install in colortables
> make[2]: Entering directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> Making install in NCL_colortables
> make[3]: Entering directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> make[4]: Entering directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> make[4]: Nothing to be done for `install-exec-am'.
> /bin/mkdir -p '/usr/local/share/met/colortables/NCL_colortables'
> /bin/mkdir: cannot create directory `/usr/local/share/met':
Permission
> denied
> make[4]: *** [install-nclctableDATA] Error 1
> make[4]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> make[3]: *** [install-am] Error 2
> make[3]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> make[2]: *** [install-recursive] Error 1
> make[2]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data'
> make: *** [install-recursive] Error 1
>
> My env variables are set by the following:
>
> export MET_LIB_DIR=/h/WXQC/met-8.1_test/met-8.1
> export
> MET_NETCDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1.1
> export BUFR_BASE=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10-2-3
> export GSL_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> export MET_BUFR=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10-2-3
> export MET_GSL=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> export MET_GRIB2C=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.0
> export
> MET_GRIB2CINC=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.0
> export
> MET_GRIB2CLIB=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.0
> export
> MET_BUFRLIB=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-
2-3
> export LDFLAGS='-L/h/WXQC/met-8.1_test/met-
8.1/external_libs/jasper/lib
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
-L/h/WXQC
> /met-8.1_test/met-8.1/external_libs/libpng-1.2.34/lib'
> export
> LD_LIBRARY_PATH=/gpfs/lsf/9.1/linux2.6-glibc2.3-
x86_64/lib:/usr/mpi/gcc/openmpi-1.8.4/lib64:/h/WXQC/met-8.1_test/met-
8.1/external_libs
>
> /gsl-1.15/lib:/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1.1/lib
> export MET_HDFEOS=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdfeos
> export MET_HDF5=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-
1.8.18
> export MET_HDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/HDF4.2.12
> export FC=/usr/bin/gfortran
> export F77=/usr/bin/gfortran
> export CC=/usr/bin/gcc
> export CXX=/usr/bin/g++
>
> and the path is:
> [1550 qcteam DEV9 /h/WXQC/met-8.1_test/met-8.1 -]> print $PATH
>
> /gpfs/lsf/10.1/linux2.6-glibc2.3-x86_64/etc:/gpfs/lsf/10.1/linux2.6-
glibc2.3-x86_64/bin:/h/WXQC/met-8.1_test/met-
8.1/external_libs:/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.181/linux/bin/intel64:/gpfs/shared/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.181/linux/mpi/intel64/bin:/gpfs/shared/intel/parallel_studio_xe_2016_u2/debugger_2016/gdb/intel64_mic/bin:/gpfs/python/python-
3.4/bin:/opt/rh/rh-
python36/root/usr/bin/python3/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/opt/clustertest/bin:/opt/cuda/bin:/opt/cuda/samples/bin/x86_64/linux/release:/opt/cuda/C/NVIDIA_CUDA-
5.5_Samples/bin/x86_64/linux/release:/opt/ibutils/bin:/usr/lpp/ssp/bin:/usr/lpp/ssp/install/bin:/usr/lpp/ssp/kerberos/bin:/usr/lpp/ssp/rcmd/bin:/usr/vac/bin:/usr/local/bin:/usr/local/exelis/idl/bin:.:/home/qcteam/bin:/home/qcteam/:/h/WXQC/bin/
>
>
> So why is MET trying to go to: /usr/local/share/met?
>
> Thanks
> Bob Craig
>
>
------------------------------------------------
Subject: RE: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET Compile Issue
From: robert.craig.2 at us.af.mil
Time: Tue Jun 25 10:27:03 2019
Thanks, I think my problem was not doing a make clean. We continue to
have problems with MET finding the netcdf libraries. Under met-8.1, I
have an external_libs directory. Under that directory is a
netcdf-c-4.4.1.1/lib and netcdf-c-4.4.1.1/include. I compiled ZLIB
and HDF5 first with no errors. Next I did the following:
1) ensured $MET_NETCDF points to /h/WXQC/met-8.1_test/met-
8.1/external_libs/netcdf-c-4.4.1.1 and $MET_LIB_DIR is /h/WXQC/met-
8.1_test/met-8.1
2) ./configure --prefix=${MET_LIB_DIR}/external_libs LDFLAGS=-
L${MET_LIB_DIR}/external_libs/lib CPPFLAGS=-
I${MET_LIB_DIR}/external_libs/include
3) make install
The compile ends with this error:
mv -f .deps/libnetcdf4_la-nc4dim.Tpo .deps/libnetcdf4_la-nc4dim.Plo
/bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc
-DHAVE_CONFIG_H -I. -I.. -I../include -I../oc2 -I/h/WXQC/met-
8.1_test/met-8.1/external_libs/include -MT libnetcdf4_la-nc4file.lo
-MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo -c -o libnetcdf4_la-
nc4file.lo `test -f 'nc4file.c' || echo './'`nc4file.c
libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I../include
-I../oc2 -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include -MT
libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo
-c nc4file.c -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
nc4file.c: In function ‘nc4_open_file’:
nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared (first
use in this function)
nc4file.c:2316: error: (Each undeclared identifier is reported only
once
nc4file.c:2316: error: for each function it appears in.)
nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_RELEASE’ undeclared
(first use in this function)
make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/external_libs/netcdf-c-4.4.1.1/libsrc4'
make: *** [install-recursive] Error 1
Does the NETCDF-CXX need to be compiled before NETCDF C? Any ideas
what could be wrong or missing?
Thanks
Bob
-----Original Message-----
From: John Halley Gotway via RT <met_help at ucar.edu>
Sent: Monday, June 24, 2019 5:22 PM
To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
<robert.craig.2 at us.af.mil>
Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET Compile
Issue
Bob,
MET uses the autoconf package to install software. And you build MET
by running the "configure" command followed by "make install test".
By default, autoconf tries to install software into /usr/local. The
executables are installed into /usr/local/bin and the files need at
runtime are installed into /usr/local/share/met. However, typically
only root has write permission in /usr/local. Attempting to install
it in /usr/local would result in the error you're getting.
The fix is very easy. When you run the "configure" command, just use
the "--prefix=/path/to/install/dir" option, where
"path/to/install/dir"
specifies the installation directory for the MET executables and
runtime files. Obviously, replace "path/to/install/dir" with a real
path that actually exists on your machine. During development, I
usually just install it into the same directory as where the code
lives:
./configure --prefix=`pwd` --enable-grib2 --enable-modis --enable-
mode_graphics --enable-lidar2nc --enable-python
That back-tick pwd back-tick just substitutes in the current working
directory. But it's totally up to you where you want to install it.
Thanks,
John
On Mon, Jun 24, 2019 at 2:37 PM robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:
>
> Mon Jun 24 14:37:30 2019: Request 90790 was acted upon.
> Transaction: Ticket created by robert.craig.2 at us.af.mil
> Queue: met_help
> Subject: MET Compile Issue
> Owner: Nobody
> Requestors: robert.craig.2 at us.af.mil
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790
> >
>
>
> John, or whom it may concern, to get MET 8.1 onto our production
> system, our CM function has to be able to compile MET. I helped
them
> set up the library directory like we have it set and the
environmental
> variables as we have set, but it keeps having problems with the
NETCDF
> library. So in an effort to try to duplicate there problem, I
decide
> to set up a new MET directory and tried to duplicate his error to
try
> to narrow it down. I have set up the env variables as we have in
our
> working version expect pointing to the new libs directory. When I
try
> to compile I get the following error:
>
> Making install in data
> make[1]: Entering directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data'
> Making install in colortables
> make[2]: Entering directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> Making install in NCL_colortables
> make[3]: Entering directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> make[4]: Entering directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> make[4]: Nothing to be done for `install-exec-am'.
> /bin/mkdir -p '/usr/local/share/met/colortables/NCL_colortables'
> /bin/mkdir: cannot create directory `/usr/local/share/met':
Permission
> denied
> make[4]: *** [install-nclctableDATA] Error 1
> make[4]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> make[3]: *** [install-am] Error 2
> make[3]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> make[2]: *** [install-recursive] Error 1
> make[2]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data'
> make: *** [install-recursive] Error 1
>
> My env variables are set by the following:
>
> export MET_LIB_DIR=/h/WXQC/met-8.1_test/met-8.1
> export
> MET_NETCDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1.1
> export
> BUFR_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-2-3
> export GSL_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> export
> MET_BUFR=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-2-3
> export MET_GSL=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> export
> MET_GRIB2C=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-1.4.0
> export
> MET_GRIB2CINC=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.0
> export
> MET_GRIB2CLIB=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.0
> export
> MET_BUFRLIB=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-
2-3
> export
> LDFLAGS='-L/h/WXQC/met-8.1_test/met-8.1/external_libs/jasper/lib
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
-L/h/WXQC
> /met-8.1_test/met-8.1/external_libs/libpng-1.2.34/lib'
> export
> LD_LIBRARY_PATH=/gpfs/lsf/9.1/linux2.6-glibc2.3-
x86_64/lib:/usr/mpi/gc
> c/openmpi-1.8.4/lib64:/h/WXQC/met-8.1_test/met-8.1/external_libs
>
> /gsl-1.15/lib:/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.
> 1.1/lib export
> MET_HDFEOS=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdfeos
> export MET_HDF5=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-
1.8.18
> export MET_HDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/HDF4.2.12
> export FC=/usr/bin/gfortran
> export F77=/usr/bin/gfortran
> export CC=/usr/bin/gcc
> export CXX=/usr/bin/g++
>
> and the path is:
> [1550 qcteam DEV9 /h/WXQC/met-8.1_test/met-8.1 -]> print $PATH
>
> /gpfs/lsf/10.1/linux2.6-glibc2.3-x86_64/etc:/gpfs/lsf/10.1/linux2.6-
gl
> ibc2.3-x86_64/bin:/h/WXQC/met-8.1_test/met-
8.1/external_libs:/gpfs/sha
>
red/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.18
>
1/linux/bin/intel64:/gpfs/shared/intel/parallel_studio_xe_2016_u2/comp
>
ilers_and_libraries_2016.2.181/linux/mpi/intel64/bin:/gpfs/shared/inte
>
l/parallel_studio_xe_2016_u2/debugger_2016/gdb/intel64_mic/bin:/gpfs/p
> ython/python-3.4/bin:/opt/rh/rh-
python36/root/usr/bin/python3/bin:/sbi
>
n:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/opt/clustertest/bin:/opt/cu
>
da/bin:/opt/cuda/samples/bin/x86_64/linux/release:/opt/cuda/C/NVIDIA_C
> UDA-
5.5_Samples/bin/x86_64/linux/release:/opt/ibutils/bin:/usr/lpp/ssp
>
/bin:/usr/lpp/ssp/install/bin:/usr/lpp/ssp/kerberos/bin:/usr/lpp/ssp/r
>
cmd/bin:/usr/vac/bin:/usr/local/bin:/usr/local/exelis/idl/bin:.:/home/
> qcteam/bin:/home/qcteam/:/h/WXQC/bin/
>
>
> So why is MET trying to go to: /usr/local/share/met?
>
> Thanks
> Bob Craig
>
>
------------------------------------------------
Subject: MET Compile Issue
From: John Halley Gotway
Time: Tue Jun 25 11:16:25 2019
Bob,
It looks like you're having trouble getting the dependent libraries
for MET
compiled. I'm going to pass this ticket off to Julie Prestopnik,
who's the
person most experienced in compiling MET. She'll take a look and get
back
to you.
Thanks,
John
On Tue, Jun 25, 2019 at 10:27 AM robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
>
> Thanks, I think my problem was not doing a make clean. We continue
to
> have problems with MET finding the netcdf libraries. Under met-8.1,
I have
> an external_libs directory. Under that directory is a
> netcdf-c-4.4.1.1/lib and netcdf-c-4.4.1.1/include. I compiled ZLIB
and
> HDF5 first with no errors. Next I did the following:
> 1) ensured $MET_NETCDF points to
> /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1 and
> $MET_LIB_DIR is /h/WXQC/met-8.1_test/met-8.1
> 2) ./configure --prefix=${MET_LIB_DIR}/external_libs
> LDFLAGS=-L${MET_LIB_DIR}/external_libs/lib
> CPPFLAGS=-I${MET_LIB_DIR}/external_libs/include
> 3) make install
>
> The compile ends with this error:
>
> mv -f .deps/libnetcdf4_la-nc4dim.Tpo .deps/libnetcdf4_la-nc4dim.Plo
> /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc
-DHAVE_CONFIG_H
> -I. -I.. -I../include -I../oc2
> -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include -MT
> libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo
-c -o
> libnetcdf4_la-nc4file.lo `test -f 'nc4file.c' || echo './'`nc4file.c
> libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
-I../include
> -I../oc2 -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include -MT
> libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo
-c
> nc4file.c -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
> nc4file.c: In function ‘nc4_open_file’:
> nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared (first
use
> in this function)
> nc4file.c:2316: error: (Each undeclared identifier is reported only
once
> nc4file.c:2316: error: for each function it appears in.)
> nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_RELEASE’ undeclared
(first
> use in this function)
> make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> make[1]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1.1/libsrc4'
> make: *** [install-recursive] Error 1
>
> Does the NETCDF-CXX need to be compiled before NETCDF C? Any ideas
what
> could be wrong or missing?
>
> Thanks
> Bob
>
> -----Original Message-----
> From: John Halley Gotway via RT <met_help at ucar.edu>
> Sent: Monday, June 24, 2019 5:22 PM
> To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
<robert.craig.2 at us.af.mil>
> Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET Compile
Issue
>
> Bob,
>
> MET uses the autoconf package to install software. And you build
MET by
> running the "configure" command followed by "make install test". By
> default, autoconf tries to install software into /usr/local. The
> executables are installed into /usr/local/bin and the files need at
runtime
> are installed into /usr/local/share/met. However, typically only
root has
> write permission in /usr/local. Attempting to install it in
/usr/local
> would result in the error you're getting.
>
> The fix is very easy. When you run the "configure" command, just
use the
> "--prefix=/path/to/install/dir" option, where "path/to/install/dir"
> specifies the installation directory for the MET executables and
runtime
> files. Obviously, replace "path/to/install/dir" with a real path
that
> actually exists on your machine. During development, I usually just
> install it into the same directory as where the code lives:
>
> ./configure --prefix=`pwd` --enable-grib2 --enable-modis
> --enable-mode_graphics --enable-lidar2nc --enable-python
>
> That back-tick pwd back-tick just substitutes in the current working
> directory. But it's totally up to you where you want to install it.
>
> Thanks,
> John
>
> On Mon, Jun 24, 2019 at 2:37 PM robert.craig.2 at us.af.mil via RT <
> met_help at ucar.edu> wrote:
>
> >
> > Mon Jun 24 14:37:30 2019: Request 90790 was acted upon.
> > Transaction: Ticket created by robert.craig.2 at us.af.mil
> > Queue: met_help
> > Subject: MET Compile Issue
> > Owner: Nobody
> > Requestors: robert.craig.2 at us.af.mil
> > Status: new
> > Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790
> > >
> >
> >
> > John, or whom it may concern, to get MET 8.1 onto our production
> > system, our CM function has to be able to compile MET. I helped
them
> > set up the library directory like we have it set and the
environmental
> > variables as we have set, but it keeps having problems with the
NETCDF
> > library. So in an effort to try to duplicate there problem, I
decide
> > to set up a new MET directory and tried to duplicate his error to
try
> > to narrow it down. I have set up the env variables as we have in
our
> > working version expect pointing to the new libs directory. When I
try
> > to compile I get the following error:
> >
> > Making install in data
> > make[1]: Entering directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data'
> > Making install in colortables
> > make[2]: Entering directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > Making install in NCL_colortables
> > make[3]: Entering directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > make[4]: Entering directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > make[4]: Nothing to be done for `install-exec-am'.
> > /bin/mkdir -p '/usr/local/share/met/colortables/NCL_colortables'
> > /bin/mkdir: cannot create directory `/usr/local/share/met':
Permission
> > denied
> > make[4]: *** [install-nclctableDATA] Error 1
> > make[4]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > make[3]: *** [install-am] Error 2
> > make[3]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > make[2]: *** [install-recursive] Error 1
> > make[2]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > make[1]: *** [install-recursive] Error 1
> > make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data'
> > make: *** [install-recursive] Error 1
> >
> > My env variables are set by the following:
> >
> > export MET_LIB_DIR=/h/WXQC/met-8.1_test/met-8.1
> > export
> > MET_NETCDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1.1
> > export
> > BUFR_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-
2-3
> > export GSL_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-
1.15
> > export
> > MET_BUFR=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-2-
3
> > export MET_GSL=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> > export
> > MET_GRIB2C=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-1.4.0
> > export
> > MET_GRIB2CINC=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.0
> > export
> > MET_GRIB2CLIB=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.0
> > export
> > MET_BUFRLIB=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10-2-3
> > export
> > LDFLAGS='-L/h/WXQC/met-8.1_test/met-8.1/external_libs/jasper/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
-L/h/WXQC
> > /met-8.1_test/met-8.1/external_libs/libpng-1.2.34/lib'
> > export
> > LD_LIBRARY_PATH=/gpfs/lsf/9.1/linux2.6-glibc2.3-
x86_64/lib:/usr/mpi/gc
> > c/openmpi-1.8.4/lib64:/h/WXQC/met-8.1_test/met-8.1/external_libs
> >
> > /gsl-1.15/lib:/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.
> > 1.1/lib export
> > MET_HDFEOS=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdfeos
> > export MET_HDF5=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-
1.8.18
> > export MET_HDF=/h/WXQC/met-8.1_test/met-
8.1/external_libs/HDF4.2.12
> > export FC=/usr/bin/gfortran
> > export F77=/usr/bin/gfortran
> > export CC=/usr/bin/gcc
> > export CXX=/usr/bin/g++
> >
> > and the path is:
> > [1550 qcteam DEV9 /h/WXQC/met-8.1_test/met-8.1 -]> print $PATH
> >
> > /gpfs/lsf/10.1/linux2.6-glibc2.3-
x86_64/etc:/gpfs/lsf/10.1/linux2.6-gl
> > ibc2.3-x86_64/bin:/h/WXQC/met-8.1_test/met-
8.1/external_libs:/gpfs/sha
> >
red/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.18
> >
1/linux/bin/intel64:/gpfs/shared/intel/parallel_studio_xe_2016_u2/comp
> >
ilers_and_libraries_2016.2.181/linux/mpi/intel64/bin:/gpfs/shared/inte
> >
l/parallel_studio_xe_2016_u2/debugger_2016/gdb/intel64_mic/bin:/gpfs/p
> > ython/python-3.4/bin:/opt/rh/rh-
python36/root/usr/bin/python3/bin:/sbi
> >
n:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/opt/clustertest/bin:/opt/cu
> >
da/bin:/opt/cuda/samples/bin/x86_64/linux/release:/opt/cuda/C/NVIDIA_C
> > UDA-
5.5_Samples/bin/x86_64/linux/release:/opt/ibutils/bin:/usr/lpp/ssp
> >
/bin:/usr/lpp/ssp/install/bin:/usr/lpp/ssp/kerberos/bin:/usr/lpp/ssp/r
> >
cmd/bin:/usr/vac/bin:/usr/local/bin:/usr/local/exelis/idl/bin:.:/home/
> > qcteam/bin:/home/qcteam/:/h/WXQC/bin/
> >
> >
> > So why is MET trying to go to: /usr/local/share/met?
> >
> > Thanks
> > Bob Craig
> >
> >
>
>
>
>
------------------------------------------------
Subject: MET Compile Issue
From: Julie Prestopnik
Time: Tue Jun 25 13:14:22 2019
Hi Bob.
I see you're having some trouble compiling the NETCDF library.
The error you received:
> error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared (first use in this
function)
>
makes me think that NetCDF can't find a header file for HDF5.
I see that you set CPPFLAGS and LDFLAGS when you configured NetCDF,
which
is what I was going to suggest. You used
/h/WXQC/met-8.1_test/met-8.1/external_libs/lib and
/h/WXQC/met-8.1_test/met-8.1/external_libs/include for the locations.
Are
your HDF5 library and include files in those locations, respectively?
If
not, you'll want to point CPPFLAGS and LDFLAGS to the location where
the
HDF5 include and library files are.
Also, you mentioned:
> 1) ensured $MET_NETCDF points to
> /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1
>
To be clear, you'll want the NetCDF-C and NetCDF-CXX library and
include
files in the same place. For example,
/h/WXQC/met-8.1_test/met-8.1/external_libs/lib and
/h/WXQC/met-8.1_test/met-8.1/external_libs/include would be
appropriate
locations. And, in that case, you would want to set MET_NETCDF to
/h/WXQC/met-8.1_test/met-8.1/external_libs/, so that MET can access
all of
the NetCDF library files in the *lib *subdirectory and all of the
NetCDF include
files in the *include* subdirectory.
I hope that helps.
Thanks,
Julie
On Tue, Jun 25, 2019 at 10:27 AM robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
>
> Thanks, I think my problem was not doing a make clean. We continue
to
> have problems with MET finding the netcdf libraries. Under met-8.1,
I have
> an external_libs directory. Under that directory is a
> netcdf-c-4.4.1.1/lib and netcdf-c-4.4.1.1/include. I compiled ZLIB
and
> HDF5 first with no errors. Next I did the following:
> 1) ensured $MET_NETCDF points to
> /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1 and
> $MET_LIB_DIR is /h/WXQC/met-8.1_test/met-8.1
> 2) ./configure --prefix=${MET_LIB_DIR}/external_libs
> LDFLAGS=-L${MET_LIB_DIR}/external_libs/lib
> CPPFLAGS=-I${MET_LIB_DIR}/external_libs/include
> 3) make install
>
> The compile ends with this error:
>
> mv -f .deps/libnetcdf4_la-nc4dim.Tpo .deps/libnetcdf4_la-nc4dim.Plo
> /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc
-DHAVE_CONFIG_H
> -I. -I.. -I../include -I../oc2
> -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include -MT
> libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo
-c -o
> libnetcdf4_la-nc4file.lo `test -f 'nc4file.c' || echo './'`nc4file.c
> libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
-I../include
> -I../oc2 -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include -MT
> libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo
-c
> nc4file.c -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
> nc4file.c: In function ‘nc4_open_file’:
> nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared (first
use
> in this function)
> nc4file.c:2316: error: (Each undeclared identifier is reported only
once
> nc4file.c:2316: error: for each function it appears in.)
> nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_RELEASE’ undeclared
(first
> use in this function)
> make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> make[1]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1.1/libsrc4'
> make: *** [install-recursive] Error 1
>
> Does the NETCDF-CXX need to be compiled before NETCDF C? Any ideas
what
> could be wrong or missing?
>
> Thanks
> Bob
>
> -----Original Message-----
> From: John Halley Gotway via RT <met_help at ucar.edu>
> Sent: Monday, June 24, 2019 5:22 PM
> To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
<robert.craig.2 at us.af.mil>
> Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET Compile
Issue
>
> Bob,
>
> MET uses the autoconf package to install software. And you build
MET by
> running the "configure" command followed by "make install test". By
> default, autoconf tries to install software into /usr/local. The
> executables are installed into /usr/local/bin and the files need at
runtime
> are installed into /usr/local/share/met. However, typically only
root has
> write permission in /usr/local. Attempting to install it in
/usr/local
> would result in the error you're getting.
>
> The fix is very easy. When you run the "configure" command, just
use the
> "--prefix=/path/to/install/dir" option, where "path/to/install/dir"
> specifies the installation directory for the MET executables and
runtime
> files. Obviously, replace "path/to/install/dir" with a real path
that
> actually exists on your machine. During development, I usually just
> install it into the same directory as where the code lives:
>
> ./configure --prefix=`pwd` --enable-grib2 --enable-modis
> --enable-mode_graphics --enable-lidar2nc --enable-python
>
> That back-tick pwd back-tick just substitutes in the current working
> directory. But it's totally up to you where you want to install it.
>
> Thanks,
> John
>
> On Mon, Jun 24, 2019 at 2:37 PM robert.craig.2 at us.af.mil via RT <
> met_help at ucar.edu> wrote:
>
> >
> > Mon Jun 24 14:37:30 2019: Request 90790 was acted upon.
> > Transaction: Ticket created by robert.craig.2 at us.af.mil
> > Queue: met_help
> > Subject: MET Compile Issue
> > Owner: Nobody
> > Requestors: robert.craig.2 at us.af.mil
> > Status: new
> > Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790
> > >
> >
> >
> > John, or whom it may concern, to get MET 8.1 onto our production
> > system, our CM function has to be able to compile MET. I helped
them
> > set up the library directory like we have it set and the
environmental
> > variables as we have set, but it keeps having problems with the
NETCDF
> > library. So in an effort to try to duplicate there problem, I
decide
> > to set up a new MET directory and tried to duplicate his error to
try
> > to narrow it down. I have set up the env variables as we have in
our
> > working version expect pointing to the new libs directory. When I
try
> > to compile I get the following error:
> >
> > Making install in data
> > make[1]: Entering directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data'
> > Making install in colortables
> > make[2]: Entering directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > Making install in NCL_colortables
> > make[3]: Entering directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > make[4]: Entering directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > make[4]: Nothing to be done for `install-exec-am'.
> > /bin/mkdir -p '/usr/local/share/met/colortables/NCL_colortables'
> > /bin/mkdir: cannot create directory `/usr/local/share/met':
Permission
> > denied
> > make[4]: *** [install-nclctableDATA] Error 1
> > make[4]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > make[3]: *** [install-am] Error 2
> > make[3]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > make[2]: *** [install-recursive] Error 1
> > make[2]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > make[1]: *** [install-recursive] Error 1
> > make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data'
> > make: *** [install-recursive] Error 1
> >
> > My env variables are set by the following:
> >
> > export MET_LIB_DIR=/h/WXQC/met-8.1_test/met-8.1
> > export
> > MET_NETCDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1.1
> > export
> > BUFR_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-
2-3
> > export GSL_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-
1.15
> > export
> > MET_BUFR=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-2-
3
> > export MET_GSL=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> > export
> > MET_GRIB2C=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-1.4.0
> > export
> > MET_GRIB2CINC=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.0
> > export
> > MET_GRIB2CLIB=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.0
> > export
> > MET_BUFRLIB=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10-2-3
> > export
> > LDFLAGS='-L/h/WXQC/met-8.1_test/met-8.1/external_libs/jasper/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
-L/h/WXQC
> > /met-8.1_test/met-8.1/external_libs/libpng-1.2.34/lib'
> > export
> > LD_LIBRARY_PATH=/gpfs/lsf/9.1/linux2.6-glibc2.3-
x86_64/lib:/usr/mpi/gc
> > c/openmpi-1.8.4/lib64:/h/WXQC/met-8.1_test/met-8.1/external_libs
> >
> > /gsl-1.15/lib:/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.
> > 1.1/lib export
> > MET_HDFEOS=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdfeos
> > export MET_HDF5=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-
1.8.18
> > export MET_HDF=/h/WXQC/met-8.1_test/met-
8.1/external_libs/HDF4.2.12
> > export FC=/usr/bin/gfortran
> > export F77=/usr/bin/gfortran
> > export CC=/usr/bin/gcc
> > export CXX=/usr/bin/g++
> >
> > and the path is:
> > [1550 qcteam DEV9 /h/WXQC/met-8.1_test/met-8.1 -]> print $PATH
> >
> > /gpfs/lsf/10.1/linux2.6-glibc2.3-
x86_64/etc:/gpfs/lsf/10.1/linux2.6-gl
> > ibc2.3-x86_64/bin:/h/WXQC/met-8.1_test/met-
8.1/external_libs:/gpfs/sha
> >
red/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.18
> >
1/linux/bin/intel64:/gpfs/shared/intel/parallel_studio_xe_2016_u2/comp
> >
ilers_and_libraries_2016.2.181/linux/mpi/intel64/bin:/gpfs/shared/inte
> >
l/parallel_studio_xe_2016_u2/debugger_2016/gdb/intel64_mic/bin:/gpfs/p
> > ython/python-3.4/bin:/opt/rh/rh-
python36/root/usr/bin/python3/bin:/sbi
> >
n:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/opt/clustertest/bin:/opt/cu
> >
da/bin:/opt/cuda/samples/bin/x86_64/linux/release:/opt/cuda/C/NVIDIA_C
> > UDA-
5.5_Samples/bin/x86_64/linux/release:/opt/ibutils/bin:/usr/lpp/ssp
> >
/bin:/usr/lpp/ssp/install/bin:/usr/lpp/ssp/kerberos/bin:/usr/lpp/ssp/r
> >
cmd/bin:/usr/vac/bin:/usr/local/bin:/usr/local/exelis/idl/bin:.:/home/
> > qcteam/bin:/home/qcteam/:/h/WXQC/bin/
> >
> >
> > So why is MET trying to go to: /usr/local/share/met?
> >
> > Thanks
> > Bob Craig
> >
> >
>
>
>
>
------------------------------------------------
Subject: RE: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET Compile Issue
From: robert.craig.2 at us.af.mil
Time: Tue Jun 25 14:09:04 2019
Julie, your advice allowed me to compile NETCDF and when I tried to
compile MET, I got past the NETCDF portion. However, it stop with the
following error:
mv -f .deps/ensemble_stat-ensemble_stat_conf_info.Tpo
.deps/ensemble_stat-ensemble_stat_conf_info.Po
/usr/bin/g++ -g -L../../../../src/basic/vx_cal
-L../../../../src/basic/vx_config -L../../../../src/basic/vx_log
-L../../../../src/basic/vx_math -L../../../../src/basic/vx_util
-L../../../../src/libcode/vx_afm
-L../../../../src/libcode/vx_analysis_util
-L../../../../src/libcode/vx_color -L../../../../src/libcode/vx_data2d
-L../../../../src/libcode/vx_data2d_factory
-L../../../../src/libcode/vx_data2d_grib
-L../../../../src/libcode/vx_data2d_grib2
-L../../../../src/libcode/vx_data2d_nccf
-L../../../../src/libcode/vx_data2d_nc_met
-L../../../../src/libcode/vx_data2d_nc_pinterp
-L../../../../src/libcode/vx_data2d_python
-L../../../../src/libcode/vx_python_utils
-L../../../../src/libcode/vx_geodesy -L../../../../src/libcode/vx_gis
-L../../../../src/libcode/vx_gnomon -L../../../../src/libcode/vx_grid
-L../../../../src/libcode/vx_gsl_prob -L../../../../src/libcode/vx_nav
-L../../../../src/libcode/vx_nc_obs
-L../../../../src/libcode/vx_nc_util
-L../../../../src/libcode/vx_pb_util
-L../../../../src/libcode/vx_plot_util -L../../../../src/libcode/vx_ps
-L../../../../src/libcode/vx_pxm -L../../../../src/libcode/vx_render
-L../../../../src/libcode/vx_regrid
-L../../../../src/libcode/vx_shapedata
-L../../../../src/libcode/vx_solar
-L../../../../src/libcode/vx_statistics
-L../../../../src/libcode/vx_stat_out
-L../../../../src/libcode/vx_summary
-L../../../../src/libcode/vx_time_series
-L../../../../src/libcode/vx_tc_util -L/h/WXQC/met-8.1_test/met-
8.1/external_libs/jasper/lib -L/h/WXQC/met-8.1_test/met-
8.1/external_libs/zlib-1.2.6/lib -L/h/WXQC/met-8.1_test/met-
8.1/external_libs/libpng-1.2.34/lib -L/h/WXQC/met-8.1_test/met-
8.1/external_libs/lib -L/h/WXQC/met-8.1_test/met-
8.1/external_libs/hdf5-1.8.18/lib -L/h/WXQC/met-8.1_test/met-
8.1/external_libs/g2clib-1.4.0 -L/h/WXQC/met-8.1_test/met-
8.1/external_libs/gsl-1.15/lib -L/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10-2-3 -L/h/WXQC/met-8.1_test/met-
8.1/external_libs/HDF4.2.12/lib -L/h/WXQC/met-8.1_test/met-
8.1/external_libs/hdfeos/lib -o ensemble_stat ensemble_stat-ensem
ble_stat.o ensemble_stat-ensemble_stat_conf_info.o -lvx_stat_out
-lvx_statistics -lvx_shapedata -lvx_gsl_prob -lvx_analysis_util
-lvx_data2d_factory -lvx_data2d_nc_met -lvx_data2d_grib
-lvx_data2d_grib2 -lgrib2c -ljasper -lpng -lz -lvx_data2d_nc_pinterp
-lvx_data2d_nccf -lvx_data2d -lvx_nc_obs -lvx_nc_util -lvx_regrid
-lvx_grid -lvx_config -lvx_cal -lvx_util -lvx_math -lvx_color -lvx_log
-lm -lnetcdf_c++4 -lnetcdf -lgsl -lgslcblas
/usr/bin/ld: cannot find -ljasper
collect2: ld returned 1 exit status
make[4]: *** [ensemble_stat] Error 1
make[4]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/src/tools/core/ensemble_stat'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/src/tools/core'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/src/tools'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/src'
make: *** [install-recursive] Error 1
I have a jasper directory but it is empty. What is causing this
issue?
Thanks
Bob
-----Original Message-----
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Tuesday, June 25, 2019 2:14 PM
To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
<robert.craig.2 at us.af.mil>
Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET Compile
Issue
Hi Bob.
I see you're having some trouble compiling the NETCDF library.
The error you received:
> error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared (first use in this
> function)
>
makes me think that NetCDF can't find a header file for HDF5.
I see that you set CPPFLAGS and LDFLAGS when you configured NetCDF,
which is what I was going to suggest. You used /h/WXQC/met-
8.1_test/met-8.1/external_libs/lib and /h/WXQC/met-8.1_test/met-
8.1/external_libs/include for the locations. Are your HDF5 library
and include files in those locations, respectively? If not, you'll
want to point CPPFLAGS and LDFLAGS to the location where the
HDF5 include and library files are.
Also, you mentioned:
> 1) ensured $MET_NETCDF points to
> /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1
>
To be clear, you'll want the NetCDF-C and NetCDF-CXX library and
include files in the same place. For example, /h/WXQC/met-
8.1_test/met-8.1/external_libs/lib and /h/WXQC/met-8.1_test/met-
8.1/external_libs/include would be appropriate locations. And, in
that case, you would want to set MET_NETCDF to /h/WXQC/met-
8.1_test/met-8.1/external_libs/, so that MET can access all of the
NetCDF library files in the *lib *subdirectory and all of the NetCDF
include files in the *include* subdirectory.
I hope that helps.
Thanks,
Julie
On Tue, Jun 25, 2019 at 10:27 AM robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
>
> Thanks, I think my problem was not doing a make clean. We continue
to
> have problems with MET finding the netcdf libraries. Under met-8.1,
I
> have an external_libs directory. Under that directory is a
> netcdf-c-4.4.1.1/lib and netcdf-c-4.4.1.1/include. I compiled ZLIB
and
> HDF5 first with no errors. Next I did the following:
> 1) ensured $MET_NETCDF points to
> /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1 and
> $MET_LIB_DIR is /h/WXQC/met-8.1_test/met-8.1
> 2) ./configure --prefix=${MET_LIB_DIR}/external_libs
> LDFLAGS=-L${MET_LIB_DIR}/external_libs/lib
> CPPFLAGS=-I${MET_LIB_DIR}/external_libs/include
> 3) make install
>
> The compile ends with this error:
>
> mv -f .deps/libnetcdf4_la-nc4dim.Tpo .deps/libnetcdf4_la-nc4dim.Plo
> /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc
-DHAVE_CONFIG_H
> -I. -I.. -I../include -I../oc2
> -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include -MT
> libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo
> -c -o libnetcdf4_la-nc4file.lo `test -f 'nc4file.c' || echo
> './'`nc4file.c
> libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
-I../include
> -I../oc2 -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include -MT
> libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-nc4file.Tpo
> -c nc4file.c -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
> nc4file.c: In function ‘nc4_open_file’:
> nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared (first
> use in this function)
> nc4file.c:2316: error: (Each undeclared identifier is reported only
> once
> nc4file.c:2316: error: for each function it appears in.)
> nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_RELEASE’ undeclared
> (first use in this function)
> make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> make[1]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1.1/libsrc4'
> make: *** [install-recursive] Error 1
>
> Does the NETCDF-CXX need to be compiled before NETCDF C? Any ideas
what
> could be wrong or missing?
>
> Thanks
> Bob
>
> -----Original Message-----
> From: John Halley Gotway via RT <met_help at ucar.edu>
> Sent: Monday, June 24, 2019 5:22 PM
> To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> <robert.craig.2 at us.af.mil>
> Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET Compile
> Issue
>
> Bob,
>
> MET uses the autoconf package to install software. And you build
MET
> by running the "configure" command followed by "make install test".
> By default, autoconf tries to install software into /usr/local. The
> executables are installed into /usr/local/bin and the files need at
> runtime are installed into /usr/local/share/met. However, typically
> only root has write permission in /usr/local. Attempting to install
> it in /usr/local would result in the error you're getting.
>
> The fix is very easy. When you run the "configure" command, just
use
> the "--prefix=/path/to/install/dir" option, where
"path/to/install/dir"
> specifies the installation directory for the MET executables and
> runtime files. Obviously, replace "path/to/install/dir" with a real
> path that actually exists on your machine. During development, I
> usually just install it into the same directory as where the code
lives:
>
> ./configure --prefix=`pwd` --enable-grib2 --enable-modis
> --enable-mode_graphics --enable-lidar2nc --enable-python
>
> That back-tick pwd back-tick just substitutes in the current working
> directory. But it's totally up to you where you want to install it.
>
> Thanks,
> John
>
> On Mon, Jun 24, 2019 at 2:37 PM robert.craig.2 at us.af.mil via RT <
> met_help at ucar.edu> wrote:
>
> >
> > Mon Jun 24 14:37:30 2019: Request 90790 was acted upon.
> > Transaction: Ticket created by robert.craig.2 at us.af.mil
> > Queue: met_help
> > Subject: MET Compile Issue
> > Owner: Nobody
> > Requestors: robert.craig.2 at us.af.mil
> > Status: new
> > Ticket <URL:
> > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790
> > >
> >
> >
> > John, or whom it may concern, to get MET 8.1 onto our production
> > system, our CM function has to be able to compile MET. I helped
> > them set up the library directory like we have it set and the
> > environmental variables as we have set, but it keeps having
problems
> > with the NETCDF library. So in an effort to try to duplicate
there
> > problem, I decide to set up a new MET directory and tried to
> > duplicate his error to try to narrow it down. I have set up the
env
> > variables as we have in our working version expect pointing to the
> > new libs directory. When I try to compile I get the following
error:
> >
> > Making install in data
> > make[1]: Entering directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data'
> > Making install in colortables
> > make[2]: Entering directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > Making install in NCL_colortables
> > make[3]: Entering directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > make[4]: Entering directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > make[4]: Nothing to be done for `install-exec-am'.
> > /bin/mkdir -p '/usr/local/share/met/colortables/NCL_colortables'
> > /bin/mkdir: cannot create directory `/usr/local/share/met':
> > Permission denied
> > make[4]: *** [install-nclctableDATA] Error 1
> > make[4]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > make[3]: *** [install-am] Error 2
> > make[3]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > make[2]: *** [install-recursive] Error 1
> > make[2]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > make[1]: *** [install-recursive] Error 1
> > make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data'
> > make: *** [install-recursive] Error 1
> >
> > My env variables are set by the following:
> >
> > export MET_LIB_DIR=/h/WXQC/met-8.1_test/met-8.1
> > export
> > MET_NETCDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1
> > .1
> > export
> > BUFR_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-
2-3
> > export GSL_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-
1.15
> > export
> > MET_BUFR=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-2-
3
> > export MET_GSL=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> > export
> > MET_GRIB2C=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-1.4.0
> > export
> > MET_GRIB2CINC=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.
> > 0
> > export
> > MET_GRIB2CLIB=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.
> > 0
> > export
> > MET_BUFRLIB=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10-2
> > -3
> > export
> > LDFLAGS='-L/h/WXQC/met-8.1_test/met-8.1/external_libs/jasper/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
> > -L/h/WXQC /met-8.1_test/met-8.1/external_libs/libpng-1.2.34/lib'
> > export
> > LD_LIBRARY_PATH=/gpfs/lsf/9.1/linux2.6-glibc2.3-
x86_64/lib:/usr/mpi/
> > gc c/openmpi-1.8.4/lib64:/h/WXQC/met-8.1_test/met-
8.1/external_libs
> >
> > /gsl-1.15/lib:/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.
> > 1.1/lib export
> > MET_HDFEOS=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdfeos
> > export
> > MET_HDF5=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-1.8.18
> > export MET_HDF=/h/WXQC/met-8.1_test/met-
8.1/external_libs/HDF4.2.12
> > export FC=/usr/bin/gfortran
> > export F77=/usr/bin/gfortran
> > export CC=/usr/bin/gcc
> > export CXX=/usr/bin/g++
> >
> > and the path is:
> > [1550 qcteam DEV9 /h/WXQC/met-8.1_test/met-8.1 -]> print $PATH
> >
> > /gpfs/lsf/10.1/linux2.6-glibc2.3-
x86_64/etc:/gpfs/lsf/10.1/linux2.6-
> > gl
> > ibc2.3-x86_64/bin:/h/WXQC/met-8.1_test/met-
8.1/external_libs:/gpfs/s
> > ha
> >
red/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.
> > 18
> >
1/linux/bin/intel64:/gpfs/shared/intel/parallel_studio_xe_2016_u2/co
> > mp
> >
ilers_and_libraries_2016.2.181/linux/mpi/intel64/bin:/gpfs/shared/in
> > te
> >
l/parallel_studio_xe_2016_u2/debugger_2016/gdb/intel64_mic/bin:/gpfs
> > /p
> > ython/python-3.4/bin:/opt/rh/rh-
python36/root/usr/bin/python3/bin:/s
> > bi
> >
n:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/opt/clustertest/bin:/opt/
> > cu
> >
da/bin:/opt/cuda/samples/bin/x86_64/linux/release:/opt/cuda/C/NVIDIA
> > _C
> > UDA-
5.5_Samples/bin/x86_64/linux/release:/opt/ibutils/bin:/usr/lpp/s
> > sp
> >
/bin:/usr/lpp/ssp/install/bin:/usr/lpp/ssp/kerberos/bin:/usr/lpp/ssp
> > /r
> >
cmd/bin:/usr/vac/bin:/usr/local/bin:/usr/local/exelis/idl/bin:.:/hom
> > e/ qcteam/bin:/home/qcteam/:/h/WXQC/bin/
> >
> >
> > So why is MET trying to go to: /usr/local/share/met?
> >
> > Thanks
> > Bob Craig
> >
> >
>
>
>
>
------------------------------------------------
Subject: MET Compile Issue
From: Julie Prestopnik
Time: Tue Jun 25 14:49:34 2019
Great! I'm glad to hear we're making progress and you were able to
get by
the NetCDF portion.
/usr/bin/ld: cannot find -ljasper
>
is telling us that the jasper library cannot be found. The GRIB2 C-
Library
requires the zlib, jasper, and png libraries. I typically install
these
manually, but you don't have to if they're already installed on your
system, as you can tell the GRIB2 C-Library using "INC" in the
makefile
where to find the libraries it needs.
Below is a link to our instructions for compiling this library (Search
for
"Compiling GRIB2 C-Library"):
https://dtcenter.org/met-online-tutorial-metv8-0/tutorial-
setup/compilation/required-libraries
If you need further assistance with compiling the GRIB2 C-Library or
any of
its supporting libraries, please let me know. I can send you the
instructions that I use to compile these if you'd like.
Julie
On Tue, Jun 25, 2019 at 2:17 PM robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
>
> Julie, your advice allowed me to compile NETCDF and when I tried to
> compile MET, I got past the NETCDF portion. However, it stop with
the
> following error:
>
> mv -f .deps/ensemble_stat-ensemble_stat_conf_info.Tpo
> .deps/ensemble_stat-ensemble_stat_conf_info.Po
> /usr/bin/g++ -g -L../../../../src/basic/vx_cal
> -L../../../../src/basic/vx_config -L../../../../src/basic/vx_log
> -L../../../../src/basic/vx_math -L../../../../src/basic/vx_util
> -L../../../../src/libcode/vx_afm
-L../../../../src/libcode/vx_analysis_util
> -L../../../../src/libcode/vx_color
-L../../../../src/libcode/vx_data2d
> -L../../../../src/libcode/vx_data2d_factory
> -L../../../../src/libcode/vx_data2d_grib
> -L../../../../src/libcode/vx_data2d_grib2
> -L../../../../src/libcode/vx_data2d_nccf
> -L../../../../src/libcode/vx_data2d_nc_met
> -L../../../../src/libcode/vx_data2d_nc_pinterp
> -L../../../../src/libcode/vx_data2d_python
> -L../../../../src/libcode/vx_python_utils
> -L../../../../src/libcode/vx_geodesy
-L../../../../src/libcode/vx_gis
> -L../../../../src/libcode/vx_gnomon
-L../../../../src/libcode/vx_grid
> -L../../../../src/libcode/vx_gsl_prob
-L../../../../src/libcode/vx_nav
> -L../../../../src/libcode/vx_nc_obs
-L../../../../src/libcode/vx_nc_util
> -L../../../../src/libcode/vx_pb_util -!
> L../../../../src/libcode/vx_plot_util
-L../../../../src/libcode/vx_ps
> -L../../../../src/libcode/vx_pxm -L../../../../src/libcode/vx_render
> -L../../../../src/libcode/vx_regrid
-L../../../../src/libcode/vx_shapedata
> -L../../../../src/libcode/vx_solar
-L../../../../src/libcode/vx_statistics
> -L../../../../src/libcode/vx_stat_out
-L../../../../src/libcode/vx_summary
> -L../../../../src/libcode/vx_time_series
> -L../../../../src/libcode/vx_tc_util
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/jasper/lib
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/libpng-1.2.34/lib
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/lib
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-1.8.18/lib
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-1.4.0
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15/lib
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-2-3
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/HDF4.2.12/lib
> -L/h/WXQC/met-8.1_tes!
> t/met-8.1/external_libs/hdfeos/lib -o ensemble_stat ensemble_s!
> tat-ensem
> ble_stat.o ensemble_stat-ensemble_stat_conf_info.o -lvx_stat_out
> -lvx_statistics -lvx_shapedata -lvx_gsl_prob -lvx_analysis_util
> -lvx_data2d_factory -lvx_data2d_nc_met -lvx_data2d_grib
-lvx_data2d_grib2
> -lgrib2c -ljasper -lpng -lz -lvx_data2d_nc_pinterp -lvx_data2d_nccf
> -lvx_data2d -lvx_nc_obs -lvx_nc_util -lvx_regrid -lvx_grid
-lvx_config
> -lvx_cal -lvx_util -lvx_math -lvx_color -lvx_log -lm -lnetcdf_c++4
-lnetcdf
> -lgsl -lgslcblas
> /usr/bin/ld: cannot find -ljasper
> collect2: ld returned 1 exit status
> make[4]: *** [ensemble_stat] Error 1
> make[4]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/src/tools/core/ensemble_stat'
> make[3]: *** [install-recursive] Error 1
> make[3]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/src/tools/core'
> make[2]: *** [install-recursive] Error 1
> make[2]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/src/tools'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/src'
> make: *** [install-recursive] Error 1
>
> I have a jasper directory but it is empty. What is causing this
issue?
>
> Thanks
> Bob
>
> -----Original Message-----
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Tuesday, June 25, 2019 2:14 PM
> To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
<robert.craig.2 at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET
Compile
> Issue
>
> Hi Bob.
>
> I see you're having some trouble compiling the NETCDF library.
>
> The error you received:
>
> > error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared (first use in this
> > function)
> >
> makes me think that NetCDF can't find a header file for HDF5.
>
> I see that you set CPPFLAGS and LDFLAGS when you configured NetCDF,
which
> is what I was going to suggest. You used
> /h/WXQC/met-8.1_test/met-8.1/external_libs/lib and
> /h/WXQC/met-8.1_test/met-8.1/external_libs/include for the
locations. Are
> your HDF5 library and include files in those locations,
respectively? If
> not, you'll want to point CPPFLAGS and LDFLAGS to the location where
the
> HDF5 include and library files are.
>
> Also, you mentioned:
>
> > 1) ensured $MET_NETCDF points to
> > /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1
> >
> To be clear, you'll want the NetCDF-C and NetCDF-CXX library and
include
> files in the same place. For example,
> /h/WXQC/met-8.1_test/met-8.1/external_libs/lib and
> /h/WXQC/met-8.1_test/met-8.1/external_libs/include would be
appropriate
> locations. And, in that case, you would want to set MET_NETCDF to
> /h/WXQC/met-8.1_test/met-8.1/external_libs/, so that MET can access
all of
> the NetCDF library files in the *lib *subdirectory and all of the
NetCDF
> include files in the *include* subdirectory.
>
> I hope that helps.
>
> Thanks,
> Julie
>
> On Tue, Jun 25, 2019 at 10:27 AM robert.craig.2 at us.af.mil via RT <
> met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
> >
> > Thanks, I think my problem was not doing a make clean. We
continue to
> > have problems with MET finding the netcdf libraries. Under met-
8.1, I
> > have an external_libs directory. Under that directory is a
> > netcdf-c-4.4.1.1/lib and netcdf-c-4.4.1.1/include. I compiled
ZLIB and
> > HDF5 first with no errors. Next I did the following:
> > 1) ensured $MET_NETCDF points to
> > /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1 and
> > $MET_LIB_DIR is /h/WXQC/met-8.1_test/met-8.1
> > 2) ./configure --prefix=${MET_LIB_DIR}/external_libs
> > LDFLAGS=-L${MET_LIB_DIR}/external_libs/lib
> > CPPFLAGS=-I${MET_LIB_DIR}/external_libs/include
> > 3) make install
> >
> > The compile ends with this error:
> >
> > mv -f .deps/libnetcdf4_la-nc4dim.Tpo .deps/libnetcdf4_la-
nc4dim.Plo
> > /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc
> -DHAVE_CONFIG_H
> > -I. -I.. -I../include -I../oc2
> > -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include -MT
> > libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-
nc4file.Tpo
> > -c -o libnetcdf4_la-nc4file.lo `test -f 'nc4file.c' || echo
> > './'`nc4file.c
> > libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
-I../include
> > -I../oc2 -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include -MT
> > libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-
nc4file.Tpo
> > -c nc4file.c -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
> > nc4file.c: In function ‘nc4_open_file’:
> > nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared
(first
> > use in this function)
> > nc4file.c:2316: error: (Each undeclared identifier is reported
only
> > once
> > nc4file.c:2316: error: for each function it appears in.)
> > nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_RELEASE’ undeclared
> > (first use in this function)
> > make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> > make[1]: Leaving directory
> >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1.1/libsrc4'
> > make: *** [install-recursive] Error 1
> >
> > Does the NETCDF-CXX need to be compiled before NETCDF C? Any
ideas what
> > could be wrong or missing?
> >
> > Thanks
> > Bob
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT <met_help at ucar.edu>
> > Sent: Monday, June 24, 2019 5:22 PM
> > To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> > <robert.craig.2 at us.af.mil>
> > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET Compile
> > Issue
> >
> > Bob,
> >
> > MET uses the autoconf package to install software. And you build
MET
> > by running the "configure" command followed by "make install
test".
> > By default, autoconf tries to install software into /usr/local.
The
> > executables are installed into /usr/local/bin and the files need
at
> > runtime are installed into /usr/local/share/met. However,
typically
> > only root has write permission in /usr/local. Attempting to
install
> > it in /usr/local would result in the error you're getting.
> >
> > The fix is very easy. When you run the "configure" command, just
use
> > the "--prefix=/path/to/install/dir" option, where
"path/to/install/dir"
> > specifies the installation directory for the MET executables and
> > runtime files. Obviously, replace "path/to/install/dir" with a
real
> > path that actually exists on your machine. During development, I
> > usually just install it into the same directory as where the code
lives:
> >
> > ./configure --prefix=`pwd` --enable-grib2 --enable-modis
> > --enable-mode_graphics --enable-lidar2nc --enable-python
> >
> > That back-tick pwd back-tick just substitutes in the current
working
> > directory. But it's totally up to you where you want to install
it.
> >
> > Thanks,
> > John
> >
> > On Mon, Jun 24, 2019 at 2:37 PM robert.craig.2 at us.af.mil via RT <
> > met_help at ucar.edu> wrote:
> >
> > >
> > > Mon Jun 24 14:37:30 2019: Request 90790 was acted upon.
> > > Transaction: Ticket created by robert.craig.2 at us.af.mil
> > > Queue: met_help
> > > Subject: MET Compile Issue
> > > Owner: Nobody
> > > Requestors: robert.craig.2 at us.af.mil
> > > Status: new
> > > Ticket <URL:
> > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790
> > > >
> > >
> > >
> > > John, or whom it may concern, to get MET 8.1 onto our production
> > > system, our CM function has to be able to compile MET. I helped
> > > them set up the library directory like we have it set and the
> > > environmental variables as we have set, but it keeps having
problems
> > > with the NETCDF library. So in an effort to try to duplicate
there
> > > problem, I decide to set up a new MET directory and tried to
> > > duplicate his error to try to narrow it down. I have set up the
env
> > > variables as we have in our working version expect pointing to
the
> > > new libs directory. When I try to compile I get the following
error:
> > >
> > > Making install in data
> > > make[1]: Entering directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data'
> > > Making install in colortables
> > > make[2]: Entering directory
> > > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > > Making install in NCL_colortables
> > > make[3]: Entering directory
> > >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > make[4]: Entering directory
> > >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > make[4]: Nothing to be done for `install-exec-am'.
> > > /bin/mkdir -p '/usr/local/share/met/colortables/NCL_colortables'
> > > /bin/mkdir: cannot create directory `/usr/local/share/met':
> > > Permission denied
> > > make[4]: *** [install-nclctableDATA] Error 1
> > > make[4]: Leaving directory
> > >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > make[3]: *** [install-am] Error 2
> > > make[3]: Leaving directory
> > >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > make[2]: *** [install-recursive] Error 1
> > > make[2]: Leaving directory
> > > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > > make[1]: *** [install-recursive] Error 1
> > > make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data'
> > > make: *** [install-recursive] Error 1
> > >
> > > My env variables are set by the following:
> > >
> > > export MET_LIB_DIR=/h/WXQC/met-8.1_test/met-8.1
> > > export
> > > MET_NETCDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1
> > > .1
> > > export
> > > BUFR_BASE=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10-2-3
> > > export GSL_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-
1.15
> > > export
> > > MET_BUFR=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-
2-3
> > > export MET_GSL=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-
1.15
> > > export
> > > MET_GRIB2C=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.0
> > > export
> > > MET_GRIB2CINC=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.
> > > 0
> > > export
> > > MET_GRIB2CLIB=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.
> > > 0
> > > export
> > > MET_BUFRLIB=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10-2
> > > -3
> > > export
> > > LDFLAGS='-L/h/WXQC/met-8.1_test/met-8.1/external_libs/jasper/lib
> > > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
> > > -L/h/WXQC /met-8.1_test/met-8.1/external_libs/libpng-1.2.34/lib'
> > > export
> > > LD_LIBRARY_PATH=/gpfs/lsf/9.1/linux2.6-glibc2.3-
x86_64/lib:/usr/mpi/
> > > gc c/openmpi-1.8.4/lib64:/h/WXQC/met-8.1_test/met-
8.1/external_libs
> > >
> > > /gsl-1.15/lib:/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-
c-4.4.
> > > 1.1/lib export
> > > MET_HDFEOS=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdfeos
> > > export
> > > MET_HDF5=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-1.8.18
> > > export MET_HDF=/h/WXQC/met-8.1_test/met-
8.1/external_libs/HDF4.2.12
> > > export FC=/usr/bin/gfortran
> > > export F77=/usr/bin/gfortran
> > > export CC=/usr/bin/gcc
> > > export CXX=/usr/bin/g++
> > >
> > > and the path is:
> > > [1550 qcteam DEV9 /h/WXQC/met-8.1_test/met-8.1 -]> print $PATH
> > >
> > > /gpfs/lsf/10.1/linux2.6-glibc2.3-
x86_64/etc:/gpfs/lsf/10.1/linux2.6-
> > > gl
> > > ibc2.3-x86_64/bin:/h/WXQC/met-8.1_test/met-
8.1/external_libs:/gpfs/s
> > > ha
> > >
red/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.
> > > 18
> > >
1/linux/bin/intel64:/gpfs/shared/intel/parallel_studio_xe_2016_u2/co
> > > mp
> > >
ilers_and_libraries_2016.2.181/linux/mpi/intel64/bin:/gpfs/shared/in
> > > te
> > >
l/parallel_studio_xe_2016_u2/debugger_2016/gdb/intel64_mic/bin:/gpfs
> > > /p
> > > ython/python-3.4/bin:/opt/rh/rh-
python36/root/usr/bin/python3/bin:/s
> > > bi
> > >
n:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/opt/clustertest/bin:/opt/
> > > cu
> > >
da/bin:/opt/cuda/samples/bin/x86_64/linux/release:/opt/cuda/C/NVIDIA
> > > _C
> > > UDA-
5.5_Samples/bin/x86_64/linux/release:/opt/ibutils/bin:/usr/lpp/s
> > > sp
> > >
/bin:/usr/lpp/ssp/install/bin:/usr/lpp/ssp/kerberos/bin:/usr/lpp/ssp
> > > /r
> > >
cmd/bin:/usr/vac/bin:/usr/local/bin:/usr/local/exelis/idl/bin:.:/hom
> > > e/ qcteam/bin:/home/qcteam/:/h/WXQC/bin/
> > >
> > >
> > > So why is MET trying to go to: /usr/local/share/met?
> > >
> > > Thanks
> > > Bob Craig
> > >
> > >
> >
> >
> >
> >
>
>
>
>
------------------------------------------------
Subject: RE: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET Compile Issue
From: robert.craig.2 at us.af.mil
Time: Wed Jun 26 13:31:09 2019
Julie I got MET to compile. I think I have enough information to walk
our CM people through a compile. One thing I am still unsure about -
once all the libraries have been compiled once, can I tar them up and
provide to CM or do they all or some of them need to be recompiled
before each MET build? I would think I only need to recompile them if
they change but want to confirm.
Thanks
Bob
-----Original Message-----
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Tuesday, June 25, 2019 3:50 PM
To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
<robert.craig.2 at us.af.mil>
Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET Compile
Issue
Great! I'm glad to hear we're making progress and you were able to
get by the NetCDF portion.
/usr/bin/ld: cannot find -ljasper
>
is telling us that the jasper library cannot be found. The GRIB2 C-
Library requires the zlib, jasper, and png libraries. I typically
install these manually, but you don't have to if they're already
installed on your system, as you can tell the GRIB2 C-Library using
"INC" in the makefile where to find the libraries it needs.
Below is a link to our instructions for compiling this library (Search
for "Compiling GRIB2 C-Library"):
https://dtcenter.org/met-online-tutorial-metv8-0/tutorial-
setup/compilation/required-libraries
If you need further assistance with compiling the GRIB2 C-Library or
any of its supporting libraries, please let me know. I can send you
the instructions that I use to compile these if you'd like.
Julie
On Tue, Jun 25, 2019 at 2:17 PM robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
>
> Julie, your advice allowed me to compile NETCDF and when I tried to
> compile MET, I got past the NETCDF portion. However, it stop with
the
> following error:
>
> mv -f .deps/ensemble_stat-ensemble_stat_conf_info.Tpo
> .deps/ensemble_stat-ensemble_stat_conf_info.Po
> /usr/bin/g++ -g -L../../../../src/basic/vx_cal
> -L../../../../src/basic/vx_config -L../../../../src/basic/vx_log
> -L../../../../src/basic/vx_math -L../../../../src/basic/vx_util
> -L../../../../src/libcode/vx_afm
> -L../../../../src/libcode/vx_analysis_util
> -L../../../../src/libcode/vx_color
-L../../../../src/libcode/vx_data2d
> -L../../../../src/libcode/vx_data2d_factory
> -L../../../../src/libcode/vx_data2d_grib
> -L../../../../src/libcode/vx_data2d_grib2
> -L../../../../src/libcode/vx_data2d_nccf
> -L../../../../src/libcode/vx_data2d_nc_met
> -L../../../../src/libcode/vx_data2d_nc_pinterp
> -L../../../../src/libcode/vx_data2d_python
> -L../../../../src/libcode/vx_python_utils
> -L../../../../src/libcode/vx_geodesy
-L../../../../src/libcode/vx_gis
> -L../../../../src/libcode/vx_gnomon
-L../../../../src/libcode/vx_grid
> -L../../../../src/libcode/vx_gsl_prob
-L../../../../src/libcode/vx_nav
> -L../../../../src/libcode/vx_nc_obs
> -L../../../../src/libcode/vx_nc_util
> -L../../../../src/libcode/vx_pb_util -!
> L../../../../src/libcode/vx_plot_util
-L../../../../src/libcode/vx_ps
> -L../../../../src/libcode/vx_pxm -L../../../../src/libcode/vx_render
> -L../../../../src/libcode/vx_regrid
> -L../../../../src/libcode/vx_shapedata
> -L../../../../src/libcode/vx_solar
> -L../../../../src/libcode/vx_statistics
> -L../../../../src/libcode/vx_stat_out
> -L../../../../src/libcode/vx_summary
> -L../../../../src/libcode/vx_time_series
> -L../../../../src/libcode/vx_tc_util
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/jasper/lib
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/libpng-1.2.34/lib
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/lib
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-1.8.18/lib
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-1.4.0
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15/lib
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-2-3
> -L/h/WXQC/met-8.1_test/met-8.1/external_libs/HDF4.2.12/lib
> -L/h/WXQC/met-8.1_tes!
> t/met-8.1/external_libs/hdfeos/lib -o ensemble_stat ensemble_s!
> tat-ensem
> ble_stat.o ensemble_stat-ensemble_stat_conf_info.o -lvx_stat_out
> -lvx_statistics -lvx_shapedata -lvx_gsl_prob -lvx_analysis_util
> -lvx_data2d_factory -lvx_data2d_nc_met -lvx_data2d_grib
> -lvx_data2d_grib2 -lgrib2c -ljasper -lpng -lz -lvx_data2d_nc_pinterp
> -lvx_data2d_nccf -lvx_data2d -lvx_nc_obs -lvx_nc_util -lvx_regrid
> -lvx_grid -lvx_config -lvx_cal -lvx_util -lvx_math -lvx_color
-lvx_log
> -lm -lnetcdf_c++4 -lnetcdf -lgsl -lgslcblas
> /usr/bin/ld: cannot find -ljasper
> collect2: ld returned 1 exit status
> make[4]: *** [ensemble_stat] Error 1
> make[4]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/src/tools/core/ensemble_stat'
> make[3]: *** [install-recursive] Error 1
> make[3]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/src/tools/core'
> make[2]: *** [install-recursive] Error 1
> make[2]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/src/tools'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/src'
> make: *** [install-recursive] Error 1
>
> I have a jasper directory but it is empty. What is causing this
issue?
>
> Thanks
> Bob
>
> -----Original Message-----
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Tuesday, June 25, 2019 2:14 PM
> To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> <robert.craig.2 at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET
Compile
> Issue
>
> Hi Bob.
>
> I see you're having some trouble compiling the NETCDF library.
>
> The error you received:
>
> > error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared (first use in this
> > function)
> >
> makes me think that NetCDF can't find a header file for HDF5.
>
> I see that you set CPPFLAGS and LDFLAGS when you configured NetCDF,
> which is what I was going to suggest. You used
> /h/WXQC/met-8.1_test/met-8.1/external_libs/lib and
> /h/WXQC/met-8.1_test/met-8.1/external_libs/include for the
locations.
> Are your HDF5 library and include files in those locations,
> respectively? If not, you'll want to point CPPFLAGS and LDFLAGS to
> the location where the
> HDF5 include and library files are.
>
> Also, you mentioned:
>
> > 1) ensured $MET_NETCDF points to
> > /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1
> >
> To be clear, you'll want the NetCDF-C and NetCDF-CXX library and
> include files in the same place. For example,
> /h/WXQC/met-8.1_test/met-8.1/external_libs/lib and
> /h/WXQC/met-8.1_test/met-8.1/external_libs/include would be
> appropriate locations. And, in that case, you would want to set
> MET_NETCDF to /h/WXQC/met-8.1_test/met-8.1/external_libs/, so that
MET
> can access all of the NetCDF library files in the *lib *subdirectory
> and all of the NetCDF include files in the *include* subdirectory.
>
> I hope that helps.
>
> Thanks,
> Julie
>
> On Tue, Jun 25, 2019 at 10:27 AM robert.craig.2 at us.af.mil via RT <
> met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
> >
> > Thanks, I think my problem was not doing a make clean. We
continue
> > to have problems with MET finding the netcdf libraries. Under
> > met-8.1, I have an external_libs directory. Under that directory
is a
> > netcdf-c-4.4.1.1/lib and netcdf-c-4.4.1.1/include. I compiled
ZLIB and
> > HDF5 first with no errors. Next I did the following:
> > 1) ensured $MET_NETCDF points to
> > /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1 and
> > $MET_LIB_DIR is /h/WXQC/met-8.1_test/met-8.1
> > 2) ./configure --prefix=${MET_LIB_DIR}/external_libs
> > LDFLAGS=-L${MET_LIB_DIR}/external_libs/lib
> > CPPFLAGS=-I${MET_LIB_DIR}/external_libs/include
> > 3) make install
> >
> > The compile ends with this error:
> >
> > mv -f .deps/libnetcdf4_la-nc4dim.Tpo .deps/libnetcdf4_la-
nc4dim.Plo
> > /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc
> -DHAVE_CONFIG_H
> > -I. -I.. -I../include -I../oc2
> > -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include -MT
> > libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-
nc4file.Tpo
> > -c -o libnetcdf4_la-nc4file.lo `test -f 'nc4file.c' || echo
> > './'`nc4file.c
> > libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
> > -I../include
> > -I../oc2 -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include -MT
> > libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-
nc4file.Tpo
> > -c nc4file.c -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
> > nc4file.c: In function ‘nc4_open_file’:
> > nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared
(first
> > use in this function)
> > nc4file.c:2316: error: (Each undeclared identifier is reported
only
> > once
> > nc4file.c:2316: error: for each function it appears in.)
> > nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_RELEASE’ undeclared
> > (first use in this function)
> > make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> > make[1]: Leaving directory
> >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1.1/libsrc4'
> > make: *** [install-recursive] Error 1
> >
> > Does the NETCDF-CXX need to be compiled before NETCDF C? Any
ideas what
> > could be wrong or missing?
> >
> > Thanks
> > Bob
> >
> > -----Original Message-----
> > From: John Halley Gotway via RT <met_help at ucar.edu>
> > Sent: Monday, June 24, 2019 5:22 PM
> > To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> > <robert.craig.2 at us.af.mil>
> > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET Compile
> > Issue
> >
> > Bob,
> >
> > MET uses the autoconf package to install software. And you build
> > MET by running the "configure" command followed by "make install
test".
> > By default, autoconf tries to install software into /usr/local.
The
> > executables are installed into /usr/local/bin and the files need
at
> > runtime are installed into /usr/local/share/met. However,
typically
> > only root has write permission in /usr/local. Attempting to
install
> > it in /usr/local would result in the error you're getting.
> >
> > The fix is very easy. When you run the "configure" command, just
> > use the "--prefix=/path/to/install/dir" option, where
"path/to/install/dir"
> > specifies the installation directory for the MET executables and
> > runtime files. Obviously, replace "path/to/install/dir" with a
real
> > path that actually exists on your machine. During development, I
> > usually just install it into the same directory as where the code
lives:
> >
> > ./configure --prefix=`pwd` --enable-grib2 --enable-modis
> > --enable-mode_graphics --enable-lidar2nc --enable-python
> >
> > That back-tick pwd back-tick just substitutes in the current
working
> > directory. But it's totally up to you where you want to install
it.
> >
> > Thanks,
> > John
> >
> > On Mon, Jun 24, 2019 at 2:37 PM robert.craig.2 at us.af.mil via RT <
> > met_help at ucar.edu> wrote:
> >
> > >
> > > Mon Jun 24 14:37:30 2019: Request 90790 was acted upon.
> > > Transaction: Ticket created by robert.craig.2 at us.af.mil
> > > Queue: met_help
> > > Subject: MET Compile Issue
> > > Owner: Nobody
> > > Requestors: robert.craig.2 at us.af.mil
> > > Status: new
> > > Ticket <URL:
> > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790
> > > >
> > >
> > >
> > > John, or whom it may concern, to get MET 8.1 onto our production
> > > system, our CM function has to be able to compile MET. I helped
> > > them set up the library directory like we have it set and the
> > > environmental variables as we have set, but it keeps having
> > > problems with the NETCDF library. So in an effort to try to
> > > duplicate there problem, I decide to set up a new MET directory
> > > and tried to duplicate his error to try to narrow it down. I
have
> > > set up the env variables as we have in our working version
expect
> > > pointing to the new libs directory. When I try to compile I get
the following error:
> > >
> > > Making install in data
> > > make[1]: Entering directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data'
> > > Making install in colortables
> > > make[2]: Entering directory
> > > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > > Making install in NCL_colortables
> > > make[3]: Entering directory
> > >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > make[4]: Entering directory
> > >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > make[4]: Nothing to be done for `install-exec-am'.
> > > /bin/mkdir -p '/usr/local/share/met/colortables/NCL_colortables'
> > > /bin/mkdir: cannot create directory `/usr/local/share/met':
> > > Permission denied
> > > make[4]: *** [install-nclctableDATA] Error 1
> > > make[4]: Leaving directory
> > >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > make[3]: *** [install-am] Error 2
> > > make[3]: Leaving directory
> > >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > make[2]: *** [install-recursive] Error 1
> > > make[2]: Leaving directory
> > > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > > make[1]: *** [install-recursive] Error 1
> > > make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data'
> > > make: *** [install-recursive] Error 1
> > >
> > > My env variables are set by the following:
> > >
> > > export MET_LIB_DIR=/h/WXQC/met-8.1_test/met-8.1
> > > export
> > > MET_NETCDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4
> > > .1
> > > .1
> > > export
> > > BUFR_BASE=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10-2
> > > -3 export
> > > GSL_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> > > export
> > > MET_BUFR=/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-
2-
> > > 3 export
> > > MET_GSL=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> > > export
> > > MET_GRIB2C=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.0
> > > export
> > > MET_GRIB2CINC=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.
> > > 0
> > > export
> > > MET_GRIB2CLIB=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.
> > > 0
> > > export
> > > MET_BUFRLIB=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10
> > > -2
> > > -3
> > > export
> > > LDFLAGS='-L/h/WXQC/met-8.1_test/met-8.1/external_libs/jasper/lib
> > > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
> > > -L/h/WXQC /met-8.1_test/met-8.1/external_libs/libpng-1.2.34/lib'
> > > export
> > > LD_LIBRARY_PATH=/gpfs/lsf/9.1/linux2.6-glibc2.3-
x86_64/lib:/usr/mp
> > > i/ gc
> > > c/openmpi-1.8.4/lib64:/h/WXQC/met-8.1_test/met-8.1/external_libs
> > >
> > > /gsl-1.15/lib:/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-
c-4.4.
> > > 1.1/lib export
> > > MET_HDFEOS=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdfeos
> > > export
> > > MET_HDF5=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-1.8.18
> > > export
> > > MET_HDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/HDF4.2.12
> > > export FC=/usr/bin/gfortran
> > > export F77=/usr/bin/gfortran
> > > export CC=/usr/bin/gcc
> > > export CXX=/usr/bin/g++
> > >
> > > and the path is:
> > > [1550 qcteam DEV9 /h/WXQC/met-8.1_test/met-8.1 -]> print $PATH
> > >
> > > /gpfs/lsf/10.1/linux2.6-glibc2.3-
x86_64/etc:/gpfs/lsf/10.1/linux2.
> > > 6-
> > > gl
> > > ibc2.3-x86_64/bin:/h/WXQC/met-8.1_test/met-
8.1/external_libs:/gpfs
> > > /s
> > > ha
> > >
red/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.
> > > 18
> > >
1/linux/bin/intel64:/gpfs/shared/intel/parallel_studio_xe_2016_u2/
> > > co
> > > mp
> > >
ilers_and_libraries_2016.2.181/linux/mpi/intel64/bin:/gpfs/shared/
> > > in
> > > te
> > >
l/parallel_studio_xe_2016_u2/debugger_2016/gdb/intel64_mic/bin:/gp
> > > fs
> > > /p
> > > ython/python-3.4/bin:/opt/rh/rh-
python36/root/usr/bin/python3/bin:
> > > /s
> > > bi
> > >
n:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/opt/clustertest/bin:/op
> > > t/
> > > cu
> > >
da/bin:/opt/cuda/samples/bin/x86_64/linux/release:/opt/cuda/C/NVID
> > > IA
> > > _C
> > > UDA-
5.5_Samples/bin/x86_64/linux/release:/opt/ibutils/bin:/usr/lpp
> > > /s
> > > sp
> > >
/bin:/usr/lpp/ssp/install/bin:/usr/lpp/ssp/kerberos/bin:/usr/lpp/s
> > > sp
> > > /r
> > >
cmd/bin:/usr/vac/bin:/usr/local/bin:/usr/local/exelis/idl/bin:.:/h
> > > om e/ qcteam/bin:/home/qcteam/:/h/WXQC/bin/
> > >
> > >
> > > So why is MET trying to go to: /usr/local/share/met?
> > >
> > > Thanks
> > > Bob Craig
> > >
> > >
> >
> >
> >
> >
>
>
>
>
------------------------------------------------
Subject: MET Compile Issue
From: Julie Prestopnik
Time: Wed Jun 26 13:39:49 2019
Hi Bob. Great news! I'm happy to hear that you got everything to
compile.
One thing I am still unsure about - once all the libraries have been
> compiled once, can I tar them up and provide to CM or do they all or
some
> of them need to be recompiled before each MET build?
>
I am unsure. I have never tried that. You could try it. It may or
may not
work. On WCOSS, I give the admins one script to run to install all of
the
libraries and MET from scratch and they use that for each install.
Each
WCOSS machine is slightly different, so sometimes the script needs
some
tweaks based on the machine.
I hope that helps.
Julie
On Wed, Jun 26, 2019 at 1:31 PM robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
>
> Julie I got MET to compile. I think I have enough information to
walk our
> CM people through a compile. One thing I am still unsure about -
once all
> the libraries have been compiled once, can I tar them up and provide
to CM
> or do they all or some of them need to be recompiled before each MET
> build? I would think I only need to recompile them if they change
but want
> to confirm.
>
> Thanks
> Bob
>
>
> -----Original Message-----
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Tuesday, June 25, 2019 3:50 PM
> To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
<robert.craig.2 at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET
Compile
> Issue
>
> Great! I'm glad to hear we're making progress and you were able to
get by
> the NetCDF portion.
>
> /usr/bin/ld: cannot find -ljasper
> >
>
> is telling us that the jasper library cannot be found. The GRIB2
> C-Library requires the zlib, jasper, and png libraries. I typically
> install these manually, but you don't have to if they're already
installed
> on your system, as you can tell the GRIB2 C-Library using "INC" in
the
> makefile where to find the libraries it needs.
>
> Below is a link to our instructions for compiling this library
(Search for
> "Compiling GRIB2 C-Library"):
>
> https://dtcenter.org/met-online-tutorial-metv8-0/tutorial-
setup/compilation/required-libraries
>
> If you need further assistance with compiling the GRIB2 C-Library or
any
> of its supporting libraries, please let me know. I can send you the
> instructions that I use to compile these if you'd like.
>
> Julie
>
> On Tue, Jun 25, 2019 at 2:17 PM robert.craig.2 at us.af.mil via RT <
> met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
> >
> > Julie, your advice allowed me to compile NETCDF and when I tried
to
> > compile MET, I got past the NETCDF portion. However, it stop with
the
> > following error:
> >
> > mv -f .deps/ensemble_stat-ensemble_stat_conf_info.Tpo
> > .deps/ensemble_stat-ensemble_stat_conf_info.Po
> > /usr/bin/g++ -g -L../../../../src/basic/vx_cal
> > -L../../../../src/basic/vx_config -L../../../../src/basic/vx_log
> > -L../../../../src/basic/vx_math -L../../../../src/basic/vx_util
> > -L../../../../src/libcode/vx_afm
> > -L../../../../src/libcode/vx_analysis_util
> > -L../../../../src/libcode/vx_color
-L../../../../src/libcode/vx_data2d
> > -L../../../../src/libcode/vx_data2d_factory
> > -L../../../../src/libcode/vx_data2d_grib
> > -L../../../../src/libcode/vx_data2d_grib2
> > -L../../../../src/libcode/vx_data2d_nccf
> > -L../../../../src/libcode/vx_data2d_nc_met
> > -L../../../../src/libcode/vx_data2d_nc_pinterp
> > -L../../../../src/libcode/vx_data2d_python
> > -L../../../../src/libcode/vx_python_utils
> > -L../../../../src/libcode/vx_geodesy
-L../../../../src/libcode/vx_gis
> > -L../../../../src/libcode/vx_gnomon
-L../../../../src/libcode/vx_grid
> > -L../../../../src/libcode/vx_gsl_prob
-L../../../../src/libcode/vx_nav
> > -L../../../../src/libcode/vx_nc_obs
> > -L../../../../src/libcode/vx_nc_util
> > -L../../../../src/libcode/vx_pb_util -!
> > L../../../../src/libcode/vx_plot_util
-L../../../../src/libcode/vx_ps
> > -L../../../../src/libcode/vx_pxm
-L../../../../src/libcode/vx_render
> > -L../../../../src/libcode/vx_regrid
> > -L../../../../src/libcode/vx_shapedata
> > -L../../../../src/libcode/vx_solar
> > -L../../../../src/libcode/vx_statistics
> > -L../../../../src/libcode/vx_stat_out
> > -L../../../../src/libcode/vx_summary
> > -L../../../../src/libcode/vx_time_series
> > -L../../../../src/libcode/vx_tc_util
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/jasper/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/libpng-1.2.34/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-1.8.18/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-1.4.0
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-2-3
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/HDF4.2.12/lib
> > -L/h/WXQC/met-8.1_tes!
> > t/met-8.1/external_libs/hdfeos/lib -o ensemble_stat ensemble_s!
> > tat-ensem
> > ble_stat.o ensemble_stat-ensemble_stat_conf_info.o -lvx_stat_out
> > -lvx_statistics -lvx_shapedata -lvx_gsl_prob -lvx_analysis_util
> > -lvx_data2d_factory -lvx_data2d_nc_met -lvx_data2d_grib
> > -lvx_data2d_grib2 -lgrib2c -ljasper -lpng -lz
-lvx_data2d_nc_pinterp
> > -lvx_data2d_nccf -lvx_data2d -lvx_nc_obs -lvx_nc_util -lvx_regrid
> > -lvx_grid -lvx_config -lvx_cal -lvx_util -lvx_math -lvx_color
-lvx_log
> > -lm -lnetcdf_c++4 -lnetcdf -lgsl -lgslcblas
> > /usr/bin/ld: cannot find -ljasper
> > collect2: ld returned 1 exit status
> > make[4]: *** [ensemble_stat] Error 1
> > make[4]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/src/tools/core/ensemble_stat'
> > make[3]: *** [install-recursive] Error 1
> > make[3]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/src/tools/core'
> > make[2]: *** [install-recursive] Error 1
> > make[2]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/src/tools'
> > make[1]: *** [install-recursive] Error 1
> > make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/src'
> > make: *** [install-recursive] Error 1
> >
> > I have a jasper directory but it is empty. What is causing this
issue?
> >
> > Thanks
> > Bob
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Tuesday, June 25, 2019 2:14 PM
> > To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> > <robert.craig.2 at us.af.mil>
> > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET
Compile
> > Issue
> >
> > Hi Bob.
> >
> > I see you're having some trouble compiling the NETCDF library.
> >
> > The error you received:
> >
> > > error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared (first use in this
> > > function)
> > >
> > makes me think that NetCDF can't find a header file for HDF5.
> >
> > I see that you set CPPFLAGS and LDFLAGS when you configured
NetCDF,
> > which is what I was going to suggest. You used
> > /h/WXQC/met-8.1_test/met-8.1/external_libs/lib and
> > /h/WXQC/met-8.1_test/met-8.1/external_libs/include for the
locations.
> > Are your HDF5 library and include files in those locations,
> > respectively? If not, you'll want to point CPPFLAGS and LDFLAGS
to
> > the location where the
> > HDF5 include and library files are.
> >
> > Also, you mentioned:
> >
> > > 1) ensured $MET_NETCDF points to
> > > /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1
> > >
> > To be clear, you'll want the NetCDF-C and NetCDF-CXX library and
> > include files in the same place. For example,
> > /h/WXQC/met-8.1_test/met-8.1/external_libs/lib and
> > /h/WXQC/met-8.1_test/met-8.1/external_libs/include would be
> > appropriate locations. And, in that case, you would want to set
> > MET_NETCDF to /h/WXQC/met-8.1_test/met-8.1/external_libs/, so that
MET
> > can access all of the NetCDF library files in the *lib
*subdirectory
> > and all of the NetCDF include files in the *include* subdirectory.
> >
> > I hope that helps.
> >
> > Thanks,
> > Julie
> >
> > On Tue, Jun 25, 2019 at 10:27 AM robert.craig.2 at us.af.mil via RT <
> > met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
> > >
> > > Thanks, I think my problem was not doing a make clean. We
continue
> > > to have problems with MET finding the netcdf libraries. Under
> > > met-8.1, I have an external_libs directory. Under that
directory is a
> > > netcdf-c-4.4.1.1/lib and netcdf-c-4.4.1.1/include. I compiled
ZLIB
> and
> > > HDF5 first with no errors. Next I did the following:
> > > 1) ensured $MET_NETCDF points to
> > > /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1 and
> > > $MET_LIB_DIR is /h/WXQC/met-8.1_test/met-8.1
> > > 2) ./configure --prefix=${MET_LIB_DIR}/external_libs
> > > LDFLAGS=-L${MET_LIB_DIR}/external_libs/lib
> > > CPPFLAGS=-I${MET_LIB_DIR}/external_libs/include
> > > 3) make install
> > >
> > > The compile ends with this error:
> > >
> > > mv -f .deps/libnetcdf4_la-nc4dim.Tpo .deps/libnetcdf4_la-
nc4dim.Plo
> > > /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc
> > -DHAVE_CONFIG_H
> > > -I. -I.. -I../include -I../oc2
> > > -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include -MT
> > > libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-
nc4file.Tpo
> > > -c -o libnetcdf4_la-nc4file.lo `test -f 'nc4file.c' || echo
> > > './'`nc4file.c
> > > libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
> > > -I../include
> > > -I../oc2 -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include
-MT
> > > libnetcdf4_la-nc4file.lo -MD -MP -MF .deps/libnetcdf4_la-
nc4file.Tpo
> > > -c nc4file.c -fPIC -DPIC -o .libs/libnetcdf4_la-nc4file.o
> > > nc4file.c: In function ‘nc4_open_file’:
> > > nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared
(first
> > > use in this function)
> > > nc4file.c:2316: error: (Each undeclared identifier is reported
only
> > > once
> > > nc4file.c:2316: error: for each function it appears in.)
> > > nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_RELEASE’ undeclared
> > > (first use in this function)
> > > make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> > > make[1]: Leaving directory
> > >
> >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1.1/libsrc4'
> > > make: *** [install-recursive] Error 1
> > >
> > > Does the NETCDF-CXX need to be compiled before NETCDF C? Any
ideas
> what
> > > could be wrong or missing?
> > >
> > > Thanks
> > > Bob
> > >
> > > -----Original Message-----
> > > From: John Halley Gotway via RT <met_help at ucar.edu>
> > > Sent: Monday, June 24, 2019 5:22 PM
> > > To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> > > <robert.craig.2 at us.af.mil>
> > > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET
Compile
> > > Issue
> > >
> > > Bob,
> > >
> > > MET uses the autoconf package to install software. And you
build
> > > MET by running the "configure" command followed by "make install
test".
> > > By default, autoconf tries to install software into /usr/local.
The
> > > executables are installed into /usr/local/bin and the files need
at
> > > runtime are installed into /usr/local/share/met. However,
typically
> > > only root has write permission in /usr/local. Attempting to
install
> > > it in /usr/local would result in the error you're getting.
> > >
> > > The fix is very easy. When you run the "configure" command,
just
> > > use the "--prefix=/path/to/install/dir" option, where
> "path/to/install/dir"
> > > specifies the installation directory for the MET executables and
> > > runtime files. Obviously, replace "path/to/install/dir" with a
real
> > > path that actually exists on your machine. During development,
I
> > > usually just install it into the same directory as where the
code
> lives:
> > >
> > > ./configure --prefix=`pwd` --enable-grib2 --enable-modis
> > > --enable-mode_graphics --enable-lidar2nc --enable-python
> > >
> > > That back-tick pwd back-tick just substitutes in the current
working
> > > directory. But it's totally up to you where you want to install
it.
> > >
> > > Thanks,
> > > John
> > >
> > > On Mon, Jun 24, 2019 at 2:37 PM robert.craig.2 at us.af.mil via RT
<
> > > met_help at ucar.edu> wrote:
> > >
> > > >
> > > > Mon Jun 24 14:37:30 2019: Request 90790 was acted upon.
> > > > Transaction: Ticket created by robert.craig.2 at us.af.mil
> > > > Queue: met_help
> > > > Subject: MET Compile Issue
> > > > Owner: Nobody
> > > > Requestors: robert.craig.2 at us.af.mil
> > > > Status: new
> > > > Ticket <URL:
> > > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790
> > > > >
> > > >
> > > >
> > > > John, or whom it may concern, to get MET 8.1 onto our
production
> > > > system, our CM function has to be able to compile MET. I
helped
> > > > them set up the library directory like we have it set and the
> > > > environmental variables as we have set, but it keeps having
> > > > problems with the NETCDF library. So in an effort to try to
> > > > duplicate there problem, I decide to set up a new MET
directory
> > > > and tried to duplicate his error to try to narrow it down. I
have
> > > > set up the env variables as we have in our working version
expect
> > > > pointing to the new libs directory. When I try to compile I
get the
> following error:
> > > >
> > > > Making install in data
> > > > make[1]: Entering directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data'
> > > > Making install in colortables
> > > > make[2]: Entering directory
> > > > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > > > Making install in NCL_colortables
> > > > make[3]: Entering directory
> > > >
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > > make[4]: Entering directory
> > > >
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > > make[4]: Nothing to be done for `install-exec-am'.
> > > > /bin/mkdir -p
'/usr/local/share/met/colortables/NCL_colortables'
> > > > /bin/mkdir: cannot create directory `/usr/local/share/met':
> > > > Permission denied
> > > > make[4]: *** [install-nclctableDATA] Error 1
> > > > make[4]: Leaving directory
> > > >
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > > make[3]: *** [install-am] Error 2
> > > > make[3]: Leaving directory
> > > >
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > > make[2]: *** [install-recursive] Error 1
> > > > make[2]: Leaving directory
> > > > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > > > make[1]: *** [install-recursive] Error 1
> > > > make[1]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data'
> > > > make: *** [install-recursive] Error 1
> > > >
> > > > My env variables are set by the following:
> > > >
> > > > export MET_LIB_DIR=/h/WXQC/met-8.1_test/met-8.1
> > > > export
> > > > MET_NETCDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-
c-4.4
> > > > .1
> > > > .1
> > > > export
> > > > BUFR_BASE=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10-2
> > > > -3 export
> > > > GSL_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> > > > export
> > > > MET_BUFR=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10-2-
> > > > 3 export
> > > > MET_GSL=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> > > > export
> > > > MET_GRIB2C=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4.0
> > > > export
> > > > MET_GRIB2CINC=/h/WXQC/met-8.1_test/met-
8.1/external_libs/g2clib-1.4.
> > > > 0
> > > > export
> > > > MET_GRIB2CLIB=/h/WXQC/met-8.1_test/met-
8.1/external_libs/g2clib-1.4.
> > > > 0
> > > > export
> > > > MET_BUFRLIB=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10
> > > > -2
> > > > -3
> > > > export
> > > > LDFLAGS='-L/h/WXQC/met-8.1_test/met-
8.1/external_libs/jasper/lib
> > > > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
> > > > -L/h/WXQC /met-8.1_test/met-8.1/external_libs/libpng-
1.2.34/lib'
> > > > export
> > > > LD_LIBRARY_PATH=/gpfs/lsf/9.1/linux2.6-glibc2.3-
x86_64/lib:/usr/mp
> > > > i/ gc
> > > > c/openmpi-1.8.4/lib64:/h/WXQC/met-8.1_test/met-
8.1/external_libs
> > > >
> > > >
> /gsl-1.15/lib:/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.
> > > > 1.1/lib export
> > > > MET_HDFEOS=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdfeos
> > > > export
> > > > MET_HDF5=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-
1.8.18
> > > > export
> > > > MET_HDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/HDF4.2.12
> > > > export FC=/usr/bin/gfortran
> > > > export F77=/usr/bin/gfortran
> > > > export CC=/usr/bin/gcc
> > > > export CXX=/usr/bin/g++
> > > >
> > > > and the path is:
> > > > [1550 qcteam DEV9 /h/WXQC/met-8.1_test/met-8.1 -]> print $PATH
> > > >
> > > > /gpfs/lsf/10.1/linux2.6-glibc2.3-
x86_64/etc:/gpfs/lsf/10.1/linux2.
> > > > 6-
> > > > gl
> > > > ibc2.3-x86_64/bin:/h/WXQC/met-8.1_test/met-
8.1/external_libs:/gpfs
> > > > /s
> > > > ha
> > > >
red/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.
> > > > 18
> > > >
1/linux/bin/intel64:/gpfs/shared/intel/parallel_studio_xe_2016_u2/
> > > > co
> > > > mp
> > > >
ilers_and_libraries_2016.2.181/linux/mpi/intel64/bin:/gpfs/shared/
> > > > in
> > > > te
> > > >
l/parallel_studio_xe_2016_u2/debugger_2016/gdb/intel64_mic/bin:/gp
> > > > fs
> > > > /p
> > > > ython/python-3.4/bin:/opt/rh/rh-
python36/root/usr/bin/python3/bin:
> > > > /s
> > > > bi
> > > >
n:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/opt/clustertest/bin:/op
> > > > t/
> > > > cu
> > > >
da/bin:/opt/cuda/samples/bin/x86_64/linux/release:/opt/cuda/C/NVID
> > > > IA
> > > > _C
> > > > UDA-
5.5_Samples/bin/x86_64/linux/release:/opt/ibutils/bin:/usr/lpp
> > > > /s
> > > > sp
> > > >
/bin:/usr/lpp/ssp/install/bin:/usr/lpp/ssp/kerberos/bin:/usr/lpp/s
> > > > sp
> > > > /r
> > > >
cmd/bin:/usr/vac/bin:/usr/local/bin:/usr/local/exelis/idl/bin:.:/h
> > > > om e/ qcteam/bin:/home/qcteam/:/h/WXQC/bin/
> > > >
> > > >
> > > > So why is MET trying to go to: /usr/local/share/met?
> > > >
> > > > Thanks
> > > > Bob Craig
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>
------------------------------------------------
Subject: RE: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET Compile Issue
From: robert.craig.2 at us.af.mil
Time: Wed Jun 26 13:59:42 2019
Okay, I will probably go that route as well.
Thanks
-----Original Message-----
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Wednesday, June 26, 2019 2:40 PM
To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
<robert.craig.2 at us.af.mil>
Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET Compile
Issue
Hi Bob. Great news! I'm happy to hear that you got everything to
compile.
One thing I am still unsure about - once all the libraries have been
> compiled once, can I tar them up and provide to CM or do they all or
> some of them need to be recompiled before each MET build?
>
I am unsure. I have never tried that. You could try it. It may or
may not work. On WCOSS, I give the admins one script to run to
install all of the libraries and MET from scratch and they use that
for each install. Each WCOSS machine is slightly different, so
sometimes the script needs some tweaks based on the machine.
I hope that helps.
Julie
On Wed, Jun 26, 2019 at 1:31 PM robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
>
> Julie I got MET to compile. I think I have enough information to
walk
> our CM people through a compile. One thing I am still unsure about
-
> once all the libraries have been compiled once, can I tar them up
and
> provide to CM or do they all or some of them need to be recompiled
> before each MET build? I would think I only need to recompile them
if
> they change but want to confirm.
>
> Thanks
> Bob
>
>
> -----Original Message-----
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Tuesday, June 25, 2019 3:50 PM
> To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> <robert.craig.2 at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET
Compile
> Issue
>
> Great! I'm glad to hear we're making progress and you were able to
> get by the NetCDF portion.
>
> /usr/bin/ld: cannot find -ljasper
> >
>
> is telling us that the jasper library cannot be found. The GRIB2
> C-Library requires the zlib, jasper, and png libraries. I typically
> install these manually, but you don't have to if they're already
> installed on your system, as you can tell the GRIB2 C-Library using
> "INC" in the makefile where to find the libraries it needs.
>
> Below is a link to our instructions for compiling this library
(Search
> for "Compiling GRIB2 C-Library"):
>
> https://dtcenter.org/met-online-tutorial-metv8-0/tutorial-
setup/compil
> ation/required-libraries
>
> If you need further assistance with compiling the GRIB2 C-Library or
> any of its supporting libraries, please let me know. I can send you
> the instructions that I use to compile these if you'd like.
>
> Julie
>
> On Tue, Jun 25, 2019 at 2:17 PM robert.craig.2 at us.af.mil via RT <
> met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
> >
> > Julie, your advice allowed me to compile NETCDF and when I tried
to
> > compile MET, I got past the NETCDF portion. However, it stop with
> > the following error:
> >
> > mv -f .deps/ensemble_stat-ensemble_stat_conf_info.Tpo
> > .deps/ensemble_stat-ensemble_stat_conf_info.Po
> > /usr/bin/g++ -g -L../../../../src/basic/vx_cal
> > -L../../../../src/basic/vx_config -L../../../../src/basic/vx_log
> > -L../../../../src/basic/vx_math -L../../../../src/basic/vx_util
> > -L../../../../src/libcode/vx_afm
> > -L../../../../src/libcode/vx_analysis_util
> > -L../../../../src/libcode/vx_color
> > -L../../../../src/libcode/vx_data2d
> > -L../../../../src/libcode/vx_data2d_factory
> > -L../../../../src/libcode/vx_data2d_grib
> > -L../../../../src/libcode/vx_data2d_grib2
> > -L../../../../src/libcode/vx_data2d_nccf
> > -L../../../../src/libcode/vx_data2d_nc_met
> > -L../../../../src/libcode/vx_data2d_nc_pinterp
> > -L../../../../src/libcode/vx_data2d_python
> > -L../../../../src/libcode/vx_python_utils
> > -L../../../../src/libcode/vx_geodesy
> > -L../../../../src/libcode/vx_gis
-L../../../../src/libcode/vx_gnomon
> > -L../../../../src/libcode/vx_grid
> > -L../../../../src/libcode/vx_gsl_prob
> > -L../../../../src/libcode/vx_nav
-L../../../../src/libcode/vx_nc_obs
> > -L../../../../src/libcode/vx_nc_util
> > -L../../../../src/libcode/vx_pb_util -!
> > L../../../../src/libcode/vx_plot_util
> > -L../../../../src/libcode/vx_ps -L../../../../src/libcode/vx_pxm
> > -L../../../../src/libcode/vx_render
> > -L../../../../src/libcode/vx_regrid
> > -L../../../../src/libcode/vx_shapedata
> > -L../../../../src/libcode/vx_solar
> > -L../../../../src/libcode/vx_statistics
> > -L../../../../src/libcode/vx_stat_out
> > -L../../../../src/libcode/vx_summary
> > -L../../../../src/libcode/vx_time_series
> > -L../../../../src/libcode/vx_tc_util
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/jasper/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/libpng-1.2.34/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-1.8.18/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-1.4.0
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15/lib
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-2-3
> > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/HDF4.2.12/lib
> > -L/h/WXQC/met-8.1_tes!
> > t/met-8.1/external_libs/hdfeos/lib -o ensemble_stat ensemble_s!
> > tat-ensem
> > ble_stat.o ensemble_stat-ensemble_stat_conf_info.o -lvx_stat_out
> > -lvx_statistics -lvx_shapedata -lvx_gsl_prob -lvx_analysis_util
> > -lvx_data2d_factory -lvx_data2d_nc_met -lvx_data2d_grib
> > -lvx_data2d_grib2 -lgrib2c -ljasper -lpng -lz
-lvx_data2d_nc_pinterp
> > -lvx_data2d_nccf -lvx_data2d -lvx_nc_obs -lvx_nc_util -lvx_regrid
> > -lvx_grid -lvx_config -lvx_cal -lvx_util -lvx_math -lvx_color
> > -lvx_log -lm -lnetcdf_c++4 -lnetcdf -lgsl -lgslcblas
> > /usr/bin/ld: cannot find -ljasper
> > collect2: ld returned 1 exit status
> > make[4]: *** [ensemble_stat] Error 1
> > make[4]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/src/tools/core/ensemble_stat'
> > make[3]: *** [install-recursive] Error 1
> > make[3]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/src/tools/core'
> > make[2]: *** [install-recursive] Error 1
> > make[2]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/src/tools'
> > make[1]: *** [install-recursive] Error 1
> > make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/src'
> > make: *** [install-recursive] Error 1
> >
> > I have a jasper directory but it is empty. What is causing this
issue?
> >
> > Thanks
> > Bob
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Tuesday, June 25, 2019 2:14 PM
> > To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> > <robert.craig.2 at us.af.mil>
> > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET
> > Compile Issue
> >
> > Hi Bob.
> >
> > I see you're having some trouble compiling the NETCDF library.
> >
> > The error you received:
> >
> > > error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared (first use in this
> > > function)
> > >
> > makes me think that NetCDF can't find a header file for HDF5.
> >
> > I see that you set CPPFLAGS and LDFLAGS when you configured
NetCDF,
> > which is what I was going to suggest. You used
> > /h/WXQC/met-8.1_test/met-8.1/external_libs/lib and
> > /h/WXQC/met-8.1_test/met-8.1/external_libs/include for the
locations.
> > Are your HDF5 library and include files in those locations,
> > respectively? If not, you'll want to point CPPFLAGS and LDFLAGS
to
> > the location where the
> > HDF5 include and library files are.
> >
> > Also, you mentioned:
> >
> > > 1) ensured $MET_NETCDF points to
> > > /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1
> > >
> > To be clear, you'll want the NetCDF-C and NetCDF-CXX library and
> > include files in the same place. For example,
> > /h/WXQC/met-8.1_test/met-8.1/external_libs/lib and
> > /h/WXQC/met-8.1_test/met-8.1/external_libs/include would be
> > appropriate locations. And, in that case, you would want to set
> > MET_NETCDF to /h/WXQC/met-8.1_test/met-8.1/external_libs/, so that
> > MET can access all of the NetCDF library files in the *lib
> > *subdirectory and all of the NetCDF include files in the *include*
subdirectory.
> >
> > I hope that helps.
> >
> > Thanks,
> > Julie
> >
> > On Tue, Jun 25, 2019 at 10:27 AM robert.craig.2 at us.af.mil via RT <
> > met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
> > >
> > > Thanks, I think my problem was not doing a make clean. We
> > > continue to have problems with MET finding the netcdf libraries.
> > > Under met-8.1, I have an external_libs directory. Under that
directory is a
> > > netcdf-c-4.4.1.1/lib and netcdf-c-4.4.1.1/include. I compiled
ZLIB
> and
> > > HDF5 first with no errors. Next I did the following:
> > > 1) ensured $MET_NETCDF points to
> > > /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1 and
> > > $MET_LIB_DIR is /h/WXQC/met-8.1_test/met-8.1
> > > 2) ./configure --prefix=${MET_LIB_DIR}/external_libs
> > > LDFLAGS=-L${MET_LIB_DIR}/external_libs/lib
> > > CPPFLAGS=-I${MET_LIB_DIR}/external_libs/include
> > > 3) make install
> > >
> > > The compile ends with this error:
> > >
> > > mv -f .deps/libnetcdf4_la-nc4dim.Tpo .deps/libnetcdf4_la-
nc4dim.Plo
> > > /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc
> > -DHAVE_CONFIG_H
> > > -I. -I.. -I../include -I../oc2
> > > -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include -MT
> > > libnetcdf4_la-nc4file.lo -MD -MP -MF
> > > .deps/libnetcdf4_la-nc4file.Tpo -c -o libnetcdf4_la-nc4file.lo
> > > `test -f 'nc4file.c' || echo './'`nc4file.c
> > > libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
> > > -I../include
> > > -I../oc2 -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include
-MT
> > > libnetcdf4_la-nc4file.lo -MD -MP -MF
> > > .deps/libnetcdf4_la-nc4file.Tpo -c nc4file.c -fPIC -DPIC -o
> > > .libs/libnetcdf4_la-nc4file.o
> > > nc4file.c: In function ‘nc4_open_file’:
> > > nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared
> > > (first use in this function)
> > > nc4file.c:2316: error: (Each undeclared identifier is reported
> > > only once
> > > nc4file.c:2316: error: for each function it appears in.)
> > > nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_RELEASE’ undeclared
> > > (first use in this function)
> > > make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> > > make[1]: Leaving directory
> > >
> >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1.1/libsrc4'
> > > make: *** [install-recursive] Error 1
> > >
> > > Does the NETCDF-CXX need to be compiled before NETCDF C? Any
ideas
> what
> > > could be wrong or missing?
> > >
> > > Thanks
> > > Bob
> > >
> > > -----Original Message-----
> > > From: John Halley Gotway via RT <met_help at ucar.edu>
> > > Sent: Monday, June 24, 2019 5:22 PM
> > > To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> > > <robert.craig.2 at us.af.mil>
> > > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET
Compile
> > > Issue
> > >
> > > Bob,
> > >
> > > MET uses the autoconf package to install software. And you
build
> > > MET by running the "configure" command followed by "make install
test".
> > > By default, autoconf tries to install software into /usr/local.
> > > The executables are installed into /usr/local/bin and the files
> > > need at runtime are installed into /usr/local/share/met.
However,
> > > typically only root has write permission in /usr/local.
> > > Attempting to install it in /usr/local would result in the error
you're getting.
> > >
> > > The fix is very easy. When you run the "configure" command,
just
> > > use the "--prefix=/path/to/install/dir" option, where
> "path/to/install/dir"
> > > specifies the installation directory for the MET executables and
> > > runtime files. Obviously, replace "path/to/install/dir" with a
> > > real path that actually exists on your machine. During
> > > development, I usually just install it into the same directory
as
> > > where the code
> lives:
> > >
> > > ./configure --prefix=`pwd` --enable-grib2 --enable-modis
> > > --enable-mode_graphics --enable-lidar2nc --enable-python
> > >
> > > That back-tick pwd back-tick just substitutes in the current
> > > working directory. But it's totally up to you where you want to
install it.
> > >
> > > Thanks,
> > > John
> > >
> > > On Mon, Jun 24, 2019 at 2:37 PM robert.craig.2 at us.af.mil via RT
<
> > > met_help at ucar.edu> wrote:
> > >
> > > >
> > > > Mon Jun 24 14:37:30 2019: Request 90790 was acted upon.
> > > > Transaction: Ticket created by robert.craig.2 at us.af.mil
> > > > Queue: met_help
> > > > Subject: MET Compile Issue
> > > > Owner: Nobody
> > > > Requestors: robert.craig.2 at us.af.mil
> > > > Status: new
> > > > Ticket <URL:
> > > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790
> > > > >
> > > >
> > > >
> > > > John, or whom it may concern, to get MET 8.1 onto our
production
> > > > system, our CM function has to be able to compile MET. I
helped
> > > > them set up the library directory like we have it set and the
> > > > environmental variables as we have set, but it keeps having
> > > > problems with the NETCDF library. So in an effort to try to
> > > > duplicate there problem, I decide to set up a new MET
directory
> > > > and tried to duplicate his error to try to narrow it down. I
> > > > have set up the env variables as we have in our working
version
> > > > expect pointing to the new libs directory. When I try to
> > > > compile I get the
> following error:
> > > >
> > > > Making install in data
> > > > make[1]: Entering directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data'
> > > > Making install in colortables
> > > > make[2]: Entering directory
> > > > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > > > Making install in NCL_colortables
> > > > make[3]: Entering directory
> > > >
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > > make[4]: Entering directory
> > > >
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > > make[4]: Nothing to be done for `install-exec-am'.
> > > > /bin/mkdir -p
'/usr/local/share/met/colortables/NCL_colortables'
> > > > /bin/mkdir: cannot create directory `/usr/local/share/met':
> > > > Permission denied
> > > > make[4]: *** [install-nclctableDATA] Error 1
> > > > make[4]: Leaving directory
> > > >
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > > make[3]: *** [install-am] Error 2
> > > > make[3]: Leaving directory
> > > >
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > > make[2]: *** [install-recursive] Error 1
> > > > make[2]: Leaving directory
> > > > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > > > make[1]: *** [install-recursive] Error 1
> > > > make[1]: Leaving directory
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data'
> > > > make: *** [install-recursive] Error 1
> > > >
> > > > My env variables are set by the following:
> > > >
> > > > export MET_LIB_DIR=/h/WXQC/met-8.1_test/met-8.1
> > > > export
> > > > MET_NETCDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-
c-4
> > > > .4
> > > > .1
> > > > .1
> > > > export
> > > > BUFR_BASE=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10
> > > > -2
> > > > -3 export
> > > > GSL_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> > > > export
> > > > MET_BUFR=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10-
> > > > 2-
> > > > 3 export
> > > > MET_GSL=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> > > > export
> > > > MET_GRIB2C=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-
1.4
> > > > .0
> > > > export
> > > > MET_GRIB2CINC=/h/WXQC/met-8.1_test/met-
8.1/external_libs/g2clib-1.4.
> > > > 0
> > > > export
> > > > MET_GRIB2CLIB=/h/WXQC/met-8.1_test/met-
8.1/external_libs/g2clib-1.4.
> > > > 0
> > > > export
> > > > MET_BUFRLIB=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v
> > > > 10
> > > > -2
> > > > -3
> > > > export
> > > > LDFLAGS='-L/h/WXQC/met-8.1_test/met-
8.1/external_libs/jasper/lib
> > > > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
> > > > -L/h/WXQC /met-8.1_test/met-8.1/external_libs/libpng-
1.2.34/lib'
> > > > export
> > > > LD_LIBRARY_PATH=/gpfs/lsf/9.1/linux2.6-glibc2.3-
x86_64/lib:/usr/
> > > > mp
> > > > i/ gc
> > > > c/openmpi-1.8.4/lib64:/h/WXQC/met-8.1_test/met-
8.1/external_libs
> > > >
> > > >
> /gsl-1.15/lib:/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.
> > > > 1.1/lib export
> > > > MET_HDFEOS=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdfeos
> > > > export
> > > > MET_HDF5=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-
1.8.18
> > > > export
> > > > MET_HDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/HDF4.2.12
> > > > export FC=/usr/bin/gfortran
> > > > export F77=/usr/bin/gfortran
> > > > export CC=/usr/bin/gcc
> > > > export CXX=/usr/bin/g++
> > > >
> > > > and the path is:
> > > > [1550 qcteam DEV9 /h/WXQC/met-8.1_test/met-8.1 -]> print $PATH
> > > >
> > > > /gpfs/lsf/10.1/linux2.6-glibc2.3-
x86_64/etc:/gpfs/lsf/10.1/linux2.
> > > > 6-
> > > > gl
> > > > ibc2.3-x86_64/bin:/h/WXQC/met-8.1_test/met-
8.1/external_libs:/gp
> > > > fs
> > > > /s
> > > > ha
> > > >
red/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.
> > > > 18
> > > >
1/linux/bin/intel64:/gpfs/shared/intel/parallel_studio_xe_2016_u
> > > > 2/
> > > > co
> > > > mp
> > > >
ilers_and_libraries_2016.2.181/linux/mpi/intel64/bin:/gpfs/share
> > > > d/
> > > > in
> > > > te
> > > >
l/parallel_studio_xe_2016_u2/debugger_2016/gdb/intel64_mic/bin:/
> > > > gp
> > > > fs
> > > > /p
> > > > ython/python-3.4/bin:/opt/rh/rh-
python36/root/usr/bin/python3/bin:
> > > > /s
> > > > bi
> > > >
n:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/opt/clustertest/bin:/
> > > > op
> > > > t/
> > > > cu
> > > >
da/bin:/opt/cuda/samples/bin/x86_64/linux/release:/opt/cuda/C/NV
> > > > ID
> > > > IA
> > > > _C
> > > > UDA-
5.5_Samples/bin/x86_64/linux/release:/opt/ibutils/bin:/usr/l
> > > > pp
> > > > /s
> > > > sp
> > > >
/bin:/usr/lpp/ssp/install/bin:/usr/lpp/ssp/kerberos/bin:/usr/lpp
> > > > /s
> > > > sp
> > > > /r
> > > >
cmd/bin:/usr/vac/bin:/usr/local/bin:/usr/local/exelis/idl/bin:.:
> > > > /h om e/ qcteam/bin:/home/qcteam/:/h/WXQC/bin/
> > > >
> > > >
> > > > So why is MET trying to go to: /usr/local/share/met?
> > > >
> > > > Thanks
> > > > Bob Craig
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>
------------------------------------------------
Subject: MET Compile Issue
From: Julie Prestopnik
Time: Wed Jun 26 14:29:05 2019
Thanks, Bob. Good luck. I am going to go ahead and close this ticket
then. Please feel free to open a new ticket if you have any other
trouble.
Julie
On Wed, Jun 26, 2019 at 1:59 PM robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
>
> Okay, I will probably go that route as well.
>
> Thanks
>
> -----Original Message-----
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Wednesday, June 26, 2019 2:40 PM
> To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
<robert.craig.2 at us.af.mil>
> Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET
Compile
> Issue
>
> Hi Bob. Great news! I'm happy to hear that you got everything to
compile.
>
> One thing I am still unsure about - once all the libraries have been
> > compiled once, can I tar them up and provide to CM or do they all
or
> > some of them need to be recompiled before each MET build?
> >
>
> I am unsure. I have never tried that. You could try it. It may or
may
> not work. On WCOSS, I give the admins one script to run to install
all of
> the libraries and MET from scratch and they use that for each
install.
> Each WCOSS machine is slightly different, so sometimes the script
needs
> some tweaks based on the machine.
>
> I hope that helps.
>
> Julie
>
> On Wed, Jun 26, 2019 at 1:31 PM robert.craig.2 at us.af.mil via RT <
> met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
> >
> > Julie I got MET to compile. I think I have enough information to
walk
> > our CM people through a compile. One thing I am still unsure
about -
> > once all the libraries have been compiled once, can I tar them up
and
> > provide to CM or do they all or some of them need to be recompiled
> > before each MET build? I would think I only need to recompile
them if
> > they change but want to confirm.
> >
> > Thanks
> > Bob
> >
> >
> > -----Original Message-----
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Tuesday, June 25, 2019 3:50 PM
> > To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> > <robert.craig.2 at us.af.mil>
> > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET
Compile
> > Issue
> >
> > Great! I'm glad to hear we're making progress and you were able
to
> > get by the NetCDF portion.
> >
> > /usr/bin/ld: cannot find -ljasper
> > >
> >
> > is telling us that the jasper library cannot be found. The GRIB2
> > C-Library requires the zlib, jasper, and png libraries. I
typically
> > install these manually, but you don't have to if they're already
> > installed on your system, as you can tell the GRIB2 C-Library
using
> > "INC" in the makefile where to find the libraries it needs.
> >
> > Below is a link to our instructions for compiling this library
(Search
> > for "Compiling GRIB2 C-Library"):
> >
> > https://dtcenter.org/met-online-tutorial-metv8-0/tutorial-
setup/compil
> > ation/required-libraries
> >
> > If you need further assistance with compiling the GRIB2 C-Library
or
> > any of its supporting libraries, please let me know. I can send
you
> > the instructions that I use to compile these if you'd like.
> >
> > Julie
> >
> > On Tue, Jun 25, 2019 at 2:17 PM robert.craig.2 at us.af.mil via RT <
> > met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790 >
> > >
> > > Julie, your advice allowed me to compile NETCDF and when I tried
to
> > > compile MET, I got past the NETCDF portion. However, it stop
with
> > > the following error:
> > >
> > > mv -f .deps/ensemble_stat-ensemble_stat_conf_info.Tpo
> > > .deps/ensemble_stat-ensemble_stat_conf_info.Po
> > > /usr/bin/g++ -g -L../../../../src/basic/vx_cal
> > > -L../../../../src/basic/vx_config -L../../../../src/basic/vx_log
> > > -L../../../../src/basic/vx_math -L../../../../src/basic/vx_util
> > > -L../../../../src/libcode/vx_afm
> > > -L../../../../src/libcode/vx_analysis_util
> > > -L../../../../src/libcode/vx_color
> > > -L../../../../src/libcode/vx_data2d
> > > -L../../../../src/libcode/vx_data2d_factory
> > > -L../../../../src/libcode/vx_data2d_grib
> > > -L../../../../src/libcode/vx_data2d_grib2
> > > -L../../../../src/libcode/vx_data2d_nccf
> > > -L../../../../src/libcode/vx_data2d_nc_met
> > > -L../../../../src/libcode/vx_data2d_nc_pinterp
> > > -L../../../../src/libcode/vx_data2d_python
> > > -L../../../../src/libcode/vx_python_utils
> > > -L../../../../src/libcode/vx_geodesy
> > > -L../../../../src/libcode/vx_gis
-L../../../../src/libcode/vx_gnomon
> > > -L../../../../src/libcode/vx_grid
> > > -L../../../../src/libcode/vx_gsl_prob
> > > -L../../../../src/libcode/vx_nav
-L../../../../src/libcode/vx_nc_obs
> > > -L../../../../src/libcode/vx_nc_util
> > > -L../../../../src/libcode/vx_pb_util -!
> > > L../../../../src/libcode/vx_plot_util
> > > -L../../../../src/libcode/vx_ps -L../../../../src/libcode/vx_pxm
> > > -L../../../../src/libcode/vx_render
> > > -L../../../../src/libcode/vx_regrid
> > > -L../../../../src/libcode/vx_shapedata
> > > -L../../../../src/libcode/vx_solar
> > > -L../../../../src/libcode/vx_statistics
> > > -L../../../../src/libcode/vx_stat_out
> > > -L../../../../src/libcode/vx_summary
> > > -L../../../../src/libcode/vx_time_series
> > > -L../../../../src/libcode/vx_tc_util
> > > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/jasper/lib
> > > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
> > > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/libpng-1.2.34/lib
> > > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/lib
> > > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-1.8.18/lib
> > > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-1.4.0
> > > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15/lib
> > > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/BUFRLIB_v10-2-3
> > > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/HDF4.2.12/lib
> > > -L/h/WXQC/met-8.1_tes!
> > > t/met-8.1/external_libs/hdfeos/lib -o ensemble_stat ensemble_s!
> > > tat-ensem
> > > ble_stat.o ensemble_stat-ensemble_stat_conf_info.o -lvx_stat_out
> > > -lvx_statistics -lvx_shapedata -lvx_gsl_prob -lvx_analysis_util
> > > -lvx_data2d_factory -lvx_data2d_nc_met -lvx_data2d_grib
> > > -lvx_data2d_grib2 -lgrib2c -ljasper -lpng -lz
-lvx_data2d_nc_pinterp
> > > -lvx_data2d_nccf -lvx_data2d -lvx_nc_obs -lvx_nc_util
-lvx_regrid
> > > -lvx_grid -lvx_config -lvx_cal -lvx_util -lvx_math -lvx_color
> > > -lvx_log -lm -lnetcdf_c++4 -lnetcdf -lgsl -lgslcblas
> > > /usr/bin/ld: cannot find -ljasper
> > > collect2: ld returned 1 exit status
> > > make[4]: *** [ensemble_stat] Error 1
> > > make[4]: Leaving directory
> > > `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/src/tools/core/ensemble_stat'
> > > make[3]: *** [install-recursive] Error 1
> > > make[3]: Leaving directory
> > > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/src/tools/core'
> > > make[2]: *** [install-recursive] Error 1
> > > make[2]: Leaving directory
> > > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/src/tools'
> > > make[1]: *** [install-recursive] Error 1
> > > make[1]: Leaving directory `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/src'
> > > make: *** [install-recursive] Error 1
> > >
> > > I have a jasper directory but it is empty. What is causing this
issue?
> > >
> > > Thanks
> > > Bob
> > >
> > > -----Original Message-----
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Tuesday, June 25, 2019 2:14 PM
> > > To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> > > <robert.craig.2 at us.af.mil>
> > > Subject: Re: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET
> > > Compile Issue
> > >
> > > Hi Bob.
> > >
> > > I see you're having some trouble compiling the NETCDF library.
> > >
> > > The error you received:
> > >
> > > > error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared (first use in
this
> > > > function)
> > > >
> > > makes me think that NetCDF can't find a header file for HDF5.
> > >
> > > I see that you set CPPFLAGS and LDFLAGS when you configured
NetCDF,
> > > which is what I was going to suggest. You used
> > > /h/WXQC/met-8.1_test/met-8.1/external_libs/lib and
> > > /h/WXQC/met-8.1_test/met-8.1/external_libs/include for the
locations.
> > > Are your HDF5 library and include files in those locations,
> > > respectively? If not, you'll want to point CPPFLAGS and LDFLAGS
to
> > > the location where the
> > > HDF5 include and library files are.
> > >
> > > Also, you mentioned:
> > >
> > > > 1) ensured $MET_NETCDF points to
> > > > /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1
> > > >
> > > To be clear, you'll want the NetCDF-C and NetCDF-CXX library and
> > > include files in the same place. For example,
> > > /h/WXQC/met-8.1_test/met-8.1/external_libs/lib and
> > > /h/WXQC/met-8.1_test/met-8.1/external_libs/include would be
> > > appropriate locations. And, in that case, you would want to set
> > > MET_NETCDF to /h/WXQC/met-8.1_test/met-8.1/external_libs/, so
that
> > > MET can access all of the NetCDF library files in the *lib
> > > *subdirectory and all of the NetCDF include files in the
*include*
> subdirectory.
> > >
> > > I hope that helps.
> > >
> > > Thanks,
> > > Julie
> > >
> > > On Tue, Jun 25, 2019 at 10:27 AM robert.craig.2 at us.af.mil via RT
<
> > > met_help at ucar.edu> wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790
>
> > > >
> > > > Thanks, I think my problem was not doing a make clean. We
> > > > continue to have problems with MET finding the netcdf
libraries.
> > > > Under met-8.1, I have an external_libs directory. Under that
> directory is a
> > > > netcdf-c-4.4.1.1/lib and netcdf-c-4.4.1.1/include. I
compiled ZLIB
> > and
> > > > HDF5 first with no errors. Next I did the following:
> > > > 1) ensured $MET_NETCDF points to
> > > > /h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-4.4.1.1
and
> > > > $MET_LIB_DIR is /h/WXQC/met-8.1_test/met-8.1
> > > > 2) ./configure --prefix=${MET_LIB_DIR}/external_libs
> > > > LDFLAGS=-L${MET_LIB_DIR}/external_libs/lib
> > > > CPPFLAGS=-I${MET_LIB_DIR}/external_libs/include
> > > > 3) make install
> > > >
> > > > The compile ends with this error:
> > > >
> > > > mv -f .deps/libnetcdf4_la-nc4dim.Tpo .deps/libnetcdf4_la-
nc4dim.Plo
> > > > /bin/sh ../libtool --tag=CC --mode=compile /usr/bin/gcc
> > > -DHAVE_CONFIG_H
> > > > -I. -I.. -I../include -I../oc2
> > > > -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include -MT
> > > > libnetcdf4_la-nc4file.lo -MD -MP -MF
> > > > .deps/libnetcdf4_la-nc4file.Tpo -c -o libnetcdf4_la-nc4file.lo
> > > > `test -f 'nc4file.c' || echo './'`nc4file.c
> > > > libtool: compile: /usr/bin/gcc -DHAVE_CONFIG_H -I. -I..
> > > > -I../include
> > > > -I../oc2 -I/h/WXQC/met-8.1_test/met-8.1/external_libs/include
-MT
> > > > libnetcdf4_la-nc4file.lo -MD -MP -MF
> > > > .deps/libnetcdf4_la-nc4file.Tpo -c nc4file.c -fPIC -DPIC -o
> > > > .libs/libnetcdf4_la-nc4file.o
> > > > nc4file.c: In function ‘nc4_open_file’:
> > > > nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_COPY’ undeclared
> > > > (first use in this function)
> > > > nc4file.c:2316: error: (Each undeclared identifier is reported
> > > > only once
> > > > nc4file.c:2316: error: for each function it appears in.)
> > > > nc4file.c:2316: error: ‘H5LT_FILE_IMAGE_DONT_RELEASE’
undeclared
> > > > (first use in this function)
> > > > make[1]: *** [libnetcdf4_la-nc4file.lo] Error 1
> > > > make[1]: Leaving directory
> > > >
> > >
> >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.1.1/libsrc4'
> > > > make: *** [install-recursive] Error 1
> > > >
> > > > Does the NETCDF-CXX need to be compiled before NETCDF C? Any
ideas
> > what
> > > > could be wrong or missing?
> > > >
> > > > Thanks
> > > > Bob
> > > >
> > > > -----Original Message-----
> > > > From: John Halley Gotway via RT <met_help at ucar.edu>
> > > > Sent: Monday, June 24, 2019 5:22 PM
> > > > To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> > > > <robert.craig.2 at us.af.mil>
> > > > Subject: [Non-DoD Source] Re: [rt.rap.ucar.edu #90790] MET
Compile
> > > > Issue
> > > >
> > > > Bob,
> > > >
> > > > MET uses the autoconf package to install software. And you
build
> > > > MET by running the "configure" command followed by "make
install
> test".
> > > > By default, autoconf tries to install software into
/usr/local.
> > > > The executables are installed into /usr/local/bin and the
files
> > > > need at runtime are installed into /usr/local/share/met.
However,
> > > > typically only root has write permission in /usr/local.
> > > > Attempting to install it in /usr/local would result in the
error
> you're getting.
> > > >
> > > > The fix is very easy. When you run the "configure" command,
just
> > > > use the "--prefix=/path/to/install/dir" option, where
> > "path/to/install/dir"
> > > > specifies the installation directory for the MET executables
and
> > > > runtime files. Obviously, replace "path/to/install/dir" with
a
> > > > real path that actually exists on your machine. During
> > > > development, I usually just install it into the same directory
as
> > > > where the code
> > lives:
> > > >
> > > > ./configure --prefix=`pwd` --enable-grib2 --enable-modis
> > > > --enable-mode_graphics --enable-lidar2nc --enable-python
> > > >
> > > > That back-tick pwd back-tick just substitutes in the current
> > > > working directory. But it's totally up to you where you want
to
> install it.
> > > >
> > > > Thanks,
> > > > John
> > > >
> > > > On Mon, Jun 24, 2019 at 2:37 PM robert.craig.2 at us.af.mil via
RT <
> > > > met_help at ucar.edu> wrote:
> > > >
> > > > >
> > > > > Mon Jun 24 14:37:30 2019: Request 90790 was acted upon.
> > > > > Transaction: Ticket created by robert.craig.2 at us.af.mil
> > > > > Queue: met_help
> > > > > Subject: MET Compile Issue
> > > > > Owner: Nobody
> > > > > Requestors: robert.craig.2 at us.af.mil
> > > > > Status: new
> > > > > Ticket <URL:
> > > > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=90790
> > > > > >
> > > > >
> > > > >
> > > > > John, or whom it may concern, to get MET 8.1 onto our
production
> > > > > system, our CM function has to be able to compile MET. I
helped
> > > > > them set up the library directory like we have it set and
the
> > > > > environmental variables as we have set, but it keeps having
> > > > > problems with the NETCDF library. So in an effort to try to
> > > > > duplicate there problem, I decide to set up a new MET
directory
> > > > > and tried to duplicate his error to try to narrow it down.
I
> > > > > have set up the env variables as we have in our working
version
> > > > > expect pointing to the new libs directory. When I try to
> > > > > compile I get the
> > following error:
> > > > >
> > > > > Making install in data
> > > > > make[1]: Entering directory
> > > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data'
> > > > > Making install in colortables
> > > > > make[2]: Entering directory
> > > > > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > > > > Making install in NCL_colortables
> > > > > make[3]: Entering directory
> > > > >
> > >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > > > make[4]: Entering directory
> > > > >
> > >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > > > make[4]: Nothing to be done for `install-exec-am'.
> > > > > /bin/mkdir -p
'/usr/local/share/met/colortables/NCL_colortables'
> > > > > /bin/mkdir: cannot create directory `/usr/local/share/met':
> > > > > Permission denied
> > > > > make[4]: *** [install-nclctableDATA] Error 1
> > > > > make[4]: Leaving directory
> > > > >
> > >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > > > make[3]: *** [install-am] Error 2
> > > > > make[3]: Leaving directory
> > > > >
> > >
> `/gpfs/dev/h/WXQC/met-8.1_test/met-
8.1/data/colortables/NCL_colortables'
> > > > > make[2]: *** [install-recursive] Error 1
> > > > > make[2]: Leaving directory
> > > > > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data/colortables'
> > > > > make[1]: *** [install-recursive] Error 1
> > > > > make[1]: Leaving directory
> > `/gpfs/dev/h/WXQC/met-8.1_test/met-8.1/data'
> > > > > make: *** [install-recursive] Error 1
> > > > >
> > > > > My env variables are set by the following:
> > > > >
> > > > > export MET_LIB_DIR=/h/WXQC/met-8.1_test/met-8.1
> > > > > export
> > > > > MET_NETCDF=/h/WXQC/met-8.1_test/met-
8.1/external_libs/netcdf-c-4
> > > > > .4
> > > > > .1
> > > > > .1
> > > > > export
> > > > > BUFR_BASE=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10
> > > > > -2
> > > > > -3 export
> > > > > GSL_BASE=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> > > > > export
> > > > > MET_BUFR=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v10-
> > > > > 2-
> > > > > 3 export
> > > > > MET_GSL=/h/WXQC/met-8.1_test/met-8.1/external_libs/gsl-1.15
> > > > > export
> > > > > MET_GRIB2C=/h/WXQC/met-8.1_test/met-
8.1/external_libs/g2clib-1.4
> > > > > .0
> > > > > export
> > > > >
> MET_GRIB2CINC=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-1.4.
> > > > > 0
> > > > > export
> > > > >
> MET_GRIB2CLIB=/h/WXQC/met-8.1_test/met-8.1/external_libs/g2clib-1.4.
> > > > > 0
> > > > > export
> > > > > MET_BUFRLIB=/h/WXQC/met-8.1_test/met-
8.1/external_libs/BUFRLIB_v
> > > > > 10
> > > > > -2
> > > > > -3
> > > > > export
> > > > > LDFLAGS='-L/h/WXQC/met-8.1_test/met-
8.1/external_libs/jasper/lib
> > > > > -L/h/WXQC/met-8.1_test/met-8.1/external_libs/zlib-1.2.6/lib
> > > > > -L/h/WXQC /met-8.1_test/met-8.1/external_libs/libpng-
1.2.34/lib'
> > > > > export
> > > > > LD_LIBRARY_PATH=/gpfs/lsf/9.1/linux2.6-glibc2.3-
x86_64/lib:/usr/
> > > > > mp
> > > > > i/ gc
> > > > > c/openmpi-1.8.4/lib64:/h/WXQC/met-8.1_test/met-
8.1/external_libs
> > > > >
> > > > >
> > /gsl-1.15/lib:/h/WXQC/met-8.1_test/met-8.1/external_libs/netcdf-c-
4.4.
> > > > > 1.1/lib export
> > > > > MET_HDFEOS=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdfeos
> > > > > export
> > > > > MET_HDF5=/h/WXQC/met-8.1_test/met-8.1/external_libs/hdf5-
1.8.18
> > > > > export
> > > > > MET_HDF=/h/WXQC/met-8.1_test/met-8.1/external_libs/HDF4.2.12
> > > > > export FC=/usr/bin/gfortran
> > > > > export F77=/usr/bin/gfortran
> > > > > export CC=/usr/bin/gcc
> > > > > export CXX=/usr/bin/g++
> > > > >
> > > > > and the path is:
> > > > > [1550 qcteam DEV9 /h/WXQC/met-8.1_test/met-8.1 -]> print
$PATH
> > > > >
> > > > > /gpfs/lsf/10.1/linux2.6-glibc2.3-
x86_64/etc:/gpfs/lsf/10.1/linux2.
> > > > > 6-
> > > > > gl
> > > > > ibc2.3-x86_64/bin:/h/WXQC/met-8.1_test/met-
8.1/external_libs:/gp
> > > > > fs
> > > > > /s
> > > > > ha
> > > > >
> red/intel/parallel_studio_xe_2016_u2/compilers_and_libraries_2016.2.
> > > > > 18
> > > > >
1/linux/bin/intel64:/gpfs/shared/intel/parallel_studio_xe_2016_u
> > > > > 2/
> > > > > co
> > > > > mp
> > > > >
ilers_and_libraries_2016.2.181/linux/mpi/intel64/bin:/gpfs/share
> > > > > d/
> > > > > in
> > > > > te
> > > > >
l/parallel_studio_xe_2016_u2/debugger_2016/gdb/intel64_mic/bin:/
> > > > > gp
> > > > > fs
> > > > > /p
> > > > > ython/python-3.4/bin:/opt/rh/rh-
python36/root/usr/bin/python3/bin:
> > > > > /s
> > > > > bi
> > > > >
n:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/opt/clustertest/bin:/
> > > > > op
> > > > > t/
> > > > > cu
> > > > >
da/bin:/opt/cuda/samples/bin/x86_64/linux/release:/opt/cuda/C/NV
> > > > > ID
> > > > > IA
> > > > > _C
> > > > > UDA-
5.5_Samples/bin/x86_64/linux/release:/opt/ibutils/bin:/usr/l
> > > > > pp
> > > > > /s
> > > > > sp
> > > > >
/bin:/usr/lpp/ssp/install/bin:/usr/lpp/ssp/kerberos/bin:/usr/lpp
> > > > > /s
> > > > > sp
> > > > > /r
> > > > >
cmd/bin:/usr/vac/bin:/usr/local/bin:/usr/local/exelis/idl/bin:.:
> > > > > /h om e/ qcteam/bin:/home/qcteam/:/h/WXQC/bin/
> > > > >
> > > > >
> > > > > So why is MET trying to go to: /usr/local/share/met?
> > > > >
> > > > > Thanks
> > > > > Bob Craig
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>
------------------------------------------------
More information about the Met_help
mailing list