Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the NCEPLIBS installation package directory.
cd /path/to/NCEPLIBS
- Decompress the NCEPLIBS installation package.
tar -zxvf NCEPLIBS-1.2.0.tar.gz
- Go to the directory generated after the decompression.
cd NCEPLIBS-1.2.0
- Modify the download addresses in the CMakeList file.
- Open the CMakeList file.
vi /path/to/NCEPLIBS/NCEPLIBS-1.2.0/CMakeLists.txt
- Press i to enter the edit mode and change https in lines 153, 186, and 215 to git.
set(GIT_URL "git://github.com/noaa-emc/nceplibs-${lib}") set(GIT_URL "git://github.com/noaa-emc/emc_crtm") set(GIT_URL "git://github.com/noaa-emc/emc_post") - Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the CMakeList file.
- Create the build and nceplibs directories, and go to the build directory.
mkdir -p build && mkdir nceplibs cd build
- Build the software.
CC=mpicc CXX=mpicxx FC=mpif90 cmake ../ -DCMAKE_INSTALL_PREFIX=../nceplibs -DCMAKE_VERBOSE_MAKEFILE=on

- Perform the compilation and installation.
make

- If the sigio module reports an error during the installation, see Error Reported When Compiling the sigio Module.
- If the w3emc module reports an error during the installation, see Error "Could NOT find NetCDF (missing: NetCDF_INCLUDE_DIRS)" Reported When Compiling the w3emc Module and Error "F90-F-0004-Unable to open MODULE file sigio_module.mod" Reported When Compiling the w3emc Module.
- If the gfsio module reports an error during the installation, see Error Reported When Compiling the gfsio Module and Error Reported When Compiling the sfcio Module.
- If the sfcio module reports an error during the installation, see Error Reported When Compiling the sfcio Module.
- If the g2 module reports an error during the installation, see Error Reported When Compiling the g2 Module.
- If the nemsiogfs module reports an error during the installation, see Error Reported When Compiling the nemsiogfs Module.
- If the landsfcutil module reports an error during the installation, see Error Reported When Compiling the landsfcutil Module.
- If the nceppost module reports an error during the installation, see Error "Failed to clone repository: 'git://github.com/noaa-emc/emc_post'" Reported When Compiling the nceppost Module, Error "Could NOT find NetCDF (missing: NetCDF_INCLUDE_DIRS)" Reported When Compiling the nceppost Module, Errors "F90-S-0021-Label field of continuation line is not blank" and "F90-S-0034-Syntax error at or near" Reported When Compiling the nceppost Module, and Error "F90-S-0034-Syntax error at or near" Reported When Compiling the nceppost Module.
- If the wrf_io module reports an error during the installation, see Error "Could NOT find NetCDF (missing: NetCDF_INCLUDE_DIRS)" Reported When Compiling the wrf_io Module and Error "F90-S-0017-Unable to open include file: netcdf.inc" Reported When Compiling the wrf_io Module.
- If the wgrib2 module reports an error during the installation, see Error "Could NOT find NetCDF (missing: NetCDF_INCLUDE_DIRS)" Reported When Compiling the wgrib2 Module and Errors "Could NOT find JPEG" and "Could NOT find Jasper" Reported When Compiling the wgrib2 Module.
Parent topic: NCEPLIBS 1.2.0 Porting Guide (openEuler 20.03)