[Met_help] [rt.rap.ucar.edu #84753] History for Building METv7

Julie Prestopnik via RT met_help at ucar.edu
Tue May 22 13:57:34 MDT 2018


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

Hello,

It's been a while since I tried to compile MET and I notice that the process has changed rather a lot. I have run the configure script to see what may be missing.
I am not a software engineer so I am struggling with understanding what I need to do to get MODE-Graphics installed. We do not have FreeType or Cairo and I must confess to being a bit stumped by both.

The closest that I have come to for Cairo is the MacOS install but that doesn't suggest the same as the releases link provided in the guide.
https://www.cairographics.org/end_to_end_build_for_mac_os_x/
I do not have root permissions so I can't install these very easily. Is this the right set of instructions to follow for Red Hat Linux?

Can I ask whether I will get no graphics output (as I used to) if I don't have these libraries installed?

Thanks
Marion


--
Dr Marion Mittermaier        Manager: Model Diagnostics and Novel Methods

Met Office FitzRoy Road Exeter EX1 3PB United Kingdom
Tel: +44 1392 884830    Fax: +44 1392 885631
E:mail: marion.mittermaier at metoffice.gov.uk    http://www.metoffice.gov.uk/research/people/marion-mittermaier

I am also the co-chair of the WMO WWRP/WGNE Joint Working Group for Forecast Verification Research<https://www.wmo.int/pages/prog/arep/wwrp/new/Forecast_Verification.html>

You can now follow our science on Twitter: @MetOffice_Sci<http://www.twitter.com/metoffice_sci>



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

Subject: Building METv7
From: marion.mittermaier at metoffice.gov.uk
Time: Fri Apr 13 09:12:29 2018

Hello,

I have tried to run the configure script and get a lot of
errors/issues which I don't know how to interpret.
I have run the "run" script which calls only configure at the moment,
trying to install into my pwd.

I am not sure what to make of the errors I have.

Please can you advise.

Thanks
Marion



-----Original Message-----
From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
Sent: 13 April 2018 09:34
To: Mittermaier, Marion <marion.mittermaier at metoffice.gov.uk>
Subject: [rt.rap.ucar.edu #84753] AutoReply: Building METv7

THE MET SUPPORT STAFF WILL HAVE LIMITED AVAILABILITY DURING THE WINTER
HOLIDAYS FROM 12/18/2017 THROUGH 1/1/2018 AND RESPONSES MAY BE
DELAYED.

Greetings,

This message has been automatically generated in response to the
creation of a trouble ticket regarding:
	"Building METv7",
a summary of which appears below.

There is no need to reply to this message right now.  Your ticket has
been assigned an ID of [rt.rap.ucar.edu #84753].

Please include the string:

         [rt.rap.ucar.edu #84753]

in the subject line of all future correspondence about this issue. To
do so, you may reply to this message.

For more information, please see:

MET Online Tutorial:
   https://www.dtcenter.org/met/users/support/online_tutorial/index.php

MET Users Guide:
   https://www.dtcenter.org/met/users/docs/overview.php

MET FAQs:
   https://www.dtcenter.org/met/users/support/faqs/index.php

MET-Help Email Archive:
   http://mailman.ucar.edu/pipermail/met_help

                        Thank you,
                        met_help at ucar.edu

-------------------------------------------------------------------------
Hello,

It's been a while since I tried to compile MET and I notice that the
process has changed rather a lot. I have run the configure script to
see what may be missing.
I am not a software engineer so I am struggling with understanding
what I need to do to get MODE-Graphics installed. We do not have
FreeType or Cairo and I must confess to being a bit stumped by both.

The closest that I have come to for Cairo is the MacOS install but
that doesn't suggest the same as the releases link provided in the
guide.
https://www.cairographics.org/end_to_end_build_for_mac_os_x/
I do not have root permissions so I can't install these very easily.
Is this the right set of instructions to follow for Red Hat Linux?

Can I ask whether I will get no graphics output (as I used to) if I
don't have these libraries installed?

Thanks
Marion


--
Dr Marion Mittermaier        Manager: Model Diagnostics and Novel
Methods

Met Office FitzRoy Road Exeter EX1 3PB United Kingdom
Tel: +44 1392 884830    Fax: +44 1392 885631
E:mail: marion.mittermaier at metoffice.gov.uk
http://www.metoffice.gov.uk/research/people/marion-mittermaier

I am also the co-chair of the WMO WWRP/WGNE Joint Working Group for
Forecast Verification
Research<https://www.wmo.int/pages/prog/arep/wwrp/new/Forecast_Verification.html>

You can now follow our science on Twitter:
@MetOffice_Sci<http://www.twitter.com/metoffice_sci>



------------------------------------------------
Subject: Building METv7
From: Julie Prestopnik
Time: Fri Apr 13 09:28:26 2018

Hi Marion.

The Freetype and Cairo libraries are required for the use of the
MODE-Graphics tool (plot_mode_field).  You will not be able to run the
MODE-Graphics tool without these libraries, however you could still
use
plot_data_plane and plot_point_obs.

I don't have much experience installing on a Mac, but I believe you
can
open up a terminal and install MET in a local area (as opposed to a
/usr
area), where you would have permissions to do so.  You should be able
to
grab the source code for all of the packages and install as directed
on
this page:

https://dtcenter.org/met/users/support/online_tutorial/METv6.1/tutorial.php?name=compilation&category=req_libs

The link I sent points to the met-6.1 tutorial, but the installation
instructions are the same for met-7.0 as they are for met-6.1.

I see that you sent a reply to this original ticket.  I'll follow up
on
that soon.

I hope this helps!

Julie



On Fri, Apr 13, 2018 at 2:34 AM, marion.mittermaier at metoffice.gov.uk
via RT
<met_help at ucar.edu> wrote:

>
> Fri Apr 13 02:34:06 2018: Request 84753 was acted upon.
> Transaction: Ticket created by marion.mittermaier at metoffice.gov.uk
>        Queue: met_help
>      Subject: Building METv7
>        Owner: Nobody
>   Requestors: marion.mittermaier at metoffice.gov.uk
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=84753 >
>
>
> Hello,
>
> It's been a while since I tried to compile MET and I notice that the
> process has changed rather a lot. I have run the configure script to
see
> what may be missing.
> I am not a software engineer so I am struggling with understanding
what I
> need to do to get MODE-Graphics installed. We do not have FreeType
or Cairo
> and I must confess to being a bit stumped by both.
>
> The closest that I have come to for Cairo is the MacOS install but
that
> doesn't suggest the same as the releases link provided in the guide.
> https://www.cairographics.org/end_to_end_build_for_mac_os_x/
> I do not have root permissions so I can't install these very easily.
Is
> this the right set of instructions to follow for Red Hat Linux?
>
> Can I ask whether I will get no graphics output (as I used to) if I
don't
> have these libraries installed?
>
> Thanks
> Marion
>
>
> --
> Dr Marion Mittermaier        Manager: Model Diagnostics and Novel
Methods
>
> Met Office FitzRoy Road Exeter EX1 3PB United Kingdom
> Tel: +44 1392 884830    Fax: +44 1392 885631
> E:mail: marion.mittermaier at metoffice.gov.uk
> http://www.metoffice.gov.uk/research/people/marion-mittermaier
>
> I am also the co-chair of the WMO WWRP/WGNE Joint Working Group for
> Forecast Verification Research<https://www.wmo.int/
> pages/prog/arep/wwrp/new/Forecast_Verification.html>
>
> You can now follow our science on Twitter:
@MetOffice_Sci<http://www.
> twitter.com/metoffice_sci>
>
>
>

------------------------------------------------
Subject: Building METv7
From: John Halley Gotway
Time: Fri Apr 13 09:38:36 2018

Hi Marion,

This is John Halley Gotway... long time since we've talked.  Hope
things
are going well!

I see that you have some questions about compiling met-7.0.  Really
the
biggest change from earlier versions is switching from using NetCDF3
to
NetCDF4.  We're always adding new options and features... but from a
software dependency perspective, that's the biggest change.

The MODE-Graphics option is disabled by default... precisely because
it
requires those extra dependencies.  I would recommend taking a more
measured approach... try compiling *without* the --enable-
mode_graphics
option.  Once the rest of MET is compiling well, turn that back on and
address the issues.

You may find that the plot_mode_field tool you get is of limited
utility.
It reads the NetCDF output of MODE and makes some PNG plots of it.  It
is
not substantially different from PostScript output of MODE itself and
the
PostScript output you'd get by plotting that NetCDF file using the
plot_data_plane tool in MET.

In the past year, we've made MET available as a Docker container.  One
nice
consequence of this is that the Dockerfile defines in a very concise
way
how MET and all of it's dependencies can be compiled:
   https://github.com/NCAR/container-dtc-met/blob/v7.0/MET/Dockerfile

In this case, both cairo and freetype are installed as packages...
rather
than compiling them from source.

I compared your output of config.log to the output I get on my
machine.
And we both end with this line:
   configure: exit 0

Return status of 0 means everything's ok.

After running configure, just try running: make install

As for the details on why some error messages show up in the
config.log
output, I don't have good answers for you.  But I can say that I see
some
of the same behavior on my machine.

Thanks,
John





On Fri, Apr 13, 2018 at 9:12 AM, marion.mittermaier at metoffice.gov.uk
via RT
<met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=84753 >
>
> Hello,
>
> I have tried to run the configure script and get a lot of
errors/issues
> which I don't know how to interpret.
> I have run the "run" script which calls only configure at the
moment,
> trying to install into my pwd.
>
> I am not sure what to make of the errors I have.
>
> Please can you advise.
>
> Thanks
> Marion
>
>
>
> -----Original Message-----
> From: met_help at ucar.edu via RT [mailto:met_help at ucar.edu]
> Sent: 13 April 2018 09:34
> To: Mittermaier, Marion <marion.mittermaier at metoffice.gov.uk>
> Subject: [rt.rap.ucar.edu #84753] AutoReply: Building METv7
>
> THE MET SUPPORT STAFF WILL HAVE LIMITED AVAILABILITY DURING THE
WINTER
> HOLIDAYS FROM 12/18/2017 THROUGH 1/1/2018 AND RESPONSES MAY BE
DELAYED.
>
> Greetings,
>
> This message has been automatically generated in response to the
creation
> of a trouble ticket regarding:
>         "Building METv7",
> a summary of which appears below.
>
> There is no need to reply to this message right now.  Your ticket
has been
> assigned an ID of [rt.rap.ucar.edu #84753].
>
> Please include the string:
>
>          [rt.rap.ucar.edu #84753]
>
> in the subject line of all future correspondence about this issue.
To do
> so, you may reply to this message.
>
> For more information, please see:
>
> MET Online Tutorial:
>
https://www.dtcenter.org/met/users/support/online_tutorial/index.php
>
> MET Users Guide:
>    https://www.dtcenter.org/met/users/docs/overview.php
>
> MET FAQs:
>    https://www.dtcenter.org/met/users/support/faqs/index.php
>
> MET-Help Email Archive:
>    http://mailman.ucar.edu/pipermail/met_help
>
>                         Thank you,
>                         met_help at ucar.edu
>
>
-------------------------------------------------------------------------
> Hello,
>
> It's been a while since I tried to compile MET and I notice that the
> process has changed rather a lot. I have run the configure script to
see
> what may be missing.
> I am not a software engineer so I am struggling with understanding
what I
> need to do to get MODE-Graphics installed. We do not have FreeType
or Cairo
> and I must confess to being a bit stumped by both.
>
> The closest that I have come to for Cairo is the MacOS install but
that
> doesn't suggest the same as the releases link provided in the guide.
> https://www.cairographics.org/end_to_end_build_for_mac_os_x/
> I do not have root permissions so I can't install these very easily.
Is
> this the right set of instructions to follow for Red Hat Linux?
>
> Can I ask whether I will get no graphics output (as I used to) if I
don't
> have these libraries installed?
>
> Thanks
> Marion
>
>
> --
> Dr Marion Mittermaier        Manager: Model Diagnostics and Novel
Methods
>
> Met Office FitzRoy Road Exeter EX1 3PB United Kingdom
> Tel: +44 1392 884830    Fax: +44 1392 885631
> E:mail: marion.mittermaier at metoffice.gov.uk
> http://www.metoffice.gov.uk/research/people/marion-mittermaier
>
> I am also the co-chair of the WMO WWRP/WGNE Joint Working Group for
> Forecast Verification Research<https://www.wmo.int/
> pages/prog/arep/wwrp/new/Forecast_Verification.html>
>
> You can now follow our science on Twitter:
@MetOffice_Sci<http://www.
> twitter.com/metoffice_sci>
>
>
>
>

------------------------------------------------
Subject: Building METv7
From: John Halley Gotway
Time: Fri Apr 13 09:44:37 2018

Marion,

To followup on cairo and freetype... they should be available as
packages
for RHEL.  So all that's required is running 2 rpm (RedHat package
manager)
commands to get them.  And they are very common packages.  I'd suggest
asking a sys admin to install them for you.

Thanks,
John

On Fri, Apr 13, 2018 at 9:28 AM, Julie Prestopnik via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=84753 >
>
> Hi Marion.
>
> The Freetype and Cairo libraries are required for the use of the
> MODE-Graphics tool (plot_mode_field).  You will not be able to run
the
> MODE-Graphics tool without these libraries, however you could still
use
> plot_data_plane and plot_point_obs.
>
> I don't have much experience installing on a Mac, but I believe you
can
> open up a terminal and install MET in a local area (as opposed to a
/usr
> area), where you would have permissions to do so.  You should be
able to
> grab the source code for all of the packages and install as directed
on
> this page:
>
> https://dtcenter.org/met/users/support/online_tutorial/
> METv6.1/tutorial.php?name=compilation&category=req_libs
>
> The link I sent points to the met-6.1 tutorial, but the installation
> instructions are the same for met-7.0 as they are for met-6.1.
>
> I see that you sent a reply to this original ticket.  I'll follow up
on
> that soon.
>
> I hope this helps!
>
> Julie
>
>
>
> On Fri, Apr 13, 2018 at 2:34 AM, marion.mittermaier at metoffice.gov.uk
via
> RT
> <met_help at ucar.edu> wrote:
>
> >
> > Fri Apr 13 02:34:06 2018: Request 84753 was acted upon.
> > Transaction: Ticket created by marion.mittermaier at metoffice.gov.uk
> >        Queue: met_help
> >      Subject: Building METv7
> >        Owner: Nobody
> >   Requestors: marion.mittermaier at metoffice.gov.uk
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=84753 >
> >
> >
> > Hello,
> >
> > It's been a while since I tried to compile MET and I notice that
the
> > process has changed rather a lot. I have run the configure script
to see
> > what may be missing.
> > I am not a software engineer so I am struggling with understanding
what I
> > need to do to get MODE-Graphics installed. We do not have FreeType
or
> Cairo
> > and I must confess to being a bit stumped by both.
> >
> > The closest that I have come to for Cairo is the MacOS install but
that
> > doesn't suggest the same as the releases link provided in the
guide.
> > https://www.cairographics.org/end_to_end_build_for_mac_os_x/
> > I do not have root permissions so I can't install these very
easily. Is
> > this the right set of instructions to follow for Red Hat Linux?
> >
> > Can I ask whether I will get no graphics output (as I used to) if
I don't
> > have these libraries installed?
> >
> > Thanks
> > Marion
> >
> >
> > --
> > Dr Marion Mittermaier        Manager: Model Diagnostics and Novel
Methods
> >
> > Met Office FitzRoy Road Exeter EX1 3PB United Kingdom
> > Tel: +44 1392 884830    Fax: +44 1392 885631
> > E:mail: marion.mittermaier at metoffice.gov.uk
> > http://www.metoffice.gov.uk/research/people/marion-mittermaier
> >
> > I am also the co-chair of the WMO WWRP/WGNE Joint Working Group
for
> > Forecast Verification Research<https://www.wmo.int/
> > pages/prog/arep/wwrp/new/Forecast_Verification.html>
> >
> > You can now follow our science on Twitter:
@MetOffice_Sci<http://www.
> > twitter.com/metoffice_sci>
> >
> >
> >
>
>

------------------------------------------------
Subject: Building METv7
From: marion.mittermaier at metoffice.gov.uk
Time: Mon Apr 16 05:54:09 2018

Thanks John!

I have had a go. Attached is what happens when I run make install. It
definitely has an issue with the nc_* code.

Yes, it has been a while since we last chatted/interacted. Hope all is
well with you.

I had concluded that these dependencies should be part of the RHEL
libraries, and I believe they are installed here somewhere. I've asked
for help at this end to locate them, but I had already decided a more
measured approach was required.

Re the docker, we're not allowed to use them, so not an option at the
moment.

Regards
Marion

-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: 13 April 2018 16:45
To: Mittermaier, Marion <marion.mittermaier at metoffice.gov.uk>
Subject: Re: [rt.rap.ucar.edu #84753] Building METv7

Marion,

To followup on cairo and freetype... they should be available as
packages for RHEL.  So all that's required is running 2 rpm (RedHat
package manager) commands to get them.  And they are very common
packages.  I'd suggest asking a sys admin to install them for you.

Thanks,
John
Hi Marion,

This is John Halley Gotway... long time since we've talked.  Hope
things are going well!

I see that you have some questions about compiling met-7.0.  Really
the biggest change from earlier versions is switching from using
NetCDF3 to NetCDF4.  We're always adding new options and features...
but from a software dependency perspective, that's the biggest change.

The MODE-Graphics option is disabled by default... precisely because
it requires those extra dependencies.  I would recommend taking a more
measured approach... try compiling *without* the --enable-
mode_graphics option.  Once the rest of MET is compiling well, turn
that back on and address the issues.

You may find that the plot_mode_field tool you get is of limited
utility.
It reads the NetCDF output of MODE and makes some PNG plots of it.  It
is not substantially different from PostScript output of MODE itself
and the PostScript output you'd get by plotting that NetCDF file using
the plot_data_plane tool in MET.

In the past year, we've made MET available as a Docker container.  One
nice consequence of this is that the Dockerfile defines in a very
concise way how MET and all of it's dependencies can be compiled:
   https://github.com/NCAR/container-dtc-met/blob/v7.0/MET/Dockerfile

In this case, both cairo and freetype are installed as packages...
rather than compiling them from source.

I compared your output of config.log to the output I get on my
machine.
And we both end with this line:
   configure: exit 0

Return status of 0 means everything's ok.

After running configure, just try running: make install

As for the details on why some error messages show up in the
config.log output, I don't have good answers for you.  But I can say
that I see some of the same behavior on my machine.

Thanks,
John

On Fri, Apr 13, 2018 at 9:28 AM, Julie Prestopnik via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=84753 >
>
> Hi Marion.
>
> The Freetype and Cairo libraries are required for the use of the
> MODE-Graphics tool (plot_mode_field).  You will not be able to run
the
> MODE-Graphics tool without these libraries, however you could still
> use plot_data_plane and plot_point_obs.
>
> I don't have much experience installing on a Mac, but I believe you
> can open up a terminal and install MET in a local area (as opposed
to
> a /usr area), where you would have permissions to do so.  You should
> be able to grab the source code for all of the packages and install
as
> directed on this page:
>
> https://dtcenter.org/met/users/support/online_tutorial/
> METv6.1/tutorial.php?name=compilation&category=req_libs
>
> The link I sent points to the met-6.1 tutorial, but the installation
> instructions are the same for met-7.0 as they are for met-6.1.
>
> I see that you sent a reply to this original ticket.  I'll follow up
> on that soon.
>
> I hope this helps!
>
> Julie
>
>
>
> On Fri, Apr 13, 2018 at 2:34 AM, marion.mittermaier at metoffice.gov.uk
> via RT <met_help at ucar.edu> wrote:
>
> >
> > Fri Apr 13 02:34:06 2018: Request 84753 was acted upon.
> > Transaction: Ticket created by marion.mittermaier at metoffice.gov.uk
> >        Queue: met_help
> >      Subject: Building METv7
> >        Owner: Nobody
> >   Requestors: marion.mittermaier at metoffice.gov.uk
> >       Status: new
> >  Ticket <URL:
> > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=84753 >
> >
> >
> > Hello,
> >
> > It's been a while since I tried to compile MET and I notice that
the
> > process has changed rather a lot. I have run the configure script
to
> > see what may be missing.
> > I am not a software engineer so I am struggling with understanding
> > what I need to do to get MODE-Graphics installed. We do not have
> > FreeType or
> Cairo
> > and I must confess to being a bit stumped by both.
> >
> > The closest that I have come to for Cairo is the MacOS install but
> > that doesn't suggest the same as the releases link provided in the
guide.
> > https://www.cairographics.org/end_to_end_build_for_mac_os_x/
> > I do not have root permissions so I can't install these very
easily.
> > Is this the right set of instructions to follow for Red Hat Linux?
> >
> > Can I ask whether I will get no graphics output (as I used to) if
I
> > don't have these libraries installed?
> >
> > Thanks
> > Marion
> >
> >
> > --
> > Dr Marion Mittermaier        Manager: Model Diagnostics and Novel
Methods
> >
> > Met Office FitzRoy Road Exeter EX1 3PB United Kingdom
> > Tel: +44 1392 884830    Fax: +44 1392 885631
> > E:mail: marion.mittermaier at metoffice.gov.uk
> > http://www.metoffice.gov.uk/research/people/marion-mittermaier
> >
> > I am also the co-chair of the WMO WWRP/WGNE Joint Working Group
for
> > Forecast Verification Research<https://www.wmo.int/
> > pages/prog/arep/wwrp/new/Forecast_Verification.html>
> >
> > You can now follow our science on Twitter:
@MetOffice_Sci<http://www.
> > twitter.com/metoffice_sci>
> >
> >
> >
>
>


------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #84753] Building METv7
From: marion.mittermaier at metoffice.gov.uk
Time: Mon Apr 16 07:50:52 2018

John,

Just to say I wasn't running the configure command correctly, as I
hadn't exported the environment variables! However, I still think we
have issues with the netcdf libraries. It may be that we only have
Fortran libraries compiled and we need to install and build the C++
ones. I've got a software engineer here helping me with some of the
local issues, but any other insights you can provide would be helpful,
e.g. whether you think the C++ specific libraries are part of or the
root of the issues.

Marion

-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: 13 April 2018 16:45
To: Mittermaier, Marion <marion.mittermaier at metoffice.gov.uk>
Subject: Re: [rt.rap.ucar.edu #84753] Building METv7

Marion,

To followup on cairo and freetype... they should be available as
packages for RHEL.  So all that's required is running 2 rpm (RedHat
package manager) commands to get them.  And they are very common
packages.  I'd suggest asking a sys admin to install them for you.

Thanks,
John

On Fri, Apr 13, 2018 at 9:28 AM, Julie Prestopnik via RT
<met_help at ucar.edu>
wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=84753 >
>
> Hi Marion.
>
> The Freetype and Cairo libraries are required for the use of the
> MODE-Graphics tool (plot_mode_field).  You will not be able to run
the
> MODE-Graphics tool without these libraries, however you could still
> use plot_data_plane and plot_point_obs.
>
> I don't have much experience installing on a Mac, but I believe you
> can open up a terminal and install MET in a local area (as opposed
to
> a /usr area), where you would have permissions to do so.  You should
> be able to grab the source code for all of the packages and install
as
> directed on this page:
>
> https://dtcenter.org/met/users/support/online_tutorial/
> METv6.1/tutorial.php?name=compilation&category=req_libs
>
> The link I sent points to the met-6.1 tutorial, but the installation
> instructions are the same for met-7.0 as they are for met-6.1.
>
> I see that you sent a reply to this original ticket.  I'll follow up
> on that soon.
>
> I hope this helps!
>
> Julie
>
>
>
> On Fri, Apr 13, 2018 at 2:34 AM, marion.mittermaier at metoffice.gov.uk
> via RT <met_help at ucar.edu> wrote:
>
> >
> > Fri Apr 13 02:34:06 2018: Request 84753 was acted upon.
> > Transaction: Ticket created by marion.mittermaier at metoffice.gov.uk
> >        Queue: met_help
> >      Subject: Building METv7
> >        Owner: Nobody
> >   Requestors: marion.mittermaier at metoffice.gov.uk
> >       Status: new
> >  Ticket <URL:
> > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=84753 >
> >
> >
> > Hello,
> >
> > It's been a while since I tried to compile MET and I notice that
the
> > process has changed rather a lot. I have run the configure script
to
> > see what may be missing.
> > I am not a software engineer so I am struggling with understanding
> > what I need to do to get MODE-Graphics installed. We do not have
> > FreeType or
> Cairo
> > and I must confess to being a bit stumped by both.
> >
> > The closest that I have come to for Cairo is the MacOS install but
> > that doesn't suggest the same as the releases link provided in the
guide.
> > https://www.cairographics.org/end_to_end_build_for_mac_os_x/
> > I do not have root permissions so I can't install these very
easily.
> > Is this the right set of instructions to follow for Red Hat Linux?
> >
> > Can I ask whether I will get no graphics output (as I used to) if
I
> > don't have these libraries installed?
> >
> > Thanks
> > Marion
> >
> >
> > --
> > Dr Marion Mittermaier        Manager: Model Diagnostics and Novel
Methods
> >
> > Met Office FitzRoy Road Exeter EX1 3PB United Kingdom
> > Tel: +44 1392 884830    Fax: +44 1392 885631
> > E:mail: marion.mittermaier at metoffice.gov.uk
> > http://www.metoffice.gov.uk/research/people/marion-mittermaier
> >
> > I am also the co-chair of the WMO WWRP/WGNE Joint Working Group
for
> > Forecast Verification Research<https://www.wmo.int/
> > pages/prog/arep/wwrp/new/Forecast_Verification.html>
> >
> > You can now follow our science on Twitter:
@MetOffice_Sci<http://www.
> > twitter.com/metoffice_sci>
> >
> >
> >
>
>



------------------------------------------------
Subject: Building METv7
From: Julie Prestopnik
Time: Mon Apr 16 09:56:12 2018

Hi Marion.

John is out this week.  Thank you for attaching your make_install.log
file.  I'm not sure which version of MET you were using previously.  I
should mention that starting with met-6.0 we made a large change from
using
NetCDF 3 to 4. With versions met-6.0 and later, both NetCDF 4 and
HDF5,
upon which NetCDF 4 is built, are required.

With NetCDF 4, both the NetCDF-C package (netcdf-c-4.4.1.1) and the
NetCDF-CXX package (netcdf-cxx4-4.3.0) are required.

The error you received:

nc_utils.h:22:18: error: netcdf: No such file or directory
>

indicates that MET is having a difficult time finding the file
"netcdf",
which is included in the NetCDF-CXX installation.  This could be due
to the
MET environment variable not being set or due to the package not being
installed.  There is only one MET_NETCDF environment variable, so both
NetCDF packages are expected to be installed at the same location.  In
addition there is an additional environment variable, MET_HDF5, which
will
also need to be set.

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

Files for NetCDF4 C:

$MET_NETCDF/include/netcdf.h
$MET_NETCDF/lib/libnetcdf.a
$MET_NETCDF/lib/libnetcdf.so

Files for NetCDF4 C++:

$MET_NETCDF/include/netcdf
$MET_NETCDF/lib/libnetcdf_c++4.a
$MET_NETCDF/lib/libnetcdf_c++4.so

At the end of the email, I'll paste in the commands we've been using
to
compile these packages from source, in case that is useful.  Also,
this
webpage from our online tutorial may be useful:

https://dtcenter.org/met/users/support/online_tutorial/
METv6.1/tutorial.php?name=compilation&category=req_libs

I have a lot of experience installing MET on various platforms.  While
I am
not familiar with installation on the Mac, I have a Mac I could
install on
if you need me to.  I am confident we can get met-7.0 installed and
working
for you.  Please check on the files above to make sure that you have
them
and check on your environment variables.

When you try again, please let us know how it goes.  If you don't get
a
successful install, please send the most current logs from configure
and
make install, and we'll work through the issues.

I hope this helps.  More detailed instructions are below.

Thanks!

Julie

Here are the commands we've been using to compile these packages from
source.  The following assumes that you're using the GNU compilers and
that you've defined MET_LIB_DIR to point to your desired
installationdirectory:

# First pick where you'd like to install and define that as the
MET_LIB_DIR
environment variable:
setenv MET_LIB_DIR /path/to/lib/directory

# Compilers (assumes GNU compilers below, but you could use intel or
pgi)
setenv CC `which gcc`
setenv CXX `which g++`
setenv FC `which gfortran`
setenv F77 `which gfortran`

# HDF5
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-
1.10.0-patch1/src/hdf5-1.10.0-patch1.tar
tar -xvzf hdf5-1.10.0-patch1.tar
cd hdf5-1.10.0-patch1
./configure --prefix=${MET_LIB_DIR}
make install

# NetCDF-C
wget https://github.com/Unidata/netcdf-c/archive/v4.4.1.1.zip
unzip v4.4.1.1.zip
cd netcdf-c-4.4.1.1
./configure --prefix=${MET_LIB_DIR} LDFLAGS=-L${MET_LIB_DIR}/lib
CPPFLAGS=-I${MET_LIB_DIR}/include
make install

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



On Mon, Apr 16, 2018 at 7:50 AM, marion.mittermaier at metoffice.gov.uk
via RT
<met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=84753 >
>
> John,
>
> Just to say I wasn't running the configure command correctly, as I
hadn't
> exported the environment variables! However, I still think we have
issues
> with the netcdf libraries. It may be that we only have Fortran
libraries
> compiled and we need to install and build the C++ ones. I've got a
software
> engineer here helping me with some of the local issues, but any
other
> insights you can provide would be helpful, e.g. whether you think
the C++
> specific libraries are part of or the root of the issues.
>
> Marion
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: 13 April 2018 16:45
> To: Mittermaier, Marion <marion.mittermaier at metoffice.gov.uk>
> Subject: Re: [rt.rap.ucar.edu #84753] Building METv7
>
> Marion,
>
> To followup on cairo and freetype... they should be available as
packages
> for RHEL.  So all that's required is running 2 rpm (RedHat package
manager)
> commands to get them.  And they are very common packages.  I'd
suggest
> asking a sys admin to install them for you.
>
> Thanks,
> John
>
> On Fri, Apr 13, 2018 at 9:28 AM, Julie Prestopnik via RT <
> met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=84753 >
> >
> > Hi Marion.
> >
> > The Freetype and Cairo libraries are required for the use of the
> > MODE-Graphics tool (plot_mode_field).  You will not be able to run
the
> > MODE-Graphics tool without these libraries, however you could
still
> > use plot_data_plane and plot_point_obs.
> >
> > I don't have much experience installing on a Mac, but I believe
you
> > can open up a terminal and install MET in a local area (as opposed
to
> > a /usr area), where you would have permissions to do so.  You
should
> > be able to grab the source code for all of the packages and
install as
> > directed on this page:
> >
> > https://dtcenter.org/met/users/support/online_tutorial/
> > METv6.1/tutorial.php?name=compilation&category=req_libs
> >
> > The link I sent points to the met-6.1 tutorial, but the
installation
> > instructions are the same for met-7.0 as they are for met-6.1.
> >
> > I see that you sent a reply to this original ticket.  I'll follow
up
> > on that soon.
> >
> > I hope this helps!
> >
> > Julie
> >
> >
> >
> > On Fri, Apr 13, 2018 at 2:34 AM,
marion.mittermaier at metoffice.gov.uk
> > via RT <met_help at ucar.edu> wrote:
> >
> > >
> > > Fri Apr 13 02:34:06 2018: Request 84753 was acted upon.
> > > Transaction: Ticket created by
marion.mittermaier at metoffice.gov.uk
> > >        Queue: met_help
> > >      Subject: Building METv7
> > >        Owner: Nobody
> > >   Requestors: marion.mittermaier at metoffice.gov.uk
> > >       Status: new
> > >  Ticket <URL:
> > > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=84753 >
> > >
> > >
> > > Hello,
> > >
> > > It's been a while since I tried to compile MET and I notice that
the
> > > process has changed rather a lot. I have run the configure
script to
> > > see what may be missing.
> > > I am not a software engineer so I am struggling with
understanding
> > > what I need to do to get MODE-Graphics installed. We do not have
> > > FreeType or
> > Cairo
> > > and I must confess to being a bit stumped by both.
> > >
> > > The closest that I have come to for Cairo is the MacOS install
but
> > > that doesn't suggest the same as the releases link provided in
the
> guide.
> > > https://www.cairographics.org/end_to_end_build_for_mac_os_x/
> > > I do not have root permissions so I can't install these very
easily.
> > > Is this the right set of instructions to follow for Red Hat
Linux?
> > >
> > > Can I ask whether I will get no graphics output (as I used to)
if I
> > > don't have these libraries installed?
> > >
> > > Thanks
> > > Marion
> > >
> > >
> > > --
> > > Dr Marion Mittermaier        Manager: Model Diagnostics and
Novel
> Methods
> > >
> > > Met Office FitzRoy Road Exeter EX1 3PB United Kingdom
> > > Tel: +44 1392 884830    Fax: +44 1392 885631
> > > E:mail: marion.mittermaier at metoffice.gov.uk
> > > http://www.metoffice.gov.uk/research/people/marion-mittermaier
> > >
> > > I am also the co-chair of the WMO WWRP/WGNE Joint Working Group
for
> > > Forecast Verification Research<https://www.wmo.int/
> > > pages/prog/arep/wwrp/new/Forecast_Verification.html>
> > >
> > > You can now follow our science on Twitter:
@MetOffice_Sci<http://www.
> > > twitter.com/metoffice_sci>
> > >
> > >
> > >
> >
> >
>
>
>
>

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


More information about the Met_help mailing list