NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

netCDF 3.6.0-beta6 (almost) success on cygwin+g95

Hi all,

first of all: Congratulations!  Building and testing this beta went
very smooth on my cygwin system with a self-built g95 compiler from
www.g95.org .

The only problem I encountered was due to a bug in the install script
that did not expect that the ncdump and ncgen executables have an
.exe ending on cygwin:

% make install
...
make[2]: Entering directory
`/usr/local/src/packages/netcdf-3_6_0-beta6/src/ncdump'
gcc -o ncdump -g -Os -pipe  ncdump.o vardata.o dumplib.o
../libsrc/libnetcdf.a  
Info: resolving _opterr by linking to __imp__opterr (auto-import)
Info: resolving _optarg by linking to __imp__optarg (auto-import)
Info: resolving _optind by linking to __imp__optind (auto-import)
cp ncdump /usr/local/bin/ncdump
cp: `ncdump' and `/usr/local/bin/ncdump' are the same file
make[2]: *** [/usr/local/bin/ncdump] Error 1
make[2]: Target `install' not remade because of errors.
make[2]: Leaving directory
`/usr/local/src/packages/netcdf-3_6_0-beta6/src/ncdump'
make[1]: *** [subdir_target] Error 1

A possible solution for Windows/Cygwin systems: define a variable
EXEEXT in the top-level Makefile which is set to EXEEXT by configure
(and left empty for real Unix systems), and fix the Makefiles in the
ncgen and ncdump directories accordingly.

Cheers,
-ha

-- 
Harald Anlauf
Deutscher Wetterdienst (DWD)           | Phone:  +49-(0)69/8062-4941
FE1/AP03 - Assimilation & Modelle      | Fax:    +49-(0)69/8062-4954
63067 Offenbach                        | e-Mail: harald.anlauf@xxxxxx

  • 2004 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: