[Met_help] [rt.rap.ucar.edu #81052] History for Configure and Make for MET 6

Julie Prestopnik via RT met_help at ucar.edu
Fri Jun 30 14:07:22 MDT 2017


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

Hi Again,


I'm still having a little trouble with installing MET on Linux Mint 17.

Running ./config --enable-grib2 seems to go OK, but once I try to run make at the prompt, the process hangs on an error complaining about "no such file or directory" for netcdf.

I have the following environment variables and believe they are pointing to the correct places.  I have also verified that my session does indeed recognize these variables in the environment.


MET_NETCDFINC=/usr/include
MET_NETCDFLIB=/usr/lib
MET_HDF5=/usr/lib/x86_64-linux-gnu
MET_BUFR=/opt   (Note that this IS where I put all the files when compiling BUFRLIB)
MET_GSLLIB=/usr/lib
MET_GSLINC=/usr/include
MET_GRIB2INC=/usr/bin/grib2/include
MET_GRIB2LIB=/usr/bin/grib2/lib

I have also met all the prerequisite software needs to the best of my understanding based on the functionality we need (basically just grib2 support); though most are installed using the debian packaging system and ubuntu's repository.  This includes the various versions of netcdf and their corresponding development packages.  BUFRLIB and Grib2 are the only softwares other than MET that has been installed by downloading and compiling the code.

Attached are the the outputs for the configure and make commands.  The configure command was run exactly as outlined above and the make command was run exactly as it is written in the online tutorial for installing MET 6.0.

Any insight you could give into this problem would be greatly appreciated.

Regards,

Derek

Derek Stinchfield
Linux Systems Administrator
UND - Aerospace SCC
derek at aero.und.edu



----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: Configure and Make for MET 6
From: Julie Prestopnik
Time: Thu Jun 29 09:33:45 2017

Hi Derek.

I see that you are having some difficulty installing met-6.0.

The error you are getting:

In file included from nc_var_info.cc:24:0:
nc_utils.h:22:18: fatal error: netcdf: No such file or directory

tells us that MET doesn't know where to find the file "netcdf", which
is
included in the NetCDF-CXX installation.  It could be that NetCDF-CXX
is
installed and that file does exist, but MET just doesn't know where to
find
it.

You mentioned that you have your MET_NETCDF environment variables set
in
the following way:

MET_NETCDFINC=/usr/include
MET_NETCDFLIB=/usr/lib

Can you please tell me if you see the file "netcdf" at /usr/include?
If
not, perhaps you do not have the necessary NetCDF packages as
described
here:

http://www.dtcenter.org/met/users/support/online_tutorial/
METv6.0/tutorial.php?name=compilation&category=req_libs

or perhaps it is in a different location.

Here is a quick reference checklist for NetCDF4 installation that you
can
use to see if you have the necessary files:

Files for NetCDF4 C:

   - $MET_NETCDFINC/netcdf.h
   - $MET_NETCDFLIB/libnetcdf.a
   - $MET_NETCDFLIB/libnetcdf.so

Files for NetCDF4 C++:

   - $MET_NETCDFINC/netcdf
   - $MET_NETCDFLIB/libnetcdf_c++4.a
   - $MET_NETCDFLIB/libnetcdf_c++4.so

Please take a look and let us know what you find out.  Thanks!

Julie

On Wed, Jun 28, 2017 at 1:42 PM, Stinchfield, Derek via RT <
met_help at ucar.edu> wrote:

>
> Wed Jun 28 13:42:12 2017: Request 81052 was acted upon.
> Transaction: Ticket created by derek at aero.und.edu
>        Queue: met_help
>      Subject: Configure and Make for MET 6
>        Owner: Nobody
>   Requestors: derek at aero.und.edu
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052 >
>
>
> Hi Again,
>
>
> I'm still having a little trouble with installing MET on Linux Mint
17.
>
> Running ./config --enable-grib2 seems to go OK, but once I try to
run make
> at the prompt, the process hangs on an error complaining about "no
such
> file or directory" for netcdf.
>
> I have the following environment variables and believe they are
pointing
> to the correct places.  I have also verified that my session does
indeed
> recognize these variables in the environment.
>
>
> MET_NETCDFINC=/usr/include
> MET_NETCDFLIB=/usr/lib
> MET_HDF5=/usr/lib/x86_64-linux-gnu
> MET_BUFR=/opt   (Note that this IS where I put all the files when
> compiling BUFRLIB)
> MET_GSLLIB=/usr/lib
> MET_GSLINC=/usr/include
> MET_GRIB2INC=/usr/bin/grib2/include
> MET_GRIB2LIB=/usr/bin/grib2/lib
>
> I have also met all the prerequisite software needs to the best of
my
> understanding based on the functionality we need (basically just
grib2
> support); though most are installed using the debian packaging
system and
> ubuntu's repository.  This includes the various versions of netcdf
and
> their corresponding development packages.  BUFRLIB and Grib2 are the
only
> softwares other than MET that has been installed by downloading and
> compiling the code.
>
> Attached are the the outputs for the configure and make commands.
The
> configure command was run exactly as outlined above and the make
command
> was run exactly as it is written in the online tutorial for
installing MET
> 6.0.
>
> Any insight you could give into this problem would be greatly
appreciated.
>
> Regards,
>
> Derek
>
> Derek Stinchfield
> Linux Systems Administrator
> UND - Aerospace SCC
> derek at aero.und.edu
>
>
>

------------------------------------------------
Subject: Configure and Make for MET 6
From: Stinchfield, Derek
Time: Thu Jun 29 10:48:02 2017

Hi Julie,


All the netcdf4 C files exist.


netcdf.h is at /usr/include

libnetcdf.a and libnetcdf.so are both in /usr/lib


As you said, it's the netcdf-cxx files that are missing, but it
doesn't seem to matter how I install, those files aren't generated.


I have used the repository and added the libnetcdfc++4 package, and
I've also tried compiling netcdf-cxx4-4.3.0 from a tarball and neither
have created libnetcdf_c++4.a or libnetcdf_c++4.so, and
/usr/include/netcdf definitely does not exist.


Am I using the wrong version of CXX?


Regards,


Derek

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Thursday, June 29, 2017 10:33:46 AM
To: Stinchfield, Derek
Subject: Re: [rt.rap.ucar.edu #81052] Configure and Make for MET 6

Hi Derek.

I see that you are having some difficulty installing met-6.0.

The error you are getting:

In file included from nc_var_info.cc:24:0:
nc_utils.h:22:18: fatal error: netcdf: No such file or directory

tells us that MET doesn't know where to find the file "netcdf", which
is
included in the NetCDF-CXX installation.  It could be that NetCDF-CXX
is
installed and that file does exist, but MET just doesn't know where to
find
it.

You mentioned that you have your MET_NETCDF environment variables set
in
the following way:

MET_NETCDFINC=/usr/include
MET_NETCDFLIB=/usr/lib

Can you please tell me if you see the file "netcdf" at /usr/include?
If
not, perhaps you do not have the necessary NetCDF packages as
described
here:

http://www.dtcenter.org/met/users/support/online_tutorial/
METv6.0/tutorial.php?name=compilation&category=req_libs

or perhaps it is in a different location.

Here is a quick reference checklist for NetCDF4 installation that you
can
use to see if you have the necessary files:

Files for NetCDF4 C:

   - $MET_NETCDFINC/netcdf.h
   - $MET_NETCDFLIB/libnetcdf.a
   - $MET_NETCDFLIB/libnetcdf.so

Files for NetCDF4 C++:

   - $MET_NETCDFINC/netcdf
   - $MET_NETCDFLIB/libnetcdf_c++4.a
   - $MET_NETCDFLIB/libnetcdf_c++4.so

Please take a look and let us know what you find out.  Thanks!

Julie

On Wed, Jun 28, 2017 at 1:42 PM, Stinchfield, Derek via RT <
met_help at ucar.edu> wrote:

>
> Wed Jun 28 13:42:12 2017: Request 81052 was acted upon.
> Transaction: Ticket created by derek at aero.und.edu
>        Queue: met_help
>      Subject: Configure and Make for MET 6
>        Owner: Nobody
>   Requestors: derek at aero.und.edu
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052 >
>
>
> Hi Again,
>
>
> I'm still having a little trouble with installing MET on Linux Mint
17.
>
> Running ./config --enable-grib2 seems to go OK, but once I try to
run make
> at the prompt, the process hangs on an error complaining about "no
such
> file or directory" for netcdf.
>
> I have the following environment variables and believe they are
pointing
> to the correct places.  I have also verified that my session does
indeed
> recognize these variables in the environment.
>
>
> MET_NETCDFINC=/usr/include
> MET_NETCDFLIB=/usr/lib
> MET_HDF5=/usr/lib/x86_64-linux-gnu
> MET_BUFR=/opt   (Note that this IS where I put all the files when
> compiling BUFRLIB)
> MET_GSLLIB=/usr/lib
> MET_GSLINC=/usr/include
> MET_GRIB2INC=/usr/bin/grib2/include
> MET_GRIB2LIB=/usr/bin/grib2/lib
>
> I have also met all the prerequisite software needs to the best of
my
> understanding based on the functionality we need (basically just
grib2
> support); though most are installed using the debian packaging
system and
> ubuntu's repository.  This includes the various versions of netcdf
and
> their corresponding development packages.  BUFRLIB and Grib2 are the
only
> softwares other than MET that has been installed by downloading and
> compiling the code.
>
> Attached are the the outputs for the configure and make commands.
The
> configure command was run exactly as outlined above and the make
command
> was run exactly as it is written in the online tutorial for
installing MET
> 6.0.
>
> Any insight you could give into this problem would be greatly
appreciated.
>
> Regards,
>
> Derek
>
> Derek Stinchfield
> Linux Systems Administrator
> UND - Aerospace SCC
> derek at aero.und.edu
>
>
>


------------------------------------------------
Subject: Configure and Make for MET 6
From: Julie Prestopnik
Time: Thu Jun 29 12:27:37 2017

Hi Derek.

The version I compiled was netcdf-cxx4-4.3.0.  We have directions
posted
here:

http://www.dtcenter.org/met/users/support/online_tutorial/METv6.0/tutorial.php?name=compilation&category=req_libs

for compiling that version:

NetCDF-CXX

   - wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
   - tar -xvzf v4.3.0.tar.gz
   - cd netcdf-cxx4-4.3.0
   - ./configure --prefix=${MET_LIB_DIR}/external_libs
   LDFLAGS=-L${MET_LIB_DIR}/external_libs/lib
   CPPFLAGS=-I${MET_LIB_DIR}/external_libs/include
   - make install

Perhaps for the fourth step you would want to run this instead
(changing
paths) (or maybe the locations below are default:

./configure --prefix=/usr LDFLAGS=-L/usr/lib CPPFLAGS=-I/usr/include
I'm surprised those files aren't generated.  Do you get compilation
errors?

Thanks,
Julie



On Thu, Jun 29, 2017 at 10:48 AM, Stinchfield, Derek via RT <
met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052 >
>
> Hi Julie,
>
>
> All the netcdf4 C files exist.
>
>
> netcdf.h is at /usr/include
>
> libnetcdf.a and libnetcdf.so are both in /usr/lib
>
>
> As you said, it's the netcdf-cxx files that are missing, but it
doesn't
> seem to matter how I install, those files aren't generated.
>
>
> I have used the repository and added the libnetcdfc++4 package, and
I've
> also tried compiling netcdf-cxx4-4.3.0 from a tarball and neither
have
> created libnetcdf_c++4.a or libnetcdf_c++4.so, and
/usr/include/netcdf
> definitely does not exist.
>
>
> Am I using the wrong version of CXX?
>
>
> Regards,
>
>
> Derek
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Thursday, June 29, 2017 10:33:46 AM
> To: Stinchfield, Derek
> Subject: Re: [rt.rap.ucar.edu #81052] Configure and Make for MET 6
>
> Hi Derek.
>
> I see that you are having some difficulty installing met-6.0.
>
> The error you are getting:
>
> In file included from nc_var_info.cc:24:0:
> nc_utils.h:22:18: fatal error: netcdf: No such file or directory
>
> tells us that MET doesn't know where to find the file "netcdf",
which is
> included in the NetCDF-CXX installation.  It could be that NetCDF-
CXX is
> installed and that file does exist, but MET just doesn't know where
to find
> it.
>
> You mentioned that you have your MET_NETCDF environment variables
set in
> the following way:
>
> MET_NETCDFINC=/usr/include
> MET_NETCDFLIB=/usr/lib
>
> Can you please tell me if you see the file "netcdf" at /usr/include?
If
> not, perhaps you do not have the necessary NetCDF packages as
described
> here:
>
> http://www.dtcenter.org/met/users/support/online_tutorial/
> METv6.0/tutorial.php?name=compilation&category=req_libs
>
> or perhaps it is in a different location.
>
> Here is a quick reference checklist for NetCDF4 installation that
you can
> use to see if you have the necessary files:
>
> Files for NetCDF4 C:
>
>    - $MET_NETCDFINC/netcdf.h
>    - $MET_NETCDFLIB/libnetcdf.a
>    - $MET_NETCDFLIB/libnetcdf.so
>
> Files for NetCDF4 C++:
>
>    - $MET_NETCDFINC/netcdf
>    - $MET_NETCDFLIB/libnetcdf_c++4.a
>    - $MET_NETCDFLIB/libnetcdf_c++4.so
>
> Please take a look and let us know what you find out.  Thanks!
>
> Julie
>
> On Wed, Jun 28, 2017 at 1:42 PM, Stinchfield, Derek via RT <
> met_help at ucar.edu> wrote:
>
> >
> > Wed Jun 28 13:42:12 2017: Request 81052 was acted upon.
> > Transaction: Ticket created by derek at aero.und.edu
> >        Queue: met_help
> >      Subject: Configure and Make for MET 6
> >        Owner: Nobody
> >   Requestors: derek at aero.und.edu
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052 >
> >
> >
> > Hi Again,
> >
> >
> > I'm still having a little trouble with installing MET on Linux
Mint 17.
> >
> > Running ./config --enable-grib2 seems to go OK, but once I try to
run
> make
> > at the prompt, the process hangs on an error complaining about "no
such
> > file or directory" for netcdf.
> >
> > I have the following environment variables and believe they are
pointing
> > to the correct places.  I have also verified that my session does
indeed
> > recognize these variables in the environment.
> >
> >
> > MET_NETCDFINC=/usr/include
> > MET_NETCDFLIB=/usr/lib
> > MET_HDF5=/usr/lib/x86_64-linux-gnu
> > MET_BUFR=/opt   (Note that this IS where I put all the files when
> > compiling BUFRLIB)
> > MET_GSLLIB=/usr/lib
> > MET_GSLINC=/usr/include
> > MET_GRIB2INC=/usr/bin/grib2/include
> > MET_GRIB2LIB=/usr/bin/grib2/lib
> >
> > I have also met all the prerequisite software needs to the best of
my
> > understanding based on the functionality we need (basically just
grib2
> > support); though most are installed using the debian packaging
system and
> > ubuntu's repository.  This includes the various versions of netcdf
and
> > their corresponding development packages.  BUFRLIB and Grib2 are
the only
> > softwares other than MET that has been installed by downloading
and
> > compiling the code.
> >
> > Attached are the the outputs for the configure and make commands.
The
> > configure command was run exactly as outlined above and the make
command
> > was run exactly as it is written in the online tutorial for
installing
> MET
> > 6.0.
> >
> > Any insight you could give into this problem would be greatly
> appreciated.
> >
> > Regards,
> >
> > Derek
> >
> > Derek Stinchfield
> > Linux Systems Administrator
> > UND - Aerospace SCC
> > derek at aero.und.edu
> >
> >
> >
>
>
>

------------------------------------------------
Subject: Configure and Make for MET 6
From: Stinchfield, Derek
Time: Fri Jun 30 09:32:07 2017

Hi Julie,


I used your suggestion for the configure phase and then was able to
make install and get the proper files in the right place.   I then
went back to installing MET,  and then ran into a new problem.  Looks
like I'm getting caught up at pb2nc.


I have attached the make_install.log once again for you to scan with
the new error.


Thanks again for your help.


Regards,


Derek

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Thursday, June 29, 2017 1:27:37 PM
To: Stinchfield, Derek
Subject: Re: [rt.rap.ucar.edu #81052] Configure and Make for MET 6

Hi Derek.

The version I compiled was netcdf-cxx4-4.3.0.  We have directions
posted
here:

http://www.dtcenter.org/met/users/support/online_tutorial/METv6.0/tutorial.php?name=compilation&category=req_libs

for compiling that version:

NetCDF-CXX

   - wget https://github.com/Unidata/netcdf-cxx4/archive/v4.3.0.tar.gz
   - tar -xvzf v4.3.0.tar.gz
   - cd netcdf-cxx4-4.3.0
   - ./configure --prefix=${MET_LIB_DIR}/external_libs
   LDFLAGS=-L${MET_LIB_DIR}/external_libs/lib
   CPPFLAGS=-I${MET_LIB_DIR}/external_libs/include
   - make install

Perhaps for the fourth step you would want to run this instead
(changing
paths) (or maybe the locations below are default:

./configure --prefix=/usr LDFLAGS=-L/usr/lib CPPFLAGS=-I/usr/include
I'm surprised those files aren't generated.  Do you get compilation
errors?

Thanks,
Julie



On Thu, Jun 29, 2017 at 10:48 AM, Stinchfield, Derek via RT <
met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052 >
>
> Hi Julie,
>
>
> All the netcdf4 C files exist.
>
>
> netcdf.h is at /usr/include
>
> libnetcdf.a and libnetcdf.so are both in /usr/lib
>
>
> As you said, it's the netcdf-cxx files that are missing, but it
doesn't
> seem to matter how I install, those files aren't generated.
>
>
> I have used the repository and added the libnetcdfc++4 package, and
I've
> also tried compiling netcdf-cxx4-4.3.0 from a tarball and neither
have
> created libnetcdf_c++4.a or libnetcdf_c++4.so, and
/usr/include/netcdf
> definitely does not exist.
>
>
> Am I using the wrong version of CXX?
>
>
> Regards,
>
>
> Derek
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Thursday, June 29, 2017 10:33:46 AM
> To: Stinchfield, Derek
> Subject: Re: [rt.rap.ucar.edu #81052] Configure and Make for MET 6
>
> Hi Derek.
>
> I see that you are having some difficulty installing met-6.0.
>
> The error you are getting:
>
> In file included from nc_var_info.cc:24:0:
> nc_utils.h:22:18: fatal error: netcdf: No such file or directory
>
> tells us that MET doesn't know where to find the file "netcdf",
which is
> included in the NetCDF-CXX installation.  It could be that NetCDF-
CXX is
> installed and that file does exist, but MET just doesn't know where
to find
> it.
>
> You mentioned that you have your MET_NETCDF environment variables
set in
> the following way:
>
> MET_NETCDFINC=/usr/include
> MET_NETCDFLIB=/usr/lib
>
> Can you please tell me if you see the file "netcdf" at /usr/include?
If
> not, perhaps you do not have the necessary NetCDF packages as
described
> here:
>
> http://www.dtcenter.org/met/users/support/online_tutorial/
> METv6.0/tutorial.php?name=compilation&category=req_libs
>
> or perhaps it is in a different location.
>
> Here is a quick reference checklist for NetCDF4 installation that
you can
> use to see if you have the necessary files:
>
> Files for NetCDF4 C:
>
>    - $MET_NETCDFINC/netcdf.h
>    - $MET_NETCDFLIB/libnetcdf.a
>    - $MET_NETCDFLIB/libnetcdf.so
>
> Files for NetCDF4 C++:
>
>    - $MET_NETCDFINC/netcdf
>    - $MET_NETCDFLIB/libnetcdf_c++4.a
>    - $MET_NETCDFLIB/libnetcdf_c++4.so
>
> Please take a look and let us know what you find out.  Thanks!
>
> Julie
>
> On Wed, Jun 28, 2017 at 1:42 PM, Stinchfield, Derek via RT <
> met_help at ucar.edu> wrote:
>
> >
> > Wed Jun 28 13:42:12 2017: Request 81052 was acted upon.
> > Transaction: Ticket created by derek at aero.und.edu
> >        Queue: met_help
> >      Subject: Configure and Make for MET 6
> >        Owner: Nobody
> >   Requestors: derek at aero.und.edu
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052 >
> >
> >
> > Hi Again,
> >
> >
> > I'm still having a little trouble with installing MET on Linux
Mint 17.
> >
> > Running ./config --enable-grib2 seems to go OK, but once I try to
run
> make
> > at the prompt, the process hangs on an error complaining about "no
such
> > file or directory" for netcdf.
> >
> > I have the following environment variables and believe they are
pointing
> > to the correct places.  I have also verified that my session does
indeed
> > recognize these variables in the environment.
> >
> >
> > MET_NETCDFINC=/usr/include
> > MET_NETCDFLIB=/usr/lib
> > MET_HDF5=/usr/lib/x86_64-linux-gnu
> > MET_BUFR=/opt   (Note that this IS where I put all the files when
> > compiling BUFRLIB)
> > MET_GSLLIB=/usr/lib
> > MET_GSLINC=/usr/include
> > MET_GRIB2INC=/usr/bin/grib2/include
> > MET_GRIB2LIB=/usr/bin/grib2/lib
> >
> > I have also met all the prerequisite software needs to the best of
my
> > understanding based on the functionality we need (basically just
grib2
> > support); though most are installed using the debian packaging
system and
> > ubuntu's repository.  This includes the various versions of netcdf
and
> > their corresponding development packages.  BUFRLIB and Grib2 are
the only
> > softwares other than MET that has been installed by downloading
and
> > compiling the code.
> >
> > Attached are the the outputs for the configure and make commands.
The
> > configure command was run exactly as outlined above and the make
command
> > was run exactly as it is written in the online tutorial for
installing
> MET
> > 6.0.
> >
> > Any insight you could give into this problem would be greatly
> appreciated.
> >
> > Regards,
> >
> > Derek
> >
> > Derek Stinchfield
> > Linux Systems Administrator
> > UND - Aerospace SCC
> > derek at aero.und.edu
> >
> >
> >
>
>
>


------------------------------------------------
Subject: Configure and Make for MET 6
From: Julie Prestopnik
Time: Fri Jun 30 10:46:35 2017

Hi Derek.

I'm glad to hear that you were able to get a successful compile of the
netcdf-cxx library.  Thank you for attaching your make_install.log
file.

I see the following problem:

/usr/bin/ld: cannot find -lbufr
collect2: error: ld returned 1 exit status

which indicates that the linker cannot find the BUFR library which is
required by the pb2nc tool.

Earlier you mentioned:

MET_BUFR=/opt   (Note that this IS where I put all the files when
compiling
> BUFRLIB)
>

If libbufr.a is located in /opt you'll, want to set MET_BUFRLIB = /opt
instead of MET_BUFR.  On the following page in the tutorial, we
describe
what is expected for the $MET_<lib> environment variable.

"The *$MET_<lib>* environment variable can be used if the external
library
is installed such that there is a main directory which has a
subdirectory
called "lib" containing the library files and another subdirectory
called
"include" containing the include files. For example, if the NetCDF
library
files are installed in /opt/netcdf/lib and the include files are in
/opt/netcdf/include, you can just define the *$MET_NETCDF* environment
variable to be "/opt/netcdf"."

http://www.dtcenter.org/met/users/support/online_tutorial/METv6.0/tutorial.php?name=compilation&category=configure

So, in this case, MET is looking in $MET_BUFR/lib (or /opt/lib) for
libbufr.a, but it sounds like libbufr.a is actually in /opt.

Please try setting MET_BUFRLIB to /opt, make clean, reconfigure, and
then
try to reinstall again.  Please let us know how it goes and if you
have any
other questions.

Thanks!

Julie

On Fri, Jun 30, 2017 at 9:32 AM, Stinchfield, Derek via RT <
met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052 >
>
> Hi Julie,
>
>
> I used your suggestion for the configure phase and then was able to
make
> install and get the proper files in the right place.   I then went
back to
> installing MET,  and then ran into a new problem.  Looks like I'm
getting
> caught up at pb2nc.
>
>
> I have attached the make_install.log once again for you to scan with
the
> new error.
>
>
> Thanks again for your help.
>
>
> Regards,
>
>
> Derek
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Thursday, June 29, 2017 1:27:37 PM
> To: Stinchfield, Derek
> Subject: Re: [rt.rap.ucar.edu #81052] Configure and Make for MET 6
>
> Hi Derek.
>
> The version I compiled was netcdf-cxx4-4.3.0.  We have directions
posted
> here:
>
> http://www.dtcenter.org/met/users/support/online_tutorial/
> METv6.0/tutorial.php?name=compilation&category=req_libs
>
> for compiling that version:
>
> NetCDF-CXX
>
>    - wget https://github.com/Unidata/netcdf-
cxx4/archive/v4.3.0.tar.gz
>    - tar -xvzf v4.3.0.tar.gz
>    - cd netcdf-cxx4-4.3.0
>    - ./configure --prefix=${MET_LIB_DIR}/external_libs
>    LDFLAGS=-L${MET_LIB_DIR}/external_libs/lib
>    CPPFLAGS=-I${MET_LIB_DIR}/external_libs/include
>    - make install
>
> Perhaps for the fourth step you would want to run this instead
(changing
> paths) (or maybe the locations below are default:
>
> ./configure --prefix=/usr LDFLAGS=-L/usr/lib CPPFLAGS=-I/usr/include
> I'm surprised those files aren't generated.  Do you get compilation
errors?
>
> Thanks,
> Julie
>
>
>
> On Thu, Jun 29, 2017 at 10:48 AM, Stinchfield, Derek via RT <
> met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052 >
> >
> > Hi Julie,
> >
> >
> > All the netcdf4 C files exist.
> >
> >
> > netcdf.h is at /usr/include
> >
> > libnetcdf.a and libnetcdf.so are both in /usr/lib
> >
> >
> > As you said, it's the netcdf-cxx files that are missing, but it
doesn't
> > seem to matter how I install, those files aren't generated.
> >
> >
> > I have used the repository and added the libnetcdfc++4 package,
and I've
> > also tried compiling netcdf-cxx4-4.3.0 from a tarball and neither
have
> > created libnetcdf_c++4.a or libnetcdf_c++4.so, and
/usr/include/netcdf
> > definitely does not exist.
> >
> >
> > Am I using the wrong version of CXX?
> >
> >
> > Regards,
> >
> >
> > Derek
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Thursday, June 29, 2017 10:33:46 AM
> > To: Stinchfield, Derek
> > Subject: Re: [rt.rap.ucar.edu #81052] Configure and Make for MET 6
> >
> > Hi Derek.
> >
> > I see that you are having some difficulty installing met-6.0.
> >
> > The error you are getting:
> >
> > In file included from nc_var_info.cc:24:0:
> > nc_utils.h:22:18: fatal error: netcdf: No such file or directory
> >
> > tells us that MET doesn't know where to find the file "netcdf",
which is
> > included in the NetCDF-CXX installation.  It could be that NetCDF-
CXX is
> > installed and that file does exist, but MET just doesn't know
where to
> find
> > it.
> >
> > You mentioned that you have your MET_NETCDF environment variables
set in
> > the following way:
> >
> > MET_NETCDFINC=/usr/include
> > MET_NETCDFLIB=/usr/lib
> >
> > Can you please tell me if you see the file "netcdf" at
/usr/include?  If
> > not, perhaps you do not have the necessary NetCDF packages as
described
> > here:
> >
> > http://www.dtcenter.org/met/users/support/online_tutorial/
> > METv6.0/tutorial.php?name=compilation&category=req_libs
> >
> > or perhaps it is in a different location.
> >
> > Here is a quick reference checklist for NetCDF4 installation that
you can
> > use to see if you have the necessary files:
> >
> > Files for NetCDF4 C:
> >
> >    - $MET_NETCDFINC/netcdf.h
> >    - $MET_NETCDFLIB/libnetcdf.a
> >    - $MET_NETCDFLIB/libnetcdf.so
> >
> > Files for NetCDF4 C++:
> >
> >    - $MET_NETCDFINC/netcdf
> >    - $MET_NETCDFLIB/libnetcdf_c++4.a
> >    - $MET_NETCDFLIB/libnetcdf_c++4.so
> >
> > Please take a look and let us know what you find out.  Thanks!
> >
> > Julie
> >
> > On Wed, Jun 28, 2017 at 1:42 PM, Stinchfield, Derek via RT <
> > met_help at ucar.edu> wrote:
> >
> > >
> > > Wed Jun 28 13:42:12 2017: Request 81052 was acted upon.
> > > Transaction: Ticket created by derek at aero.und.edu
> > >        Queue: met_help
> > >      Subject: Configure and Make for MET 6
> > >        Owner: Nobody
> > >   Requestors: derek at aero.und.edu
> > >       Status: new
> > >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052
> >
> > >
> > >
> > > Hi Again,
> > >
> > >
> > > I'm still having a little trouble with installing MET on Linux
Mint 17.
> > >
> > > Running ./config --enable-grib2 seems to go OK, but once I try
to run
> > make
> > > at the prompt, the process hangs on an error complaining about
"no such
> > > file or directory" for netcdf.
> > >
> > > I have the following environment variables and believe they are
> pointing
> > > to the correct places.  I have also verified that my session
does
> indeed
> > > recognize these variables in the environment.
> > >
> > >
> > > MET_NETCDFINC=/usr/include
> > > MET_NETCDFLIB=/usr/lib
> > > MET_HDF5=/usr/lib/x86_64-linux-gnu
> > > MET_BUFR=/opt   (Note that this IS where I put all the files
when
> > > compiling BUFRLIB)
> > > MET_GSLLIB=/usr/lib
> > > MET_GSLINC=/usr/include
> > > MET_GRIB2INC=/usr/bin/grib2/include
> > > MET_GRIB2LIB=/usr/bin/grib2/lib
> > >
> > > I have also met all the prerequisite software needs to the best
of my
> > > understanding based on the functionality we need (basically just
grib2
> > > support); though most are installed using the debian packaging
system
> and
> > > ubuntu's repository.  This includes the various versions of
netcdf and
> > > their corresponding development packages.  BUFRLIB and Grib2 are
the
> only
> > > softwares other than MET that has been installed by downloading
and
> > > compiling the code.
> > >
> > > Attached are the the outputs for the configure and make
commands.  The
> > > configure command was run exactly as outlined above and the make
> command
> > > was run exactly as it is written in the online tutorial for
installing
> > MET
> > > 6.0.
> > >
> > > Any insight you could give into this problem would be greatly
> > appreciated.
> > >
> > > Regards,
> > >
> > > Derek
> > >
> > > Derek Stinchfield
> > > Linux Systems Administrator
> > > UND - Aerospace SCC
> > > derek at aero.und.edu
> > >
> > >
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: Configure and Make for MET 6
From: Stinchfield, Derek
Time: Fri Jun 30 13:59:39 2017

Hi Again Julie,


Looks like setting the MET_BUFRLIB variable made the difference,
after reconfiguring and running the make install again, the compiling
ran without error.


I don't know if I got the exact output from the make test run that the
tutorial says to look for, but regardless, both ran without getting an
error.

We did some tests with the binaries and the professor who will be
using the software on this computer just emailed me back saying it
looks as if everything is running correctly.


I think we can call it a wrap.


Thanks again for all your help.

Regards,


Derek

________________________________
From: Julie Prestopnik via RT <met_help at ucar.edu>
Sent: Friday, June 30, 2017 11:46:36 AM
To: Stinchfield, Derek
Subject: Re: [rt.rap.ucar.edu #81052] Configure and Make for MET 6

Hi Derek.

I'm glad to hear that you were able to get a successful compile of the
netcdf-cxx library.  Thank you for attaching your make_install.log
file.

I see the following problem:

/usr/bin/ld: cannot find -lbufr
collect2: error: ld returned 1 exit status

which indicates that the linker cannot find the BUFR library which is
required by the pb2nc tool.

Earlier you mentioned:

MET_BUFR=/opt   (Note that this IS where I put all the files when
compiling
> BUFRLIB)
>

If libbufr.a is located in /opt you'll, want to set MET_BUFRLIB = /opt
instead of MET_BUFR.  On the following page in the tutorial, we
describe
what is expected for the $MET_<lib> environment variable.

"The *$MET_<lib>* environment variable can be used if the external
library
is installed such that there is a main directory which has a
subdirectory
called "lib" containing the library files and another subdirectory
called
"include" containing the include files. For example, if the NetCDF
library
files are installed in /opt/netcdf/lib and the include files are in
/opt/netcdf/include, you can just define the *$MET_NETCDF* environment
variable to be "/opt/netcdf"."

http://www.dtcenter.org/met/users/support/online_tutorial/METv6.0/tutorial.php?name=compilation&category=configure
DTC | | MET Online
Tutorial<http://www.dtcenter.org/met/users/support/online_tutorial/METv6.0/tutorial.php?name=compilation&category=configure>
www.dtcenter.org
The Developmental Testbed Center (DTC)




So, in this case, MET is looking in $MET_BUFR/lib (or /opt/lib) for
libbufr.a, but it sounds like libbufr.a is actually in /opt.

Please try setting MET_BUFRLIB to /opt, make clean, reconfigure, and
then
try to reinstall again.  Please let us know how it goes and if you
have any
other questions.

Thanks!

Julie

On Fri, Jun 30, 2017 at 9:32 AM, Stinchfield, Derek via RT <
met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052 >
>
> Hi Julie,
>
>
> I used your suggestion for the configure phase and then was able to
make
> install and get the proper files in the right place.   I then went
back to
> installing MET,  and then ran into a new problem.  Looks like I'm
getting
> caught up at pb2nc.
>
>
> I have attached the make_install.log once again for you to scan with
the
> new error.
>
>
> Thanks again for your help.
>
>
> Regards,
>
>
> Derek
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Thursday, June 29, 2017 1:27:37 PM
> To: Stinchfield, Derek
> Subject: Re: [rt.rap.ucar.edu #81052] Configure and Make for MET 6
>
> Hi Derek.
>
> The version I compiled was netcdf-cxx4-4.3.0.  We have directions
posted
> here:
>
> http://www.dtcenter.org/met/users/support/online_tutorial/
DTC | | MET Users
Page<http://www.dtcenter.org/met/users/support/online_tutorial/>
www.dtcenter.org
The Developmental Testbed Center (DTC)



> METv6.0/tutorial.php?name=compilation&category=req_libs
>
> for compiling that version:
>
> NetCDF-CXX
>
>    - wget https://github.com/Unidata/netcdf-
cxx4/archive/v4.3.0.tar.gz
>    - tar -xvzf v4.3.0.tar.gz
>    - cd netcdf-cxx4-4.3.0
>    - ./configure --prefix=${MET_LIB_DIR}/external_libs
>    LDFLAGS=-L${MET_LIB_DIR}/external_libs/lib
>    CPPFLAGS=-I${MET_LIB_DIR}/external_libs/include
>    - make install
>
> Perhaps for the fourth step you would want to run this instead
(changing
> paths) (or maybe the locations below are default:
>
> ./configure --prefix=/usr LDFLAGS=-L/usr/lib CPPFLAGS=-I/usr/include
> I'm surprised those files aren't generated.  Do you get compilation
errors?
>
> Thanks,
> Julie
>
>
>
> On Thu, Jun 29, 2017 at 10:48 AM, Stinchfield, Derek via RT <
> met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052 >
> >
> > Hi Julie,
> >
> >
> > All the netcdf4 C files exist.
> >
> >
> > netcdf.h is at /usr/include
> >
> > libnetcdf.a and libnetcdf.so are both in /usr/lib
> >
> >
> > As you said, it's the netcdf-cxx files that are missing, but it
doesn't
> > seem to matter how I install, those files aren't generated.
> >
> >
> > I have used the repository and added the libnetcdfc++4 package,
and I've
> > also tried compiling netcdf-cxx4-4.3.0 from a tarball and neither
have
> > created libnetcdf_c++4.a or libnetcdf_c++4.so, and
/usr/include/netcdf
> > definitely does not exist.
> >
> >
> > Am I using the wrong version of CXX?
> >
> >
> > Regards,
> >
> >
> > Derek
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Thursday, June 29, 2017 10:33:46 AM
> > To: Stinchfield, Derek
> > Subject: Re: [rt.rap.ucar.edu #81052] Configure and Make for MET 6
> >
> > Hi Derek.
> >
> > I see that you are having some difficulty installing met-6.0.
> >
> > The error you are getting:
> >
> > In file included from nc_var_info.cc:24:0:
> > nc_utils.h:22:18: fatal error: netcdf: No such file or directory
> >
> > tells us that MET doesn't know where to find the file "netcdf",
which is
> > included in the NetCDF-CXX installation.  It could be that NetCDF-
CXX is
> > installed and that file does exist, but MET just doesn't know
where to
> find
> > it.
> >
> > You mentioned that you have your MET_NETCDF environment variables
set in
> > the following way:
> >
> > MET_NETCDFINC=/usr/include
> > MET_NETCDFLIB=/usr/lib
> >
> > Can you please tell me if you see the file "netcdf" at
/usr/include?  If
> > not, perhaps you do not have the necessary NetCDF packages as
described
> > here:
> >
> > http://www.dtcenter.org/met/users/support/online_tutorial/
DTC | | MET Users
Page<http://www.dtcenter.org/met/users/support/online_tutorial/>
www.dtcenter.org
The Developmental Testbed Center (DTC)



> > METv6.0/tutorial.php?name=compilation&category=req_libs
> >
> > or perhaps it is in a different location.
> >
> > Here is a quick reference checklist for NetCDF4 installation that
you can
> > use to see if you have the necessary files:
> >
> > Files for NetCDF4 C:
> >
> >    - $MET_NETCDFINC/netcdf.h
> >    - $MET_NETCDFLIB/libnetcdf.a
> >    - $MET_NETCDFLIB/libnetcdf.so
> >
> > Files for NetCDF4 C++:
> >
> >    - $MET_NETCDFINC/netcdf
> >    - $MET_NETCDFLIB/libnetcdf_c++4.a
> >    - $MET_NETCDFLIB/libnetcdf_c++4.so
> >
> > Please take a look and let us know what you find out.  Thanks!
> >
> > Julie
> >
> > On Wed, Jun 28, 2017 at 1:42 PM, Stinchfield, Derek via RT <
> > met_help at ucar.edu> wrote:
> >
> > >
> > > Wed Jun 28 13:42:12 2017: Request 81052 was acted upon.
> > > Transaction: Ticket created by derek at aero.und.edu
> > >        Queue: met_help
> > >      Subject: Configure and Make for MET 6
> > >        Owner: Nobody
> > >   Requestors: derek at aero.und.edu
> > >       Status: new
> > >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052
> >
> > >
> > >
> > > Hi Again,
> > >
> > >
> > > I'm still having a little trouble with installing MET on Linux
Mint 17.
> > >
> > > Running ./config --enable-grib2 seems to go OK, but once I try
to run
> > make
> > > at the prompt, the process hangs on an error complaining about
"no such
> > > file or directory" for netcdf.
> > >
> > > I have the following environment variables and believe they are
> pointing
> > > to the correct places.  I have also verified that my session
does
> indeed
> > > recognize these variables in the environment.
> > >
> > >
> > > MET_NETCDFINC=/usr/include
> > > MET_NETCDFLIB=/usr/lib
> > > MET_HDF5=/usr/lib/x86_64-linux-gnu
> > > MET_BUFR=/opt   (Note that this IS where I put all the files
when
> > > compiling BUFRLIB)
> > > MET_GSLLIB=/usr/lib
> > > MET_GSLINC=/usr/include
> > > MET_GRIB2INC=/usr/bin/grib2/include
> > > MET_GRIB2LIB=/usr/bin/grib2/lib
> > >
> > > I have also met all the prerequisite software needs to the best
of my
> > > understanding based on the functionality we need (basically just
grib2
> > > support); though most are installed using the debian packaging
system
> and
> > > ubuntu's repository.  This includes the various versions of
netcdf and
> > > their corresponding development packages.  BUFRLIB and Grib2 are
the
> only
> > > softwares other than MET that has been installed by downloading
and
> > > compiling the code.
> > >
> > > Attached are the the outputs for the configure and make
commands.  The
> > > configure command was run exactly as outlined above and the make
> command
> > > was run exactly as it is written in the online tutorial for
installing
> > MET
> > > 6.0.
> > >
> > > Any insight you could give into this problem would be greatly
> > appreciated.
> > >
> > > Regards,
> > >
> > > Derek
> > >
> > > Derek Stinchfield
> > > Linux Systems Administrator
> > > UND - Aerospace SCC
> > > derek at aero.und.edu
> > >
> > >
> > >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: Configure and Make for MET 6
From: Julie Prestopnik
Time: Fri Jun 30 14:06:16 2017

Great news, Derek!  Thank you so much for following up to let me know.
I'll
go ahead and close this ticket.  Please feel free to send in a new
ticket
if you or the professor who will be using the software has any other
questions.

Thanks,
Julie

On Fri, Jun 30, 2017 at 1:59 PM, Stinchfield, Derek via RT <
met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052 >
>
> Hi Again Julie,
>
>
> Looks like setting the MET_BUFRLIB variable made the difference,
after
> reconfiguring and running the make install again, the compiling ran
without
> error.
>
>
> I don't know if I got the exact output from the make test run that
the
> tutorial says to look for, but regardless, both ran without getting
an
> error.
>
> We did some tests with the binaries and the professor who will be
using
> the software on this computer just emailed me back saying it looks
as if
> everything is running correctly.
>
>
> I think we can call it a wrap.
>
>
> Thanks again for all your help.
>
> Regards,
>
>
> Derek
>
> ________________________________
> From: Julie Prestopnik via RT <met_help at ucar.edu>
> Sent: Friday, June 30, 2017 11:46:36 AM
> To: Stinchfield, Derek
> Subject: Re: [rt.rap.ucar.edu #81052] Configure and Make for MET 6
>
> Hi Derek.
>
> I'm glad to hear that you were able to get a successful compile of
the
> netcdf-cxx library.  Thank you for attaching your make_install.log
file.
>
> I see the following problem:
>
> /usr/bin/ld: cannot find -lbufr
> collect2: error: ld returned 1 exit status
>
> which indicates that the linker cannot find the BUFR library which
is
> required by the pb2nc tool.
>
> Earlier you mentioned:
>
> MET_BUFR=/opt   (Note that this IS where I put all the files when
compiling
> > BUFRLIB)
> >
>
> If libbufr.a is located in /opt you'll, want to set MET_BUFRLIB =
/opt
> instead of MET_BUFR.  On the following page in the tutorial, we
describe
> what is expected for the $MET_<lib> environment variable.
>
> "The *$MET_<lib>* environment variable can be used if the external
library
> is installed such that there is a main directory which has a
subdirectory
> called "lib" containing the library files and another subdirectory
called
> "include" containing the include files. For example, if the NetCDF
library
> files are installed in /opt/netcdf/lib and the include files are in
> /opt/netcdf/include, you can just define the *$MET_NETCDF*
environment
> variable to be "/opt/netcdf"."
>
> http://www.dtcenter.org/met/users/support/online_tutorial/
> METv6.0/tutorial.php?name=compilation&category=configure
> DTC | | MET Online Tutorial<http://www.dtcenter.
> org/met/users/support/online_tutorial/METv6.0/tutorial.php?
> name=compilation&category=configure>
> www.dtcenter.org
> The Developmental Testbed Center (DTC)
>
>
>
>
> So, in this case, MET is looking in $MET_BUFR/lib (or /opt/lib) for
> libbufr.a, but it sounds like libbufr.a is actually in /opt.
>
> Please try setting MET_BUFRLIB to /opt, make clean, reconfigure, and
then
> try to reinstall again.  Please let us know how it goes and if you
have any
> other questions.
>
> Thanks!
>
> Julie
>
> On Fri, Jun 30, 2017 at 9:32 AM, Stinchfield, Derek via RT <
> met_help at ucar.edu> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052 >
> >
> > Hi Julie,
> >
> >
> > I used your suggestion for the configure phase and then was able
to make
> > install and get the proper files in the right place.   I then went
back
> to
> > installing MET,  and then ran into a new problem.  Looks like I'm
getting
> > caught up at pb2nc.
> >
> >
> > I have attached the make_install.log once again for you to scan
with the
> > new error.
> >
> >
> > Thanks again for your help.
> >
> >
> > Regards,
> >
> >
> > Derek
> >
> > ________________________________
> > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > Sent: Thursday, June 29, 2017 1:27:37 PM
> > To: Stinchfield, Derek
> > Subject: Re: [rt.rap.ucar.edu #81052] Configure and Make for MET 6
> >
> > Hi Derek.
> >
> > The version I compiled was netcdf-cxx4-4.3.0.  We have directions
posted
> > here:
> >
> > http://www.dtcenter.org/met/users/support/online_tutorial/
> DTC | | MET Users
Page<http://www.dtcenter.org/met/users/support/online_
> tutorial/>
> www.dtcenter.org
> The Developmental Testbed Center (DTC)
>
>
>
> > METv6.0/tutorial.php?name=compilation&category=req_libs
> >
> > for compiling that version:
> >
> > NetCDF-CXX
> >
> >    - wget https://github.com/Unidata/netcdf-
cxx4/archive/v4.3.0.tar.gz
> >    - tar -xvzf v4.3.0.tar.gz
> >    - cd netcdf-cxx4-4.3.0
> >    - ./configure --prefix=${MET_LIB_DIR}/external_libs
> >    LDFLAGS=-L${MET_LIB_DIR}/external_libs/lib
> >    CPPFLAGS=-I${MET_LIB_DIR}/external_libs/include
> >    - make install
> >
> > Perhaps for the fourth step you would want to run this instead
(changing
> > paths) (or maybe the locations below are default:
> >
> > ./configure --prefix=/usr LDFLAGS=-L/usr/lib CPPFLAGS=-
I/usr/include
> > I'm surprised those files aren't generated.  Do you get
compilation
> errors?
> >
> > Thanks,
> > Julie
> >
> >
> >
> > On Thu, Jun 29, 2017 at 10:48 AM, Stinchfield, Derek via RT <
> > met_help at ucar.edu> wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81052 >
> > >
> > > Hi Julie,
> > >
> > >
> > > All the netcdf4 C files exist.
> > >
> > >
> > > netcdf.h is at /usr/include
> > >
> > > libnetcdf.a and libnetcdf.so are both in /usr/lib
> > >
> > >
> > > As you said, it's the netcdf-cxx files that are missing, but it
doesn't
> > > seem to matter how I install, those files aren't generated.
> > >
> > >
> > > I have used the repository and added the libnetcdfc++4 package,
and
> I've
> > > also tried compiling netcdf-cxx4-4.3.0 from a tarball and
neither have
> > > created libnetcdf_c++4.a or libnetcdf_c++4.so, and
/usr/include/netcdf
> > > definitely does not exist.
> > >
> > >
> > > Am I using the wrong version of CXX?
> > >
> > >
> > > Regards,
> > >
> > >
> > > Derek
> > >
> > > ________________________________
> > > From: Julie Prestopnik via RT <met_help at ucar.edu>
> > > Sent: Thursday, June 29, 2017 10:33:46 AM
> > > To: Stinchfield, Derek
> > > Subject: Re: [rt.rap.ucar.edu #81052] Configure and Make for MET
6
> > >
> > > Hi Derek.
> > >
> > > I see that you are having some difficulty installing met-6.0.
> > >
> > > The error you are getting:
> > >
> > > In file included from nc_var_info.cc:24:0:
> > > nc_utils.h:22:18: fatal error: netcdf: No such file or directory
> > >
> > > tells us that MET doesn't know where to find the file "netcdf",
which
> is
> > > included in the NetCDF-CXX installation.  It could be that
NetCDF-CXX
> is
> > > installed and that file does exist, but MET just doesn't know
where to
> > find
> > > it.
> > >
> > > You mentioned that you have your MET_NETCDF environment
variables set
> in
> > > the following way:
> > >
> > > MET_NETCDFINC=/usr/include
> > > MET_NETCDFLIB=/usr/lib
> > >
> > > Can you please tell me if you see the file "netcdf" at
/usr/include?
> If
> > > not, perhaps you do not have the necessary NetCDF packages as
described
> > > here:
> > >
> > > http://www.dtcenter.org/met/users/support/online_tutorial/
> DTC | | MET Users
Page<http://www.dtcenter.org/met/users/support/online_
> tutorial/>
> www.dtcenter.org
> The Developmental Testbed Center (DTC)
>
>
>
> > > METv6.0/tutorial.php?name=compilation&category=req_libs
> > >
> > > or perhaps it is in a different location.
> > >
> > > Here is a quick reference checklist for NetCDF4 installation
that you
> can
> > > use to see if you have the necessary files:
> > >
> > > Files for NetCDF4 C:
> > >
> > >    - $MET_NETCDFINC/netcdf.h
> > >    - $MET_NETCDFLIB/libnetcdf.a
> > >    - $MET_NETCDFLIB/libnetcdf.so
> > >
> > > Files for NetCDF4 C++:
> > >
> > >    - $MET_NETCDFINC/netcdf
> > >    - $MET_NETCDFLIB/libnetcdf_c++4.a
> > >    - $MET_NETCDFLIB/libnetcdf_c++4.so
> > >
> > > Please take a look and let us know what you find out.  Thanks!
> > >
> > > Julie
> > >
> > > On Wed, Jun 28, 2017 at 1:42 PM, Stinchfield, Derek via RT <
> > > met_help at ucar.edu> wrote:
> > >
> > > >
> > > > Wed Jun 28 13:42:12 2017: Request 81052 was acted upon.
> > > > Transaction: Ticket created by derek at aero.und.edu
> > > >        Queue: met_help
> > > >      Subject: Configure and Make for MET 6
> > > >        Owner: Nobody
> > > >   Requestors: derek at aero.und.edu
> > > >       Status: new
> > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=81052
> > >
> > > >
> > > >
> > > > Hi Again,
> > > >
> > > >
> > > > I'm still having a little trouble with installing MET on Linux
Mint
> 17.
> > > >
> > > > Running ./config --enable-grib2 seems to go OK, but once I try
to run
> > > make
> > > > at the prompt, the process hangs on an error complaining about
"no
> such
> > > > file or directory" for netcdf.
> > > >
> > > > I have the following environment variables and believe they
are
> > pointing
> > > > to the correct places.  I have also verified that my session
does
> > indeed
> > > > recognize these variables in the environment.
> > > >
> > > >
> > > > MET_NETCDFINC=/usr/include
> > > > MET_NETCDFLIB=/usr/lib
> > > > MET_HDF5=/usr/lib/x86_64-linux-gnu
> > > > MET_BUFR=/opt   (Note that this IS where I put all the files
when
> > > > compiling BUFRLIB)
> > > > MET_GSLLIB=/usr/lib
> > > > MET_GSLINC=/usr/include
> > > > MET_GRIB2INC=/usr/bin/grib2/include
> > > > MET_GRIB2LIB=/usr/bin/grib2/lib
> > > >
> > > > I have also met all the prerequisite software needs to the
best of my
> > > > understanding based on the functionality we need (basically
just
> grib2
> > > > support); though most are installed using the debian packaging
system
> > and
> > > > ubuntu's repository.  This includes the various versions of
netcdf
> and
> > > > their corresponding development packages.  BUFRLIB and Grib2
are the
> > only
> > > > softwares other than MET that has been installed by
downloading and
> > > > compiling the code.
> > > >
> > > > Attached are the the outputs for the configure and make
commands.
> The
> > > > configure command was run exactly as outlined above and the
make
> > command
> > > > was run exactly as it is written in the online tutorial for
> installing
> > > MET
> > > > 6.0.
> > > >
> > > > Any insight you could give into this problem would be greatly
> > > appreciated.
> > > >
> > > > Regards,
> > > >
> > > > Derek
> > > >
> > > > Derek Stinchfield
> > > > Linux Systems Administrator
> > > > UND - Aerospace SCC
> > > > derek at aero.und.edu
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>

------------------------------------------------


More information about the Met_help mailing list