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

Unidata Support: 20010619: netcdf v3.5.0 build notes for RH Linux & Absoft f90

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: Unidata Support: 20010619: netcdf v3.5.0 build notes for RH Linux & Absoft f90
  • Date: Tue, 19 Jun 2001 10:06:52 -0600

Steve,

Here's some suggested changes required for installing netCDF with
Linux/Absoft f90 ...

--Russ

------- Forwarded Message

Date:    Tue, 19 Jun 2001 08:45:11 -0600
From:    Unidata Support <address@hidden>
To:      address@hidden
Subject: 20010619: netcdf v3.5.0 build notes for RH Linux & Absoft f90


------- Forwarded Message

>cc: address@hidden
>From: Bill McKie <address@hidden>
>Subject: netcdf v3.5.0 build notes for RH Linux & Absoft f90
>Organization: NASA/Ames
>Keywords: 200106190749.f5J7nip14634 netCDF Absoft RedHat 6.1

Hi 

I recently picked up netcdf v3.5.0 for use on a Redhat Linux v6.1
system with the AbSoft ProFortran v6 f90 compiler.

It is working ok.  But as with builds of previous versions of netcdf,
I had to do a few manual customizations in the build process in order
for it to install on the above system.  I thought you might like to have
my notes for possible use in helping others with a similar system.

A summary of the steps I used follows.

Thanks for continuing to develop and provide the netcdf package,

Bill McKie
NASA Ames


 Unpack the distribution tarball as usual.

 Ensure the AbSoft f90 compiler is in the PATH environment variable.

 Set the environment variables:
   CC gcc
   FC "f90"
   F90 "f90"
   CXX ""
   CFLAGS ""
   FFLAGS ""
   F90FLAGS ""
   CXXFLAGS ""

 cd .../netcdf-3.5.0/src

 ./configure --prefix=directory_path_to_install_into

 cd fortran

 Edit cfortran and add following line near top

  #define AbsoftProFortran

 cd .../netcdf-3.5.0/src
 make

 Don't do "make test", since it will fail at some link
 steps with unsatisfied external references to command
 line argument routines iargc and getarg.

 cd .../netcdf-3.5.0/src
 Edit macros.make and change the line:
  NETCDF.MOD = netcdf.mod
 to:
  NETCDF.MOD = NETCDF.mod

 make install


------- End of Forwarded Message

------- End of Forwarded Message