[Met_help] [rt.rap.ucar.edu #78625] History for install error of met

John Halley Gotway via RT met_help at ucar.edu
Fri Dec 2 09:17:17 MST 2016


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

Hi All,

         I want to install MET on linux system, but the installation has been failed, and the errors follows below:



In file included from nc_var_info.cc(24):
nc_var_info.h(24): catastrophic error: cannot open source file "netcdf.hh"
  #include <netcdf.hh>
                      ^

compilation aborted for nc_var_info.cc (code 4)
make[3]: *** [libvx_nc_util_a-nc_var_info.o] Error 4
make[3]: Leaving directory `/home/*****/tool/met-5.0/src/libcode/vx_nc_util'
make[2]: *** [install-recursive] Error 1

************
I checked my netcdf4.4.1, the include file only has netcdf.h, but if I replaced netcdf.hh to netcdf.h, lots of errors occured as undifined ***.
Do you know what;s the problem of it?
Thank you.
Mandy


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

Subject: install error of met
From: John Halley Gotway
Time: Wed Nov 09 12:16:59 2016

Hello Mandy,

I see that you're having trouble compiling MET using NetCDF version
4.4.1.
Older versions of NetCDF include the C, C++, and Fortran API's all
bundled
together.  It's possible that you grabbed on that doesn't include the
C++
API.  Also, I think they may have dropped the netcdf.hh header file
along
the way.

In the next version of MET, version 6.0, we'll be switching to using
NetCDF
version 4.0+.  For MET version 5.2, we're using the classic data model
of
NetCDF3.  Below I've cut-and-pasted some commands I wrote in another
recent
MET-Help question.

These assume you're using GNU compilers, but you can swap that out for
a
different compiler family.

FYI, here's the online tutorial page that talks about compiling
NetCDF:
http://www.dtcenter.org/met/users/support/online_tutorial/METv5.2/tutorial.php?name=compilation&category=req_libs

wget ftp://ftp.unidata.ucar.edu/pub/netcdf/old/netcdf-4.1.1.tar.gz
tar -xvzf netcdf-4.1.1.tar.gz
cd netcdf-4.1.1
./configure --prefix=/path/to/install/directory CC=`which gcc`
CXX=`which
g++` FC='' F90='' --disable-netcdf-4
make
make install

Please let us know if you continue having trouble compiling NetCDF and
MET.

Thanks,
John Halley Gotway

On Tue, Nov 8, 2016 at 7:43 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
wrote:

>
> Tue Nov 08 19:43:09 2016: Request 78625 was acted upon.
> Transaction: Ticket created by Man.Zhang-1 at ou.edu
>        Queue: met_help
>      Subject: install error of met
>        Owner: Nobody
>   Requestors: Man.Zhang-1 at ou.edu
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
>
>
> Hi All,
>
>          I want to install MET on linux system, but the installation
has
> been failed, and the errors follows below:
>
>
>
> In file included from nc_var_info.cc(24):
> nc_var_info.h(24): catastrophic error: cannot open source file
"netcdf.hh"
>   #include <netcdf.hh>
>                       ^
>
> compilation aborted for nc_var_info.cc (code 4)
> make[3]: *** [libvx_nc_util_a-nc_var_info.o] Error 4
> make[3]: Leaving directory `/home/*****/tool/met-5.0/src/
> libcode/vx_nc_util'
> make[2]: *** [install-recursive] Error 1
>
> ************
> I checked my netcdf4.4.1, the include file only has netcdf.h, but if
I
> replaced netcdf.hh to netcdf.h, lots of errors occured as undifined
***.
> Do you know what;s the problem of it?
> Thank you.
> Mandy
>
>

------------------------------------------------
Subject: install error of met
From: Zhang, Mandy
Time: Thu Nov 17 15:07:12 2016

Hi All,

          I use netcdf4.4 to configure the MET, but the error is

ld: cannot find -lnetcdf_c++
make[4]: *** [ensemble_stat] Error 1
*********
        I checked my netcdf_c++ lib, now the name is libnetcdf_c++4.a
Can I modify the c++ lib name in the makefile?
Or I have to install the former netcdf version?
Thank you!
Mandy

________________________________
From: John Halley Gotway via RT <met_help at ucar.edu>
Sent: Wednesday, November 9, 2016 1:17:00 PM
To: Zhang, Mandy
Subject: Re: [rt.rap.ucar.edu #78625] install error of met

Hello Mandy,

I see that you're having trouble compiling MET using NetCDF version
4.4.1.
Older versions of NetCDF include the C, C++, and Fortran API's all
bundled
together.  It's possible that you grabbed on that doesn't include the
C++
API.  Also, I think they may have dropped the netcdf.hh header file
along
the way.

In the next version of MET, version 6.0, we'll be switching to using
NetCDF
version 4.0+.  For MET version 5.2, we're using the classic data model
of
NetCDF3.  Below I've cut-and-pasted some commands I wrote in another
recent
MET-Help question.

These assume you're using GNU compilers, but you can swap that out for
a
different compiler family.

FYI, here's the online tutorial page that talks about compiling
NetCDF:
http://www.dtcenter.org/met/users/support/online_tutorial/METv5.2/tutorial.php?name=compilation&category=req_libs

wget ftp://ftp.unidata.ucar.edu/pub/netcdf/old/netcdf-4.1.1.tar.gz
tar -xvzf netcdf-4.1.1.tar.gz
cd netcdf-4.1.1
./configure --prefix=/path/to/install/directory CC=`which gcc`
CXX=`which
g++` FC='' F90='' --disable-netcdf-4
make
make install

Please let us know if you continue having trouble compiling NetCDF and
MET.

Thanks,
John Halley Gotway

On Tue, Nov 8, 2016 at 7:43 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
wrote:

>
> Tue Nov 08 19:43:09 2016: Request 78625 was acted upon.
> Transaction: Ticket created by Man.Zhang-1 at ou.edu
>        Queue: met_help
>      Subject: install error of met
>        Owner: Nobody
>   Requestors: Man.Zhang-1 at ou.edu
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
>
>
> Hi All,
>
>          I want to install MET on linux system, but the installation
has
> been failed, and the errors follows below:
>
>
>
> In file included from nc_var_info.cc(24):
> nc_var_info.h(24): catastrophic error: cannot open source file
"netcdf.hh"
>   #include <netcdf.hh>
>                       ^
>
> compilation aborted for nc_var_info.cc (code 4)
> make[3]: *** [libvx_nc_util_a-nc_var_info.o] Error 4
> make[3]: Leaving directory `/home/*****/tool/met-5.0/src/
> libcode/vx_nc_util'
> make[2]: *** [install-recursive] Error 1
>
> ************
> I checked my netcdf4.4.1, the include file only has netcdf.h, but if
I
> replaced netcdf.hh to netcdf.h, lots of errors occured as undifined
***.
> Do you know what;s the problem of it?
> Thank you.
> Mandy
>
>


------------------------------------------------
Subject: install error of met
From: John Halley Gotway
Time: Fri Nov 18 12:15:16 2016

Hi Mandy,

I have not used that version of NetCDF for MET.  Unfortunately, I
don't
have time to test that out right.  Yes, it looks like the name of that
library has changed.

You'll find that "-lnetcdf_c++" shows up in many of the makefiles in
MET:

grep "netcdf_c++" `find ./ -name "Makefile.am"`

If you wanted to try linking to a different library name, you'd need
to
switch "-lnetcdf_c++" to "-lnetcdf_c++4" in all those spots.  But,
like I
said, I haven't tried it.  We will be switching to using NetCDF4 in
the MET
version 6.0 release.

For compiling version 5.2, my suggest would be compiling with the
earlier
version of NetCDF that I mentioned in a previous email.  I do know
that
would work since we've done it many times.

Hope that helps.

Thanks,
John


On Thu, Nov 17, 2016 at 3:07 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
>
> Hi All,
>
>           I use netcdf4.4 to configure the MET, but the error is
>
> ld: cannot find -lnetcdf_c++
> make[4]: *** [ensemble_stat] Error 1
> *********
>         I checked my netcdf_c++ lib, now the name is
libnetcdf_c++4.a
> Can I modify the c++ lib name in the makefile?
> Or I have to install the former netcdf version?
> Thank you!
> Mandy
>
> ________________________________
> From: John Halley Gotway via RT <met_help at ucar.edu>
> Sent: Wednesday, November 9, 2016 1:17:00 PM
> To: Zhang, Mandy
> Subject: Re: [rt.rap.ucar.edu #78625] install error of met
>
> Hello Mandy,
>
> I see that you're having trouble compiling MET using NetCDF version
4.4.1.
> Older versions of NetCDF include the C, C++, and Fortran API's all
bundled
> together.  It's possible that you grabbed on that doesn't include
the C++
> API.  Also, I think they may have dropped the netcdf.hh header file
along
> the way.
>
> In the next version of MET, version 6.0, we'll be switching to using
NetCDF
> version 4.0+.  For MET version 5.2, we're using the classic data
model of
> NetCDF3.  Below I've cut-and-pasted some commands I wrote in another
recent
> MET-Help question.
>
> These assume you're using GNU compilers, but you can swap that out
for a
> different compiler family.
>
> FYI, here's the online tutorial page that talks about compiling
NetCDF:
> http://www.dtcenter.org/met/users/support/online_tutorial/ME
> Tv5.2/tutorial.php?name=compilation&category=req_libs
>
> wget ftp://ftp.unidata.ucar.edu/pub/netcdf/old/netcdf-4.1.1.tar.gz
> tar -xvzf netcdf-4.1.1.tar.gz
> cd netcdf-4.1.1
> ./configure --prefix=/path/to/install/directory CC=`which gcc`
CXX=`which
> g++` FC='' F90='' --disable-netcdf-4
> make
> make install
>
> Please let us know if you continue having trouble compiling NetCDF
and MET.
>
> Thanks,
> John Halley Gotway
>
> On Tue, Nov 8, 2016 at 7:43 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > Tue Nov 08 19:43:09 2016: Request 78625 was acted upon.
> > Transaction: Ticket created by Man.Zhang-1 at ou.edu
> >        Queue: met_help
> >      Subject: install error of met
> >        Owner: Nobody
> >   Requestors: Man.Zhang-1 at ou.edu
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
> >
> >
> > Hi All,
> >
> >          I want to install MET on linux system, but the
installation has
> > been failed, and the errors follows below:
> >
> >
> >
> > In file included from nc_var_info.cc(24):
> > nc_var_info.h(24): catastrophic error: cannot open source file
> "netcdf.hh"
> >   #include <netcdf.hh>
> >                       ^
> >
> > compilation aborted for nc_var_info.cc (code 4)
> > make[3]: *** [libvx_nc_util_a-nc_var_info.o] Error 4
> > make[3]: Leaving directory `/home/*****/tool/met-5.0/src/
> > libcode/vx_nc_util'
> > make[2]: *** [install-recursive] Error 1
> >
> > ************
> > I checked my netcdf4.4.1, the include file only has netcdf.h, but
if I
> > replaced netcdf.hh to netcdf.h, lots of errors occured as
undifined ***.
> > Do you know what;s the problem of it?
> > Thank you.
> > Mandy
> >
> >
>
>
>

------------------------------------------------
Subject: install error of met
From: Zhang, Mandy
Time: Fri Nov 18 14:11:20 2016

John,

Thanks for your quick response! Now I switch to former version of
Netcdf, it works for most of the lib building. But there's error while
build mode_graphics,  follows by:

ttype_to_string.o `test -f 'cgraphbase_plottype_to_string.cc' || echo
'./'`cgraphbase_plottype_to_string.cc
In file included from cgraph_font.h(22),
                 from cgraph_main.h(25),
                 from cgraphbase_plottype_to_string.h(38),
                 from cgraphbase_plottype_to_string.cc(35):
/usr/include/ft2build.h(56): catastrophic error: cannot open source
file "freetype/config/ftheader.h"
  #include <freetype/config/ftheader.h>

************************

I checked with my freetype lib, the theader.h locates at:


/home/mzhang/tool/freetype/include/freetype2/freetype/config


Could you tell me what's wrong with it?

Thank you very much!

Mandy


________________________________
From: John Halley Gotway via RT <met_help at ucar.edu>
Sent: Friday, November 18, 2016 1:15:16 PM
To: Zhang, Mandy
Subject: Re: [rt.rap.ucar.edu #78625] install error of met

Hi Mandy,

I have not used that version of NetCDF for MET.  Unfortunately, I
don't
have time to test that out right.  Yes, it looks like the name of that
library has changed.

You'll find that "-lnetcdf_c++" shows up in many of the makefiles in
MET:

grep "netcdf_c++" `find ./ -name "Makefile.am"`

If you wanted to try linking to a different library name, you'd need
to
switch "-lnetcdf_c++" to "-lnetcdf_c++4" in all those spots.  But,
like I
said, I haven't tried it.  We will be switching to using NetCDF4 in
the MET
version 6.0 release.

For compiling version 5.2, my suggest would be compiling with the
earlier
version of NetCDF that I mentioned in a previous email.  I do know
that
would work since we've done it many times.

Hope that helps.

Thanks,
John


On Thu, Nov 17, 2016 at 3:07 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
>
> Hi All,
>
>           I use netcdf4.4 to configure the MET, but the error is
>
> ld: cannot find -lnetcdf_c++
> make[4]: *** [ensemble_stat] Error 1
> *********
>         I checked my netcdf_c++ lib, now the name is
libnetcdf_c++4.a
> Can I modify the c++ lib name in the makefile?
> Or I have to install the former netcdf version?
> Thank you!
> Mandy
>
> ________________________________
> From: John Halley Gotway via RT <met_help at ucar.edu>
> Sent: Wednesday, November 9, 2016 1:17:00 PM
> To: Zhang, Mandy
> Subject: Re: [rt.rap.ucar.edu #78625] install error of met
>
> Hello Mandy,
>
> I see that you're having trouble compiling MET using NetCDF version
4.4.1.
> Older versions of NetCDF include the C, C++, and Fortran API's all
bundled
> together.  It's possible that you grabbed on that doesn't include
the C++
> API.  Also, I think they may have dropped the netcdf.hh header file
along
> the way.
>
> In the next version of MET, version 6.0, we'll be switching to using
NetCDF
> version 4.0+.  For MET version 5.2, we're using the classic data
model of
> NetCDF3.  Below I've cut-and-pasted some commands I wrote in another
recent
> MET-Help question.
>
> These assume you're using GNU compilers, but you can swap that out
for a
> different compiler family.
>
> FYI, here's the online tutorial page that talks about compiling
NetCDF:
> http://www.dtcenter.org/met/users/support/online_tutorial/ME
> Tv5.2/tutorial.php?name=compilation&category=req_libs
>
> wget ftp://ftp.unidata.ucar.edu/pub/netcdf/old/netcdf-4.1.1.tar.gz
> tar -xvzf netcdf-4.1.1.tar.gz
> cd netcdf-4.1.1
> ./configure --prefix=/path/to/install/directory CC=`which gcc`
CXX=`which
> g++` FC='' F90='' --disable-netcdf-4
> make
> make install
>
> Please let us know if you continue having trouble compiling NetCDF
and MET.
>
> Thanks,
> John Halley Gotway
>
> On Tue, Nov 8, 2016 at 7:43 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > Tue Nov 08 19:43:09 2016: Request 78625 was acted upon.
> > Transaction: Ticket created by Man.Zhang-1 at ou.edu
> >        Queue: met_help
> >      Subject: install error of met
> >        Owner: Nobody
> >   Requestors: Man.Zhang-1 at ou.edu
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
> >
> >
> > Hi All,
> >
> >          I want to install MET on linux system, but the
installation has
> > been failed, and the errors follows below:
> >
> >
> >
> > In file included from nc_var_info.cc(24):
> > nc_var_info.h(24): catastrophic error: cannot open source file
> "netcdf.hh"
> >   #include <netcdf.hh>
> >                       ^
> >
> > compilation aborted for nc_var_info.cc (code 4)
> > make[3]: *** [libvx_nc_util_a-nc_var_info.o] Error 4
> > make[3]: Leaving directory `/home/*****/tool/met-5.0/src/
> > libcode/vx_nc_util'
> > make[2]: *** [install-recursive] Error 1
> >
> > ************
> > I checked my netcdf4.4.1, the include file only has netcdf.h, but
if I
> > replaced netcdf.hh to netcdf.h, lots of errors occured as
undifined ***.
> > Do you know what;s the problem of it?
> > Thank you.
> > Mandy
> >
> >
>
>
>


------------------------------------------------
Subject: install error of met
From: John Halley Gotway
Time: Fri Nov 18 16:59:52 2016

Mandy,

Ah yes.  We have defined that as a development issue for the next
release.
Sorry for the hassle!

Newer versions of the freetype library split their headers across two
directories, and we still need to update the compilation process to
account
for that.

In the meantime, you have two options:

(1) When you run the "configure" command for MET, you can omit the
"--enable-mode-graphics".  That will skip over the compilation of the
plot_mode_field tool, which is currently the only tool that uses the
freetype library.

(2) If you'd like to compile that tool, you could add "CXXFLAGS=-I
/home/mzhang/tool/freetype/include/freetype2" to your configure
command for
MET.  That should tell the compiler where an additional place to look
for
header files.

In either case, you should rerun configure with option (1) or (2) and
then
try recompiling MET.

Please let me know how it goes.

Thanks,
John

On Fri, Nov 18, 2016 at 2:11 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
>
> John,
>
> Thanks for your quick response! Now I switch to former version of
Netcdf,
> it works for most of the lib building. But there's error while build
> mode_graphics,  follows by:
>
> ttype_to_string.o `test -f 'cgraphbase_plottype_to_string.cc' ||
echo
> './'`cgraphbase_plottype_to_string.cc
> In file included from cgraph_font.h(22),
>                  from cgraph_main.h(25),
>                  from cgraphbase_plottype_to_string.h(38),
>                  from cgraphbase_plottype_to_string.cc(35):
> /usr/include/ft2build.h(56): catastrophic error: cannot open source
file
> "freetype/config/ftheader.h"
>   #include <freetype/config/ftheader.h>
>
> ************************
>
> I checked with my freetype lib, the theader.h locates at:
>
>
> /home/mzhang/tool/freetype/include/freetype2/freetype/config
>
>
> Could you tell me what's wrong with it?
>
> Thank you very much!
>
> Mandy
>
>
> ________________________________
> From: John Halley Gotway via RT <met_help at ucar.edu>
> Sent: Friday, November 18, 2016 1:15:16 PM
> To: Zhang, Mandy
> Subject: Re: [rt.rap.ucar.edu #78625] install error of met
>
> Hi Mandy,
>
> I have not used that version of NetCDF for MET.  Unfortunately, I
don't
> have time to test that out right.  Yes, it looks like the name of
that
> library has changed.
>
> You'll find that "-lnetcdf_c++" shows up in many of the makefiles in
MET:
>
> grep "netcdf_c++" `find ./ -name "Makefile.am"`
>
> If you wanted to try linking to a different library name, you'd need
to
> switch "-lnetcdf_c++" to "-lnetcdf_c++4" in all those spots.  But,
like I
> said, I haven't tried it.  We will be switching to using NetCDF4 in
the MET
> version 6.0 release.
>
> For compiling version 5.2, my suggest would be compiling with the
earlier
> version of NetCDF that I mentioned in a previous email.  I do know
that
> would work since we've done it many times.
>
> Hope that helps.
>
> Thanks,
> John
>
>
> On Thu, Nov 17, 2016 at 3:07 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
> >
> > Hi All,
> >
> >           I use netcdf4.4 to configure the MET, but the error is
> >
> > ld: cannot find -lnetcdf_c++
> > make[4]: *** [ensemble_stat] Error 1
> > *********
> >         I checked my netcdf_c++ lib, now the name is
libnetcdf_c++4.a
> > Can I modify the c++ lib name in the makefile?
> > Or I have to install the former netcdf version?
> > Thank you!
> > Mandy
> >
> > ________________________________
> > From: John Halley Gotway via RT <met_help at ucar.edu>
> > Sent: Wednesday, November 9, 2016 1:17:00 PM
> > To: Zhang, Mandy
> > Subject: Re: [rt.rap.ucar.edu #78625] install error of met
> >
> > Hello Mandy,
> >
> > I see that you're having trouble compiling MET using NetCDF
version
> 4.4.1.
> > Older versions of NetCDF include the C, C++, and Fortran API's all
> bundled
> > together.  It's possible that you grabbed on that doesn't include
the C++
> > API.  Also, I think they may have dropped the netcdf.hh header
file along
> > the way.
> >
> > In the next version of MET, version 6.0, we'll be switching to
using
> NetCDF
> > version 4.0+.  For MET version 5.2, we're using the classic data
model of
> > NetCDF3.  Below I've cut-and-pasted some commands I wrote in
another
> recent
> > MET-Help question.
> >
> > These assume you're using GNU compilers, but you can swap that out
for a
> > different compiler family.
> >
> > FYI, here's the online tutorial page that talks about compiling
NetCDF:
> > http://www.dtcenter.org/met/users/support/online_tutorial/ME
> > Tv5.2/tutorial.php?name=compilation&category=req_libs
> >
> > wget ftp://ftp.unidata.ucar.edu/pub/netcdf/old/netcdf-4.1.1.tar.gz
> > tar -xvzf netcdf-4.1.1.tar.gz
> > cd netcdf-4.1.1
> > ./configure --prefix=/path/to/install/directory CC=`which gcc`
> CXX=`which
> > g++` FC='' F90='' --disable-netcdf-4
> > make
> > make install
> >
> > Please let us know if you continue having trouble compiling NetCDF
and
> MET.
> >
> > Thanks,
> > John Halley Gotway
> >
> > On Tue, Nov 8, 2016 at 7:43 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > Tue Nov 08 19:43:09 2016: Request 78625 was acted upon.
> > > Transaction: Ticket created by Man.Zhang-1 at ou.edu
> > >        Queue: met_help
> > >      Subject: install error of met
> > >        Owner: Nobody
> > >   Requestors: Man.Zhang-1 at ou.edu
> > >       Status: new
> > >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625
> >
> > >
> > >
> > > Hi All,
> > >
> > >          I want to install MET on linux system, but the
installation
> has
> > > been failed, and the errors follows below:
> > >
> > >
> > >
> > > In file included from nc_var_info.cc(24):
> > > nc_var_info.h(24): catastrophic error: cannot open source file
> > "netcdf.hh"
> > >   #include <netcdf.hh>
> > >                       ^
> > >
> > > compilation aborted for nc_var_info.cc (code 4)
> > > make[3]: *** [libvx_nc_util_a-nc_var_info.o] Error 4
> > > make[3]: Leaving directory `/home/*****/tool/met-5.0/src/
> > > libcode/vx_nc_util'
> > > make[2]: *** [install-recursive] Error 1
> > >
> > > ************
> > > I checked my netcdf4.4.1, the include file only has netcdf.h,
but if I
> > > replaced netcdf.hh to netcdf.h, lots of errors occured as
undifined
> ***.
> > > Do you know what;s the problem of it?
> > > Thank you.
> > > Mandy
> > >
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: install error of met
From: Zhang, Mandy
Time: Wed Nov 23 10:04:18 2016

John,

        I use netcdf4.1.3 (disable-netcdf-4) to compile MET, all the
libs are built succesfully, but when I "make test", the errors follows
like:



*** Running MODE-Analysis to summarize by case ***
mode_analysis: error while loading shared libraries:
libnetcdf_c++.so.4: cannot open shared object file: No such file or
directory

*** Testing PLOT_DATA_PLANE application ***


*** Running PLOT_DATA_PLANE on a sample GRIB1 gridded file  ***
plot_data_plane: error while loading shared libraries:
libnetcdf_c++.so.4: cannot open shared object file: No such file or
directory

*** Running PLOT_DATA_PLANE on a sample netCDF file  ***
plot_data_plane: error while loading shared libraries:
libnetcdf_c++.so.4: cannot open shared object file: No such file or
directory
*****************
I think I need the former version as you recommand, then I try the
netcdf4.1.1, but when I "make install" the met, the errors follows:
/home/mzhang/tool/netcdf41/lib/libnetcdf.a(liboc_la-curlfunctions.o):
In function `set_proxy':
curlfunctions.c:(.text+0x149): undefined reference to
`curl_easy_setopt'
curlfunctions.c:(.text+0x165): undefined reference to
`curl_easy_setopt'
curlfunctions.c:(.text+0x22d): undefined reference to
`curl_easy_setopt'
/home/mzhang/tool/netcdf41/lib/libnetcdf.a(liboc_la-
curlfunctions.o):curlfunctions.c:(.text+0x290): more undefined
references to `curl_easy_setopt' follow
make[4]: *** [ensemble_stat] Error 1
make[4]: Leaving directory `/home/mzhang/tool/met-
5.2/src/tools/core/ensemble_stat'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/home/mzhang/tool/met-5.2/src/tools/core'
make[2]: *** [install-recursive] Error 1
***************************************
Do you know how to solve these problems?
Thank you very much! and Happy thanksgiving!

Mandy



________________________________
From: John Halley Gotway via RT <met_help at ucar.edu>
Sent: Friday, November 18, 2016 5:59:52 PM
To: Zhang, Mandy
Subject: Re: [rt.rap.ucar.edu #78625] install error of met

Mandy,

Ah yes.  We have defined that as a development issue for the next
release.
Sorry for the hassle!

Newer versions of the freetype library split their headers across two
directories, and we still need to update the compilation process to
account
for that.

In the meantime, you have two options:

(1) When you run the "configure" command for MET, you can omit the
"--enable-mode-graphics".  That will skip over the compilation of the
plot_mode_field tool, which is currently the only tool that uses the
freetype library.

(2) If you'd like to compile that tool, you could add "CXXFLAGS=-I
/home/mzhang/tool/freetype/include/freetype2" to your configure
command for
MET.  That should tell the compiler where an additional place to look
for
header files.

In either case, you should rerun configure with option (1) or (2) and
then
try recompiling MET.

Please let me know how it goes.

Thanks,
John

On Fri, Nov 18, 2016 at 2:11 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
>
> John,
>
> Thanks for your quick response! Now I switch to former version of
Netcdf,
> it works for most of the lib building. But there's error while build
> mode_graphics,  follows by:
>
> ttype_to_string.o `test -f 'cgraphbase_plottype_to_string.cc' ||
echo
> './'`cgraphbase_plottype_to_string.cc
> In file included from cgraph_font.h(22),
>                  from cgraph_main.h(25),
>                  from cgraphbase_plottype_to_string.h(38),
>                  from cgraphbase_plottype_to_string.cc(35):
> /usr/include/ft2build.h(56): catastrophic error: cannot open source
file
> "freetype/config/ftheader.h"
>   #include <freetype/config/ftheader.h>
>
> ************************
>
> I checked with my freetype lib, the theader.h locates at:
>
>
> /home/mzhang/tool/freetype/include/freetype2/freetype/config
>
>
> Could you tell me what's wrong with it?
>
> Thank you very much!
>
> Mandy
>
>
> ________________________________
> From: John Halley Gotway via RT <met_help at ucar.edu>
> Sent: Friday, November 18, 2016 1:15:16 PM
> To: Zhang, Mandy
> Subject: Re: [rt.rap.ucar.edu #78625] install error of met
>
> Hi Mandy,
>
> I have not used that version of NetCDF for MET.  Unfortunately, I
don't
> have time to test that out right.  Yes, it looks like the name of
that
> library has changed.
>
> You'll find that "-lnetcdf_c++" shows up in many of the makefiles in
MET:
>
> grep "netcdf_c++" `find ./ -name "Makefile.am"`
>
> If you wanted to try linking to a different library name, you'd need
to
> switch "-lnetcdf_c++" to "-lnetcdf_c++4" in all those spots.  But,
like I
> said, I haven't tried it.  We will be switching to using NetCDF4 in
the MET
> version 6.0 release.
>
> For compiling version 5.2, my suggest would be compiling with the
earlier
> version of NetCDF that I mentioned in a previous email.  I do know
that
> would work since we've done it many times.
>
> Hope that helps.
>
> Thanks,
> John
>
>
> On Thu, Nov 17, 2016 at 3:07 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
> >
> > Hi All,
> >
> >           I use netcdf4.4 to configure the MET, but the error is
> >
> > ld: cannot find -lnetcdf_c++
> > make[4]: *** [ensemble_stat] Error 1
> > *********
> >         I checked my netcdf_c++ lib, now the name is
libnetcdf_c++4.a
> > Can I modify the c++ lib name in the makefile?
> > Or I have to install the former netcdf version?
> > Thank you!
> > Mandy
> >
> > ________________________________
> > From: John Halley Gotway via RT <met_help at ucar.edu>
> > Sent: Wednesday, November 9, 2016 1:17:00 PM
> > To: Zhang, Mandy
> > Subject: Re: [rt.rap.ucar.edu #78625] install error of met
> >
> > Hello Mandy,
> >
> > I see that you're having trouble compiling MET using NetCDF
version
> 4.4.1.
> > Older versions of NetCDF include the C, C++, and Fortran API's all
> bundled
> > together.  It's possible that you grabbed on that doesn't include
the C++
> > API.  Also, I think they may have dropped the netcdf.hh header
file along
> > the way.
> >
> > In the next version of MET, version 6.0, we'll be switching to
using
> NetCDF
> > version 4.0+.  For MET version 5.2, we're using the classic data
model of
> > NetCDF3.  Below I've cut-and-pasted some commands I wrote in
another
> recent
> > MET-Help question.
> >
> > These assume you're using GNU compilers, but you can swap that out
for a
> > different compiler family.
> >
> > FYI, here's the online tutorial page that talks about compiling
NetCDF:
> > http://www.dtcenter.org/met/users/support/online_tutorial/ME
> > Tv5.2/tutorial.php?name=compilation&category=req_libs
> >
> > wget ftp://ftp.unidata.ucar.edu/pub/netcdf/old/netcdf-4.1.1.tar.gz
> > tar -xvzf netcdf-4.1.1.tar.gz
> > cd netcdf-4.1.1
> > ./configure --prefix=/path/to/install/directory CC=`which gcc`
> CXX=`which
> > g++` FC='' F90='' --disable-netcdf-4
> > make
> > make install
> >
> > Please let us know if you continue having trouble compiling NetCDF
and
> MET.
> >
> > Thanks,
> > John Halley Gotway
> >
> > On Tue, Nov 8, 2016 at 7:43 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > Tue Nov 08 19:43:09 2016: Request 78625 was acted upon.
> > > Transaction: Ticket created by Man.Zhang-1 at ou.edu
> > >        Queue: met_help
> > >      Subject: install error of met
> > >        Owner: Nobody
> > >   Requestors: Man.Zhang-1 at ou.edu
> > >       Status: new
> > >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625
> >
> > >
> > >
> > > Hi All,
> > >
> > >          I want to install MET on linux system, but the
installation
> has
> > > been failed, and the errors follows below:
> > >
> > >
> > >
> > > In file included from nc_var_info.cc(24):
> > > nc_var_info.h(24): catastrophic error: cannot open source file
> > "netcdf.hh"
> > >   #include <netcdf.hh>
> > >                       ^
> > >
> > > compilation aborted for nc_var_info.cc (code 4)
> > > make[3]: *** [libvx_nc_util_a-nc_var_info.o] Error 4
> > > make[3]: Leaving directory `/home/*****/tool/met-5.0/src/
> > > libcode/vx_nc_util'
> > > make[2]: *** [install-recursive] Error 1
> > >
> > > ************
> > > I checked my netcdf4.4.1, the include file only has netcdf.h,
but if I
> > > replaced netcdf.hh to netcdf.h, lots of errors occured as
undifined
> ***.
> > > Do you know what;s the problem of it?
> > > Thank you.
> > > Mandy
> > >
> > >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: install error of met
From: John Halley Gotway
Time: Wed Nov 23 10:20:37 2016

Mandy,

You can tell the linker where to find those types of runtime library
files
by setting the LD_LIBRARY_PATH environment variable.  Figure out which
directory
that contains that shared object library file, libnetcdf_c++.so.4.

Then set the LD_LIBRARY_PATH to include that directory:

   setenv LD_LIBRARY_PATH /path/to/lib/dir

If that works, you could add that setting to your .cshrc (for c-shell)
or
.bashrc or .profile (for bash).

Hope that helps.

Thanks,
John


On Wed, Nov 23, 2016 at 10:04 AM, Zhang, Mandy via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
>
> John,
>
>         I use netcdf4.1.3 (disable-netcdf-4) to compile MET, all the
libs
> are built succesfully, but when I "make test", the errors follows
like:
>
>
>
> *** Running MODE-Analysis to summarize by case ***
> mode_analysis: error while loading shared libraries:
libnetcdf_c++.so.4:
> cannot open shared object file: No such file or directory
>
> *** Testing PLOT_DATA_PLANE application ***
>
>
> *** Running PLOT_DATA_PLANE on a sample GRIB1 gridded file  ***
> plot_data_plane: error while loading shared libraries:
libnetcdf_c++.so.4:
> cannot open shared object file: No such file or directory
>
> *** Running PLOT_DATA_PLANE on a sample netCDF file  ***
> plot_data_plane: error while loading shared libraries:
libnetcdf_c++.so.4:
> cannot open shared object file: No such file or directory
> *****************
> I think I need the former version as you recommand, then I try the
> netcdf4.1.1, but when I "make install" the met, the errors follows:
> /home/mzhang/tool/netcdf41/lib/libnetcdf.a(liboc_la-
curlfunctions.o): In
> function `set_proxy':
> curlfunctions.c:(.text+0x149): undefined reference to
`curl_easy_setopt'
> curlfunctions.c:(.text+0x165): undefined reference to
`curl_easy_setopt'
> curlfunctions.c:(.text+0x22d): undefined reference to
`curl_easy_setopt'
> /home/mzhang/tool/netcdf41/lib/libnetcdf.a(liboc_la-
curlfunctions.o):curlfunctions.c:(.text+0x290):
> more undefined references to `curl_easy_setopt' follow
> make[4]: *** [ensemble_stat] Error 1
> make[4]: Leaving directory `/home/mzhang/tool/met-5.2/
> src/tools/core/ensemble_stat'
> make[3]: *** [install-recursive] Error 1
> make[3]: Leaving directory `/home/mzhang/tool/met-
5.2/src/tools/core'
> make[2]: *** [install-recursive] Error 1
> ***************************************
> Do you know how to solve these problems?
> Thank you very much! and Happy thanksgiving!
>
> Mandy
>
>
>
> ________________________________
> From: John Halley Gotway via RT <met_help at ucar.edu>
> Sent: Friday, November 18, 2016 5:59:52 PM
> To: Zhang, Mandy
> Subject: Re: [rt.rap.ucar.edu #78625] install error of met
>
> Mandy,
>
> Ah yes.  We have defined that as a development issue for the next
release.
> Sorry for the hassle!
>
> Newer versions of the freetype library split their headers across
two
> directories, and we still need to update the compilation process to
account
> for that.
>
> In the meantime, you have two options:
>
> (1) When you run the "configure" command for MET, you can omit the
> "--enable-mode-graphics".  That will skip over the compilation of
the
> plot_mode_field tool, which is currently the only tool that uses the
> freetype library.
>
> (2) If you'd like to compile that tool, you could add "CXXFLAGS=-I
> /home/mzhang/tool/freetype/include/freetype2" to your configure
command
> for
> MET.  That should tell the compiler where an additional place to
look for
> header files.
>
> In either case, you should rerun configure with option (1) or (2)
and then
> try recompiling MET.
>
> Please let me know how it goes.
>
> Thanks,
> John
>
> On Fri, Nov 18, 2016 at 2:11 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
> >
> > John,
> >
> > Thanks for your quick response! Now I switch to former version of
Netcdf,
> > it works for most of the lib building. But there's error while
build
> > mode_graphics,  follows by:
> >
> > ttype_to_string.o `test -f 'cgraphbase_plottype_to_string.cc' ||
echo
> > './'`cgraphbase_plottype_to_string.cc
> > In file included from cgraph_font.h(22),
> >                  from cgraph_main.h(25),
> >                  from cgraphbase_plottype_to_string.h(38),
> >                  from cgraphbase_plottype_to_string.cc(35):
> > /usr/include/ft2build.h(56): catastrophic error: cannot open
source file
> > "freetype/config/ftheader.h"
> >   #include <freetype/config/ftheader.h>
> >
> > ************************
> >
> > I checked with my freetype lib, the theader.h locates at:
> >
> >
> > /home/mzhang/tool/freetype/include/freetype2/freetype/config
> >
> >
> > Could you tell me what's wrong with it?
> >
> > Thank you very much!
> >
> > Mandy
> >
> >
> > ________________________________
> > From: John Halley Gotway via RT <met_help at ucar.edu>
> > Sent: Friday, November 18, 2016 1:15:16 PM
> > To: Zhang, Mandy
> > Subject: Re: [rt.rap.ucar.edu #78625] install error of met
> >
> > Hi Mandy,
> >
> > I have not used that version of NetCDF for MET.  Unfortunately, I
don't
> > have time to test that out right.  Yes, it looks like the name of
that
> > library has changed.
> >
> > You'll find that "-lnetcdf_c++" shows up in many of the makefiles
in MET:
> >
> > grep "netcdf_c++" `find ./ -name "Makefile.am"`
> >
> > If you wanted to try linking to a different library name, you'd
need to
> > switch "-lnetcdf_c++" to "-lnetcdf_c++4" in all those spots.  But,
like I
> > said, I haven't tried it.  We will be switching to using NetCDF4
in the
> MET
> > version 6.0 release.
> >
> > For compiling version 5.2, my suggest would be compiling with the
earlier
> > version of NetCDF that I mentioned in a previous email.  I do know
that
> > would work since we've done it many times.
> >
> > Hope that helps.
> >
> > Thanks,
> > John
> >
> >
> > On Thu, Nov 17, 2016 at 3:07 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
> > >
> > > Hi All,
> > >
> > >           I use netcdf4.4 to configure the MET, but the error is
> > >
> > > ld: cannot find -lnetcdf_c++
> > > make[4]: *** [ensemble_stat] Error 1
> > > *********
> > >         I checked my netcdf_c++ lib, now the name is
libnetcdf_c++4.a
> > > Can I modify the c++ lib name in the makefile?
> > > Or I have to install the former netcdf version?
> > > Thank you!
> > > Mandy
> > >
> > > ________________________________
> > > From: John Halley Gotway via RT <met_help at ucar.edu>
> > > Sent: Wednesday, November 9, 2016 1:17:00 PM
> > > To: Zhang, Mandy
> > > Subject: Re: [rt.rap.ucar.edu #78625] install error of met
> > >
> > > Hello Mandy,
> > >
> > > I see that you're having trouble compiling MET using NetCDF
version
> > 4.4.1.
> > > Older versions of NetCDF include the C, C++, and Fortran API's
all
> > bundled
> > > together.  It's possible that you grabbed on that doesn't
include the
> C++
> > > API.  Also, I think they may have dropped the netcdf.hh header
file
> along
> > > the way.
> > >
> > > In the next version of MET, version 6.0, we'll be switching to
using
> > NetCDF
> > > version 4.0+.  For MET version 5.2, we're using the classic data
model
> of
> > > NetCDF3.  Below I've cut-and-pasted some commands I wrote in
another
> > recent
> > > MET-Help question.
> > >
> > > These assume you're using GNU compilers, but you can swap that
out for
> a
> > > different compiler family.
> > >
> > > FYI, here's the online tutorial page that talks about compiling
NetCDF:
> > > http://www.dtcenter.org/met/users/support/online_tutorial/ME
> > > Tv5.2/tutorial.php?name=compilation&category=req_libs
> > >
> > > wget ftp://ftp.unidata.ucar.edu/pub/netcdf/old/netcdf-
4.1.1.tar.gz
> > > tar -xvzf netcdf-4.1.1.tar.gz
> > > cd netcdf-4.1.1
> > > ./configure --prefix=/path/to/install/directory CC=`which gcc`
> > CXX=`which
> > > g++` FC='' F90='' --disable-netcdf-4
> > > make
> > > make install
> > >
> > > Please let us know if you continue having trouble compiling
NetCDF and
> > MET.
> > >
> > > Thanks,
> > > John Halley Gotway
> > >
> > > On Tue, Nov 8, 2016 at 7:43 PM, Zhang, Mandy via RT
<met_help at ucar.edu
> >
> > > wrote:
> > >
> > > >
> > > > Tue Nov 08 19:43:09 2016: Request 78625 was acted upon.
> > > > Transaction: Ticket created by Man.Zhang-1 at ou.edu
> > > >        Queue: met_help
> > > >      Subject: install error of met
> > > >        Owner: Nobody
> > > >   Requestors: Man.Zhang-1 at ou.edu
> > > >       Status: new
> > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=78625
> > >
> > > >
> > > >
> > > > Hi All,
> > > >
> > > >          I want to install MET on linux system, but the
installation
> > has
> > > > been failed, and the errors follows below:
> > > >
> > > >
> > > >
> > > > In file included from nc_var_info.cc(24):
> > > > nc_var_info.h(24): catastrophic error: cannot open source file
> > > "netcdf.hh"
> > > >   #include <netcdf.hh>
> > > >                       ^
> > > >
> > > > compilation aborted for nc_var_info.cc (code 4)
> > > > make[3]: *** [libvx_nc_util_a-nc_var_info.o] Error 4
> > > > make[3]: Leaving directory `/home/*****/tool/met-5.0/src/
> > > > libcode/vx_nc_util'
> > > > make[2]: *** [install-recursive] Error 1
> > > >
> > > > ************
> > > > I checked my netcdf4.4.1, the include file only has netcdf.h,
but if
> I
> > > > replaced netcdf.hh to netcdf.h, lots of errors occured as
undifined
> > ***.
> > > > Do you know what;s the problem of it?
> > > > Thank you.
> > > > Mandy
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>

------------------------------------------------
Subject: install error of met
From: Zhang, Mandy
Time: Wed Nov 23 10:41:29 2016

Hi John,

     I install the netcdf with --disable-shared, it works either~ I
hope I could get your email before@ @.

     now I "make test", the running information follows below:

*** Running MODE-Analysis to compute column summaries for simple
observation objects ***
DEBUG 1: Default Config File:
/home/mzhang/tool/met/share/met/config/MODEAnalysisConfig_default
DEBUG 1: User Config File: config/MODEAnalysisConfig
DEBUG 2: Total mode lines read = 24
DEBUG 2: Total mode lines kept = 4

*** Running MODE-Analysis to summarize by case ***
DEBUG 2: Total mode lines read = 44
DEBUG 2: Total mode lines kept = 21

*** Testing PLOT_DATA_PLANE application ***


*** Running PLOT_DATA_PLANE on a sample GRIB1 gridded file  ***
DEBUG 1: Opening data file:
../data/sample_fcst/2007033000/nam.t00z.awip1236.tm00.20070330.grb
DEBUG 1: Creating postscript file:
../out/plot_data_plane/nam.t00z.awip1236.tm00.20070330_TMPZ2.ps

*** Running PLOT_DATA_PLANE on a sample netCDF file  ***
DEBUG 1: Opening data file:
../out/pcp_combine/sample_fcst_12L_2005080712V_12A.nc
DEBUG 1: Creating postscript file:
../out/plot_data_plane/sample_fcst_12L_2005080712V_12A_APCP12_NC_MET.ps

*** Finished Testing the Model Evaluation Tools Project ***
*********************
Does it mean the Met can work now?

Thank you very much!
Mandy



________________________________
From: John Halley Gotway via RT <met_help at ucar.edu>
Sent: Wednesday, November 23, 2016 11:20:38 AM
To: Zhang, Mandy
Subject: Re: [rt.rap.ucar.edu #78625] install error of met

Mandy,

You can tell the linker where to find those types of runtime library
files
by setting the LD_LIBRARY_PATH environment variable.  Figure out which
directory
that contains that shared object library file, libnetcdf_c++.so.4.

Then set the LD_LIBRARY_PATH to include that directory:

   setenv LD_LIBRARY_PATH /path/to/lib/dir

If that works, you could add that setting to your .cshrc (for c-shell)
or
.bashrc or .profile (for bash).

Hope that helps.

Thanks,
John


On Wed, Nov 23, 2016 at 10:04 AM, Zhang, Mandy via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
>
> John,
>
>         I use netcdf4.1.3 (disable-netcdf-4) to compile MET, all the
libs
> are built succesfully, but when I "make test", the errors follows
like:
>
>
>
> *** Running MODE-Analysis to summarize by case ***
> mode_analysis: error while loading shared libraries:
libnetcdf_c++.so.4:
> cannot open shared object file: No such file or directory
>
> *** Testing PLOT_DATA_PLANE application ***
>
>
> *** Running PLOT_DATA_PLANE on a sample GRIB1 gridded file  ***
> plot_data_plane: error while loading shared libraries:
libnetcdf_c++.so.4:
> cannot open shared object file: No such file or directory
>
> *** Running PLOT_DATA_PLANE on a sample netCDF file  ***
> plot_data_plane: error while loading shared libraries:
libnetcdf_c++.so.4:
> cannot open shared object file: No such file or directory
> *****************
> I think I need the former version as you recommand, then I try the
> netcdf4.1.1, but when I "make install" the met, the errors follows:
> /home/mzhang/tool/netcdf41/lib/libnetcdf.a(liboc_la-
curlfunctions.o): In
> function `set_proxy':
> curlfunctions.c:(.text+0x149): undefined reference to
`curl_easy_setopt'
> curlfunctions.c:(.text+0x165): undefined reference to
`curl_easy_setopt'
> curlfunctions.c:(.text+0x22d): undefined reference to
`curl_easy_setopt'
> /home/mzhang/tool/netcdf41/lib/libnetcdf.a(liboc_la-
curlfunctions.o):curlfunctions.c:(.text+0x290):
> more undefined references to `curl_easy_setopt' follow
> make[4]: *** [ensemble_stat] Error 1
> make[4]: Leaving directory `/home/mzhang/tool/met-5.2/
> src/tools/core/ensemble_stat'
> make[3]: *** [install-recursive] Error 1
> make[3]: Leaving directory `/home/mzhang/tool/met-
5.2/src/tools/core'
> make[2]: *** [install-recursive] Error 1
> ***************************************
> Do you know how to solve these problems?
> Thank you very much! and Happy thanksgiving!
>
> Mandy
>
>
>
> ________________________________
> From: John Halley Gotway via RT <met_help at ucar.edu>
> Sent: Friday, November 18, 2016 5:59:52 PM
> To: Zhang, Mandy
> Subject: Re: [rt.rap.ucar.edu #78625] install error of met
>
> Mandy,
>
> Ah yes.  We have defined that as a development issue for the next
release.
> Sorry for the hassle!
>
> Newer versions of the freetype library split their headers across
two
> directories, and we still need to update the compilation process to
account
> for that.
>
> In the meantime, you have two options:
>
> (1) When you run the "configure" command for MET, you can omit the
> "--enable-mode-graphics".  That will skip over the compilation of
the
> plot_mode_field tool, which is currently the only tool that uses the
> freetype library.
>
> (2) If you'd like to compile that tool, you could add "CXXFLAGS=-I
> /home/mzhang/tool/freetype/include/freetype2" to your configure
command
> for
> MET.  That should tell the compiler where an additional place to
look for
> header files.
>
> In either case, you should rerun configure with option (1) or (2)
and then
> try recompiling MET.
>
> Please let me know how it goes.
>
> Thanks,
> John
>
> On Fri, Nov 18, 2016 at 2:11 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
> >
> > John,
> >
> > Thanks for your quick response! Now I switch to former version of
Netcdf,
> > it works for most of the lib building. But there's error while
build
> > mode_graphics,  follows by:
> >
> > ttype_to_string.o `test -f 'cgraphbase_plottype_to_string.cc' ||
echo
> > './'`cgraphbase_plottype_to_string.cc
> > In file included from cgraph_font.h(22),
> >                  from cgraph_main.h(25),
> >                  from cgraphbase_plottype_to_string.h(38),
> >                  from cgraphbase_plottype_to_string.cc(35):
> > /usr/include/ft2build.h(56): catastrophic error: cannot open
source file
> > "freetype/config/ftheader.h"
> >   #include <freetype/config/ftheader.h>
> >
> > ************************
> >
> > I checked with my freetype lib, the theader.h locates at:
> >
> >
> > /home/mzhang/tool/freetype/include/freetype2/freetype/config
> >
> >
> > Could you tell me what's wrong with it?
> >
> > Thank you very much!
> >
> > Mandy
> >
> >
> > ________________________________
> > From: John Halley Gotway via RT <met_help at ucar.edu>
> > Sent: Friday, November 18, 2016 1:15:16 PM
> > To: Zhang, Mandy
> > Subject: Re: [rt.rap.ucar.edu #78625] install error of met
> >
> > Hi Mandy,
> >
> > I have not used that version of NetCDF for MET.  Unfortunately, I
don't
> > have time to test that out right.  Yes, it looks like the name of
that
> > library has changed.
> >
> > You'll find that "-lnetcdf_c++" shows up in many of the makefiles
in MET:
> >
> > grep "netcdf_c++" `find ./ -name "Makefile.am"`
> >
> > If you wanted to try linking to a different library name, you'd
need to
> > switch "-lnetcdf_c++" to "-lnetcdf_c++4" in all those spots.  But,
like I
> > said, I haven't tried it.  We will be switching to using NetCDF4
in the
> MET
> > version 6.0 release.
> >
> > For compiling version 5.2, my suggest would be compiling with the
earlier
> > version of NetCDF that I mentioned in a previous email.  I do know
that
> > would work since we've done it many times.
> >
> > Hope that helps.
> >
> > Thanks,
> > John
> >
> >
> > On Thu, Nov 17, 2016 at 3:07 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
> > >
> > > Hi All,
> > >
> > >           I use netcdf4.4 to configure the MET, but the error is
> > >
> > > ld: cannot find -lnetcdf_c++
> > > make[4]: *** [ensemble_stat] Error 1
> > > *********
> > >         I checked my netcdf_c++ lib, now the name is
libnetcdf_c++4.a
> > > Can I modify the c++ lib name in the makefile?
> > > Or I have to install the former netcdf version?
> > > Thank you!
> > > Mandy
> > >
> > > ________________________________
> > > From: John Halley Gotway via RT <met_help at ucar.edu>
> > > Sent: Wednesday, November 9, 2016 1:17:00 PM
> > > To: Zhang, Mandy
> > > Subject: Re: [rt.rap.ucar.edu #78625] install error of met
> > >
> > > Hello Mandy,
> > >
> > > I see that you're having trouble compiling MET using NetCDF
version
> > 4.4.1.
> > > Older versions of NetCDF include the C, C++, and Fortran API's
all
> > bundled
> > > together.  It's possible that you grabbed on that doesn't
include the
> C++
> > > API.  Also, I think they may have dropped the netcdf.hh header
file
> along
> > > the way.
> > >
> > > In the next version of MET, version 6.0, we'll be switching to
using
> > NetCDF
> > > version 4.0+.  For MET version 5.2, we're using the classic data
model
> of
> > > NetCDF3.  Below I've cut-and-pasted some commands I wrote in
another
> > recent
> > > MET-Help question.
> > >
> > > These assume you're using GNU compilers, but you can swap that
out for
> a
> > > different compiler family.
> > >
> > > FYI, here's the online tutorial page that talks about compiling
NetCDF:
> > > http://www.dtcenter.org/met/users/support/online_tutorial/ME
> > > Tv5.2/tutorial.php?name=compilation&category=req_libs
> > >
> > > wget ftp://ftp.unidata.ucar.edu/pub/netcdf/old/netcdf-
4.1.1.tar.gz
> > > tar -xvzf netcdf-4.1.1.tar.gz
> > > cd netcdf-4.1.1
> > > ./configure --prefix=/path/to/install/directory CC=`which gcc`
> > CXX=`which
> > > g++` FC='' F90='' --disable-netcdf-4
> > > make
> > > make install
> > >
> > > Please let us know if you continue having trouble compiling
NetCDF and
> > MET.
> > >
> > > Thanks,
> > > John Halley Gotway
> > >
> > > On Tue, Nov 8, 2016 at 7:43 PM, Zhang, Mandy via RT
<met_help at ucar.edu
> >
> > > wrote:
> > >
> > > >
> > > > Tue Nov 08 19:43:09 2016: Request 78625 was acted upon.
> > > > Transaction: Ticket created by Man.Zhang-1 at ou.edu
> > > >        Queue: met_help
> > > >      Subject: install error of met
> > > >        Owner: Nobody
> > > >   Requestors: Man.Zhang-1 at ou.edu
> > > >       Status: new
> > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=78625
> > >
> > > >
> > > >
> > > > Hi All,
> > > >
> > > >          I want to install MET on linux system, but the
installation
> > has
> > > > been failed, and the errors follows below:
> > > >
> > > >
> > > >
> > > > In file included from nc_var_info.cc(24):
> > > > nc_var_info.h(24): catastrophic error: cannot open source file
> > > "netcdf.hh"
> > > >   #include <netcdf.hh>
> > > >                       ^
> > > >
> > > > compilation aborted for nc_var_info.cc (code 4)
> > > > make[3]: *** [libvx_nc_util_a-nc_var_info.o] Error 4
> > > > make[3]: Leaving directory `/home/*****/tool/met-5.0/src/
> > > > libcode/vx_nc_util'
> > > > make[2]: *** [install-recursive] Error 1
> > > >
> > > > ************
> > > > I checked my netcdf4.4.1, the include file only has netcdf.h,
but if
> I
> > > > replaced netcdf.hh to netcdf.h, lots of errors occured as
undifined
> > ***.
> > > > Do you know what;s the problem of it?
> > > > Thank you.
> > > > Mandy
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>


------------------------------------------------
Subject: install error of met
From: John Halley Gotway
Time: Wed Nov 23 10:45:41 2016

Looks good to me.  Just let us know what other issues or questions
arise in
your use of MET.

Thanks,
John

On Wed, Nov 23, 2016 at 10:41 AM, Zhang, Mandy via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
>
> Hi John,
>
>      I install the netcdf with --disable-shared, it works either~ I
hope I
> could get your email before@ @.
>
>      now I "make test", the running information follows below:
>
> *** Running MODE-Analysis to compute column summaries for simple
> observation objects ***
> DEBUG 1: Default Config File: /home/mzhang/tool/met/share/
> met/config/MODEAnalysisConfig_default
> DEBUG 1: User Config File: config/MODEAnalysisConfig
> DEBUG 2: Total mode lines read = 24
> DEBUG 2: Total mode lines kept = 4
>
> *** Running MODE-Analysis to summarize by case ***
> DEBUG 2: Total mode lines read = 44
> DEBUG 2: Total mode lines kept = 21
>
> *** Testing PLOT_DATA_PLANE application ***
>
>
> *** Running PLOT_DATA_PLANE on a sample GRIB1 gridded file  ***
> DEBUG 1: Opening data file: ../data/sample_fcst/
> 2007033000/nam.t00z.awip1236.tm00.20070330.grb
> DEBUG 1: Creating postscript file: ../out/plot_data_plane/nam.
> t00z.awip1236.tm00.20070330_TMPZ2.ps
>
> *** Running PLOT_DATA_PLANE on a sample netCDF file  ***
> DEBUG 1: Opening data file: ../out/pcp_combine/sample_
> fcst_12L_2005080712V_12A.nc
> DEBUG 1: Creating postscript file: ../out/plot_data_plane/sample_
> fcst_12L_2005080712V_12A_APCP12_NC_MET.ps
>
> *** Finished Testing the Model Evaluation Tools Project ***
> *********************
> Does it mean the Met can work now?
>
> Thank you very much!
> Mandy
>
>
>
> ________________________________
> From: John Halley Gotway via RT <met_help at ucar.edu>
> Sent: Wednesday, November 23, 2016 11:20:38 AM
> To: Zhang, Mandy
> Subject: Re: [rt.rap.ucar.edu #78625] install error of met
>
> Mandy,
>
> You can tell the linker where to find those types of runtime library
files
> by setting the LD_LIBRARY_PATH environment variable.  Figure out
which
> directory
> that contains that shared object library file, libnetcdf_c++.so.4.
>
> Then set the LD_LIBRARY_PATH to include that directory:
>
>    setenv LD_LIBRARY_PATH /path/to/lib/dir
>
> If that works, you could add that setting to your .cshrc (for c-
shell) or
> .bashrc or .profile (for bash).
>
> Hope that helps.
>
> Thanks,
> John
>
>
> On Wed, Nov 23, 2016 at 10:04 AM, Zhang, Mandy via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
> >
> > John,
> >
> >         I use netcdf4.1.3 (disable-netcdf-4) to compile MET, all
the libs
> > are built succesfully, but when I "make test", the errors follows
like:
> >
> >
> >
> > *** Running MODE-Analysis to summarize by case ***
> > mode_analysis: error while loading shared libraries:
libnetcdf_c++.so.4:
> > cannot open shared object file: No such file or directory
> >
> > *** Testing PLOT_DATA_PLANE application ***
> >
> >
> > *** Running PLOT_DATA_PLANE on a sample GRIB1 gridded file  ***
> > plot_data_plane: error while loading shared libraries:
> libnetcdf_c++.so.4:
> > cannot open shared object file: No such file or directory
> >
> > *** Running PLOT_DATA_PLANE on a sample netCDF file  ***
> > plot_data_plane: error while loading shared libraries:
> libnetcdf_c++.so.4:
> > cannot open shared object file: No such file or directory
> > *****************
> > I think I need the former version as you recommand, then I try the
> > netcdf4.1.1, but when I "make install" the met, the errors
follows:
> > /home/mzhang/tool/netcdf41/lib/libnetcdf.a(liboc_la-
curlfunctions.o): In
> > function `set_proxy':
> > curlfunctions.c:(.text+0x149): undefined reference to
`curl_easy_setopt'
> > curlfunctions.c:(.text+0x165): undefined reference to
`curl_easy_setopt'
> > curlfunctions.c:(.text+0x22d): undefined reference to
`curl_easy_setopt'
> > /home/mzhang/tool/netcdf41/lib/libnetcdf.a(liboc_la-
curlfunctions.o):
> curlfunctions.c:(.text+0x290):
> > more undefined references to `curl_easy_setopt' follow
> > make[4]: *** [ensemble_stat] Error 1
> > make[4]: Leaving directory `/home/mzhang/tool/met-5.2/
> > src/tools/core/ensemble_stat'
> > make[3]: *** [install-recursive] Error 1
> > make[3]: Leaving directory `/home/mzhang/tool/met-
5.2/src/tools/core'
> > make[2]: *** [install-recursive] Error 1
> > ***************************************
> > Do you know how to solve these problems?
> > Thank you very much! and Happy thanksgiving!
> >
> > Mandy
> >
> >
> >
> > ________________________________
> > From: John Halley Gotway via RT <met_help at ucar.edu>
> > Sent: Friday, November 18, 2016 5:59:52 PM
> > To: Zhang, Mandy
> > Subject: Re: [rt.rap.ucar.edu #78625] install error of met
> >
> > Mandy,
> >
> > Ah yes.  We have defined that as a development issue for the next
> release.
> > Sorry for the hassle!
> >
> > Newer versions of the freetype library split their headers across
two
> > directories, and we still need to update the compilation process
to
> account
> > for that.
> >
> > In the meantime, you have two options:
> >
> > (1) When you run the "configure" command for MET, you can omit the
> > "--enable-mode-graphics".  That will skip over the compilation of
the
> > plot_mode_field tool, which is currently the only tool that uses
the
> > freetype library.
> >
> > (2) If you'd like to compile that tool, you could add "CXXFLAGS=-I
> > /home/mzhang/tool/freetype/include/freetype2" to your configure
command
> > for
> > MET.  That should tell the compiler where an additional place to
look for
> > header files.
> >
> > In either case, you should rerun configure with option (1) or (2)
and
> then
> > try recompiling MET.
> >
> > Please let me know how it goes.
> >
> > Thanks,
> > John
> >
> > On Fri, Nov 18, 2016 at 2:11 PM, Zhang, Mandy via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625 >
> > >
> > > John,
> > >
> > > Thanks for your quick response! Now I switch to former version
of
> Netcdf,
> > > it works for most of the lib building. But there's error while
build
> > > mode_graphics,  follows by:
> > >
> > > ttype_to_string.o `test -f 'cgraphbase_plottype_to_string.cc' ||
echo
> > > './'`cgraphbase_plottype_to_string.cc
> > > In file included from cgraph_font.h(22),
> > >                  from cgraph_main.h(25),
> > >                  from cgraphbase_plottype_to_string.h(38),
> > >                  from cgraphbase_plottype_to_string.cc(35):
> > > /usr/include/ft2build.h(56): catastrophic error: cannot open
source
> file
> > > "freetype/config/ftheader.h"
> > >   #include <freetype/config/ftheader.h>
> > >
> > > ************************
> > >
> > > I checked with my freetype lib, the theader.h locates at:
> > >
> > >
> > > /home/mzhang/tool/freetype/include/freetype2/freetype/config
> > >
> > >
> > > Could you tell me what's wrong with it?
> > >
> > > Thank you very much!
> > >
> > > Mandy
> > >
> > >
> > > ________________________________
> > > From: John Halley Gotway via RT <met_help at ucar.edu>
> > > Sent: Friday, November 18, 2016 1:15:16 PM
> > > To: Zhang, Mandy
> > > Subject: Re: [rt.rap.ucar.edu #78625] install error of met
> > >
> > > Hi Mandy,
> > >
> > > I have not used that version of NetCDF for MET.  Unfortunately,
I don't
> > > have time to test that out right.  Yes, it looks like the name
of that
> > > library has changed.
> > >
> > > You'll find that "-lnetcdf_c++" shows up in many of the
makefiles in
> MET:
> > >
> > > grep "netcdf_c++" `find ./ -name "Makefile.am"`
> > >
> > > If you wanted to try linking to a different library name, you'd
need to
> > > switch "-lnetcdf_c++" to "-lnetcdf_c++4" in all those spots.
But,
> like I
> > > said, I haven't tried it.  We will be switching to using NetCDF4
in the
> > MET
> > > version 6.0 release.
> > >
> > > For compiling version 5.2, my suggest would be compiling with
the
> earlier
> > > version of NetCDF that I mentioned in a previous email.  I do
know that
> > > would work since we've done it many times.
> > >
> > > Hope that helps.
> > >
> > > Thanks,
> > > John
> > >
> > >
> > > On Thu, Nov 17, 2016 at 3:07 PM, Zhang, Mandy via RT <
> met_help at ucar.edu>
> > > wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=78625
>
> > > >
> > > > Hi All,
> > > >
> > > >           I use netcdf4.4 to configure the MET, but the error
is
> > > >
> > > > ld: cannot find -lnetcdf_c++
> > > > make[4]: *** [ensemble_stat] Error 1
> > > > *********
> > > >         I checked my netcdf_c++ lib, now the name is
libnetcdf_c++4.a
> > > > Can I modify the c++ lib name in the makefile?
> > > > Or I have to install the former netcdf version?
> > > > Thank you!
> > > > Mandy
> > > >
> > > > ________________________________
> > > > From: John Halley Gotway via RT <met_help at ucar.edu>
> > > > Sent: Wednesday, November 9, 2016 1:17:00 PM
> > > > To: Zhang, Mandy
> > > > Subject: Re: [rt.rap.ucar.edu #78625] install error of met
> > > >
> > > > Hello Mandy,
> > > >
> > > > I see that you're having trouble compiling MET using NetCDF
version
> > > 4.4.1.
> > > > Older versions of NetCDF include the C, C++, and Fortran API's
all
> > > bundled
> > > > together.  It's possible that you grabbed on that doesn't
include the
> > C++
> > > > API.  Also, I think they may have dropped the netcdf.hh header
file
> > along
> > > > the way.
> > > >
> > > > In the next version of MET, version 6.0, we'll be switching to
using
> > > NetCDF
> > > > version 4.0+.  For MET version 5.2, we're using the classic
data
> model
> > of
> > > > NetCDF3.  Below I've cut-and-pasted some commands I wrote in
another
> > > recent
> > > > MET-Help question.
> > > >
> > > > These assume you're using GNU compilers, but you can swap that
out
> for
> > a
> > > > different compiler family.
> > > >
> > > > FYI, here's the online tutorial page that talks about
compiling
> NetCDF:
> > > > http://www.dtcenter.org/met/users/support/online_tutorial/ME
> > > > Tv5.2/tutorial.php?name=compilation&category=req_libs
> > > >
> > > > wget ftp://ftp.unidata.ucar.edu/pub/netcdf/old/netcdf-
4.1.1.tar.gz
> > > > tar -xvzf netcdf-4.1.1.tar.gz
> > > > cd netcdf-4.1.1
> > > > ./configure --prefix=/path/to/install/directory CC=`which gcc`
> > > CXX=`which
> > > > g++` FC='' F90='' --disable-netcdf-4
> > > > make
> > > > make install
> > > >
> > > > Please let us know if you continue having trouble compiling
NetCDF
> and
> > > MET.
> > > >
> > > > Thanks,
> > > > John Halley Gotway
> > > >
> > > > On Tue, Nov 8, 2016 at 7:43 PM, Zhang, Mandy via RT <
> met_help at ucar.edu
> > >
> > > > wrote:
> > > >
> > > > >
> > > > > Tue Nov 08 19:43:09 2016: Request 78625 was acted upon.
> > > > > Transaction: Ticket created by Man.Zhang-1 at ou.edu
> > > > >        Queue: met_help
> > > > >      Subject: install error of met
> > > > >        Owner: Nobody
> > > > >   Requestors: Man.Zhang-1 at ou.edu
> > > > >       Status: new
> > > > >  Ticket <URL: https://rt.rap.ucar.edu/rt/
> > Ticket/Display.html?id=78625
> > > >
> > > > >
> > > > >
> > > > > Hi All,
> > > > >
> > > > >          I want to install MET on linux system, but the
> installation
> > > has
> > > > > been failed, and the errors follows below:
> > > > >
> > > > >
> > > > >
> > > > > In file included from nc_var_info.cc(24):
> > > > > nc_var_info.h(24): catastrophic error: cannot open source
file
> > > > "netcdf.hh"
> > > > >   #include <netcdf.hh>
> > > > >                       ^
> > > > >
> > > > > compilation aborted for nc_var_info.cc (code 4)
> > > > > make[3]: *** [libvx_nc_util_a-nc_var_info.o] Error 4
> > > > > make[3]: Leaving directory `/home/*****/tool/met-5.0/src/
> > > > > libcode/vx_nc_util'
> > > > > make[2]: *** [install-recursive] Error 1
> > > > >
> > > > > ************
> > > > > I checked my netcdf4.4.1, the include file only has
netcdf.h, but
> if
> > I
> > > > > replaced netcdf.hh to netcdf.h, lots of errors occured as
undifined
> > > ***.
> > > > > Do you know what;s the problem of it?
> > > > > Thank you.
> > > > > Mandy
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
> >
> >
>
>
>

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


More information about the Met_help mailing list