Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

Issues when compiling and installing WRF

bcastro97

New member
Hi everyone,

I was following the instructions to compile and install the libraries required to build WRF using Intel/ifort: Full WRF and WPS Installation Example (Intel). All was working perfect, but when I configure WRF I got an error messague.

Is important to say that I had done all the previous System Environment Tests and any of them fail. The results of all of these tests was according to the expected.

Also, I read another posts about the topic and follow the recomendations that they said but the error still being there. Before the instalation process I wrote the following into the terminal to define the environment variables:

Code:
export PATH=.:/home/bcastro/WRF/libs/netcdf/bin:/home/bcastro/WRF/libs/bin:${PATH}
export LD_LIBRARY_PATH=/home/bcastro/WRF/libs/lib:/home/bcastro/WRF/libs/netcdf/lib:/home/bcastro/WRF/libs/grib2/lib
export JASPERLIB=/home/bcastro/WRF/libs/grib2/lib
export JASPERINC=/home/bcastro/WRF/libs/grib2/include
export NETCDF=/home/bcastro/WRF/libs/netcdf

export DIR=/home/bcastro/WRF/libs
export F77=ifort
export F90=ifort
export FFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
export LDFLAGS="-L/home/bcastro/WRF/libs/lib -L/home/bcastro/WRF/libs/netcdf/lib -L/home/bcastro/WRF/libs/grib2/lib"
export CPPFLAGS="-I/home/bcastro/WRF/libs/include -I/home/bcastro/WRF/libs/netcdf/include -I/home/bcastro/WRF/libs/grib2/include"

Is important to say that I did not export the following environment variables, because I got an error message when I tried to build the libraries with them:

Code:
export CC=icc
export CXX=icpc
export CFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
export CXXFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
export FC=ifort
export CPP='icc -E'
export CXXCPP='icpc -E'

Then I Install all the libraries successfully (mpich, zlib, HDF5, NetCDF-c, netcdf-fortran, libpng and jasper), and wrote the following lines according to the instructions of the tutorial:

Code:
git clone --recurse-submodule https://github.com/wrf-model/WRF.git
cd WRF
./configure

Then I enter the option 15 of the Linux x86_64 options and basic nesting. But I got this error messague:

Testing for NetCDF, C and Fortran compiler:

One of compilers testing failed!
Please check your compiler
When looking at the compilers that are currently working

$dpkg --list | grep compiler
ii g++
ii g++-11
ii gcc
ii gcc-10
ii gcc-11
ii gfortran
ii gfortran-10
ii gfortran-11
ii libllvm13:amd64
ii libllvm15:amd64
ii libxkbcommon0:amd64
ii rpcsvc-proto
4:11.2.0-1ubuntu1
11.4.0-1ubuntu1~22.04
4:11.2.0-1ubuntu1
10.5.0-1ubuntu1~22.04
11.4.0-1ubuntu1~22.04
4:11.2.0-1ubuntu1
10.5.0-1ubuntu1~22.04
11.4.0-1ubuntu1~22.04
1:13.0.1-2ubuntu2.2
1:15.0.7-0ubuntu0.22.04.3
1.4.0-1
1.4.2-0ubuntu6
amd64
amd64
amd64
amd64
amd64
amd64
amd64
amd64
amd64
amd64
amd64
amd64
GNU C++ compiler
GNU C++ compiler
GNU C compiler
GNU C compiler
GNU C compiler
GNU Fortran 95 compiler
GNU Fortran compiler
GNU Fortran compiler
Modular compiler and toolchain technologies, runtime library
Modular compiler and toolchain technologies, runtime library
library interface to the XKB compiler - shared library
RPC protocol compiler and definitions

Can you help me with this Issue? Please let me know if there is any additional information I may need to add.

Thanks for any advice in advance.

Bruno
 
Last edited:
Top