I am a beginner and following the intruction ("Online Compilation Tutorial", "Compiling WRF") step by step, but is stopped when install netcdf-fortran, at the step "./configure --prefix=$DIR/netcdf --disable-dap --disable-netcdf-4 --disable-shared", and it shows as below:
configure: WARNING: unrecognized options: --disable-dap
configure: netCDF-Fortran 4.5.2
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: checking user options
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/Build_WRF/LIBRARIES/netcdf-fortran-4.5.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
--disable-netcdf-4: command not found
Can anyone help me to solve it? Thank you.
configure: WARNING: unrecognized options: --disable-dap
configure: netCDF-Fortran 4.5.2
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
configure: checking user options
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/Build_WRF/LIBRARIES/netcdf-fortran-4.5.2':
configure: error: C compiler cannot create executables
See `config.log' for more details
--disable-netcdf-4: command not found
Can anyone help me to solve it? Thank you.