Rate This Document
Findability
Accuracy
Completeness
Readability

Installing UDUNITS

Procedure

  1. Download the installation package.
    cd /path/to
    wget https://artifacts.unidata.ucar.edu/repository/downloads-udunits/2.2.28/udunits-2.2.28.tar.gz
    tar xf udunits-2.2.28.tar.gz
  2. Go to the source package directory and perform the installation.
    cd udunits-2.2.28
    CC=clang CXX=clang++ ./configure LDFLAGS="-L/path/to/libexpat/lib64" CPPFLAGS="-I/path/to/libexpat/include" --prefix=/path/to/udunits
    make -j 64
    make install
  3. Set the environment variables.
    export PATH=/path/to/udunits/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/udunits/lib:$LD_LIBRARY_PATH
    export INCLUDE=/path/to/udunits/include:$INCLUDE