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

- Perform the compilation and installation.
make -j 8

make install

- Set the environment variables.
export PATH=/path/to/udunits2/bin:$PATH export LD_LIBRARY_PATH=/path/to/udunits2/lib:$LD_LIBRARY_PATH
Parent topic: Configuring the Compilation Environment