Difference between revisions of "NetCDF"

From CBLFS
Jump to navigationJump to search
Line 17: Line 17:
 
Compile the package:
 
Compile the package:
  
 +
cd src &&
 
  ./configure --prefix=/usr &&
 
  ./configure --prefix=/usr &&
 
  make
 
  make
Line 30: Line 31:
 
Compile the package:
 
Compile the package:
  
 +
cd src &&
 
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
 
  CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
 
  FC="gfortran ${BUILD32}" \
 
  FC="gfortran ${BUILD32}" \
Line 43: Line 45:
 
Compile the package:
 
Compile the package:
  
 +
cd src &&
 
  sed -i "s:/lib:&32:" macros.make.in &&
 
  sed -i "s:/lib:&32:" macros.make.in &&
 
  CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
 
  CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
Line 57: Line 60:
 
Compile the package:
 
Compile the package:
  
 +
cd src &&
 
  sed -i "s:/lib:&64:" macros.make.in &&
 
  sed -i "s:/lib:&64:" macros.make.in &&
 
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
 
  CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \

Revision as of 14:00, 7 January 2007

Download Source: ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.0.1.tar.gz

Introduction to NetCDF

NetCDF is a format developed at Unidata that was inspired by the CDF format from NASA. NetCDF stands for "Network Common Data Form" and is a self-describing data format, commonly used in scientific and engineering applications.

Homepage: http://www.unidata.ucar.edu/software/netcdf/

Dependencies

Non-Multilib

Compile the package:

cd src &&
./configure --prefix=/usr &&
make

Install the package:

make install

Multilib

32Bit

Compile the package:

cd src &&
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" \
FC="gfortran ${BUILD32}" \
./configure --prefix=/usr &&
make

Install the package:

make install

N32

Compile the package:

cd src &&
sed -i "s:/lib:&32:" macros.make.in &&
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" \
FC="gfortran ${BUILDN32}" \
./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package:

make install

64Bit

Compile the package:

cd src &&
sed -i "s:/lib:&64:" macros.make.in &&
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" \
FC="gfortran ${BUILD64}" \
./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package:

make install

Contents

Installed Programs: ncgen, ncdump
Installed libraries: libnetcdf.a, libnetcdf_c++.a
Installed Directories: None