Compiling and Installing UDUNITS
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to go to the main program installation directory:
cd /path/to/UDUNITS
- Run the following command to decompress the package:
tar -zxvf udunits-2.2.28.tar.gz
- Run the following command to switch to the directory generated after decompression:
cd udunits-2.2.28
- Run the following command to perform configuration:
./configure --prefix=/path/to/UDUNITS CC=mpicc CXX=mpicxx FC=mpifort F77=mpifort
- Run the following commands to perform compilation:
make -j 16 make install
Parent topic: UDUNITS 2.2.28 Porting Guide (CentOS 7.6)