Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Udunits2

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Create an installation directory.
    mkdir -p /path/to/udunits2
  3. Go to the installation directory.
    cd /path/to/udunits2
  4. Obtain the source package.
    wget https://artifacts.unidata.ucar.edu/repository/downloads-udunits/udunits-2.2.28.tar.gz
  5. Decompress the source package.
    tar -zxvf udunits-2.2.28.tar.gz
  6. Go to the directory generated after the decompression.
    cd udunits-2.2.28/
  7. Set the environment variables.
    export PERL=""
  8. Install the dependencies.
    yum install expat-devel
  9. Configure the compilation.
    ./configure --prefix=/path/to/udunits2

  10. Perform the compilation and installation.
    make -j 8

    make install

  11. Set the environment variables.
    export PATH=/path/to/udunits2/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/udunits2/lib:$LD_LIBRARY_PATH