I followed each step given in Compiling WRF and successfully installed all required library which passed all the given tests. I set the following environmental variables.
export DIR="/home/nadim/WRF/LIBRARIES"
export CC="gcc"
export CXX="g++"
export FC="gfortran"
export FCFLAGS="-m64"
export F77="gfortran"
export FFLAGS="-m64"
export JASPERLIB="$DIR/grib2/lib"
export JASPERINC="$DIR/grib2/include"
export LDFLAGS="-L$DIR/grib2/lib"
export CPPFLAGS="-I$DIR/grib2/include"
export PATH=$DIR/netcdf/bin:$PATH
export NETCDF=$DIR/netcdf
export LIBS="-lnetcdf -lz"
export CPPFLAGS="-I$DIR/netcdf/include"
export LDFLAGS="-L$DIR/netcdf/lib"
export PATH="$DIR/mpich/bin:$PATH"
export WRFIO_NCD_LARGE_FILE_SUPPORT=1
export NETCDF_classic=1
I am using ArchLinux with Kernel: 6.6.36-1-LTS and GCC, CPP, g++, GFORTRAN version = 10.3.0
I had the following compilation errors.(please check compilation log file). I tried both WRFv4.5 and WRFv4.6.
export DIR="/home/nadim/WRF/LIBRARIES"
export CC="gcc"
export CXX="g++"
export FC="gfortran"
export FCFLAGS="-m64"
export F77="gfortran"
export FFLAGS="-m64"
export JASPERLIB="$DIR/grib2/lib"
export JASPERINC="$DIR/grib2/include"
export LDFLAGS="-L$DIR/grib2/lib"
export CPPFLAGS="-I$DIR/grib2/include"
export PATH=$DIR/netcdf/bin:$PATH
export NETCDF=$DIR/netcdf
export LIBS="-lnetcdf -lz"
export CPPFLAGS="-I$DIR/netcdf/include"
export LDFLAGS="-L$DIR/netcdf/lib"
export PATH="$DIR/mpich/bin:$PATH"
export WRFIO_NCD_LARGE_FILE_SUPPORT=1
export NETCDF_classic=1
I am using ArchLinux with Kernel: 6.6.36-1-LTS and GCC, CPP, g++, GFORTRAN version = 10.3.0
I had the following compilation errors.(please check compilation log file). I tried both WRFv4.5 and WRFv4.6.
Attachments
Last edited: