Configure script with precompiled binaries

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

waldyd

New member
Hi,

I have the following precompiled binaries in my system:

Installed Packages

netcdf.x86_64 4.3.3.1-1.fc22 @fedora
netcdf-devel.x86_64 4.3.3.1-1.fc22 @fedora
netcdf-fortran.x86_64 4.4.1-3.fc22 @fedora
netcdf-fortran-devel.x86_64 4.4.1-3.fc22 @fedora
netcdf4-python.x86_64 1.1.6-1.fc22 @fedora

They provide all libraries needed to compile WRF. However the configure script (https://github.com/wrf-model/WRF/blob/fb60d61cc44e2a2e8b8311f0b79185724010d510/configure) is unable to detect them. Would you please provide a workaround for this?

I already tried the following:

export NETCDF=/usr
export NETCDF_classic=1
./configure

However WRF will use classic (non-compressed) NETCDF format when compression is available:

Code:
[ WRF]$ nc-config --libs
-lnetcdf
[ WRF]$ nf-config --flibs
-lnetcdff
[r WRF]$ nc-config --all

This netCDF 4.3.3.1 has been built with the following features:

  --cc        -> gcc
  --cflags    ->  -I/usr/include -I/usr/include/hdf
  --libs      ->

  --has-c++   -> no
  --cxx       ->
  --has-c++4  -> no
  --cxx4      ->

  --fc        -> gfortran
  --fflags    -> -I/usr/include
  --flibs     -> -lnetcdff
  --has-f90   -> no

  --has-dap   -> yes
  --has-nc2   -> yes
  --has-nc4   -> yes
  --has-hdf5  -> yes
  --has-hdf4  -> yes
  --has-pnetcdf-> no

  --prefix    -> /usr
  --includedir-> /usr/include
  --version   -> netCDF 4.3.3.1

[ WRF]$ nf-config --all

This netCDF-Fortran 4.4.1 has been built with the following features:

  --cc        -> gcc
  --cflags    ->  -I/usr/include

  --fc        -> gfortran
  --fflags    -> -I/usr/include
  --flibs     -> -lnetcdff
  --has-f90   -> no
  --has-f03   -> yes

  --has-nc2   -> yes
  --has-nc4   -> yes

  --prefix    -> /usr
  --includedir-> /usr/include
  --version   -> netCDF-Fortran 4.4.1
 
I've moved this topic from the MPAS-Atmosphere section of the forum since the question concerns the compilation of the WRF model.
 
Back
Top