[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Support #GWR-559570]: Problems Building udunits-1.12.9 on CentOS 5.2

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [Support #GWR-559570]: Problems Building udunits-1.12.9 on CentOS 5.2
  • Date: Wed, 11 Feb 2009 16:49:02 -0700

Russell,

> It appears that my error was in specifying the directive:
> 
> export CPPFLAGS='-Df2cFortran'
> 
> as a part of the configure command line, thus:
> 
> CPPFLAGS='-Df2cFortran'; CC=/usr/bin/gcc; CFLAGS='-O \
> -fno-builtin'; PERL=/usr/bin/perl; FC=g77; FFLAGS=-O; \
> ./configure
> 
> This syntax is often used for building things like apache.
> Didn't work this time.

The semicolons prevented the "configure" script from seeing the variable
settings because the shell would have made them into shell variables 
rather than environment variables (due to the semicolons).  The following
would have worked:

CPPFLAGS='-Df2cFortran' CC=/usr/bin/gcc CFLAGS='-O \
-fno-builtin' PERL=/usr/bin/perl FC=g77 FFLAGS=-O \
./configure

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: GWR-559570
Department: Support UDUNITS
Priority: Normal
Status: Closed