[Wrf-users] Installation of HDF5 and netCDF in Ubuntu OS

Dominikus Heinzeller climbfuji at ymail.com
Thu Nov 12 09:56:25 MST 2015


Hello Mikhail,

The netcdf distribution no longer contains the fortran libraries (and include files). After installing netcdf-4.3.3.1 as you did, you need to download netcdf-fortran (currently 4.4.2) from the unidata website and install it to the same location (similar procedure using configure, make, make check, make install). Afterwards, you should run nf-config --all to check that everything was installed correctly.

Cheers

Dom/

> On 12/11/2015, at 5:52 PM, Mikhail Titov <titovm at mail.com> wrote:
> 
> Dear WRF users,
>  
> I have Ubuntu OS, Bourne Shell, GNU gcc-4.8.4 with gfortran at my computer.
> I tried to build netCDF with classic library only (netCDF-3) from netCDF-4 source.
> So I downloaded "netcdf-4.3.3.1.zip" and unziped it and moved in 'netcdf-4.3.3.1' directory.
> I used:
> =====================================
> ./configure --prefix=/home/user_pc/NCDF --disable-netcdf-4
> make
> sudo make install
> make check
> =====================================
> It seems like netCDF building was OK
> +-------------------------------------------------------------+
> | Congratulations! You have successfully installed netCDF!    |
> |                                                             |
> | You can use script "nc-config" to find out the relevant     |
> | compiler options to build your application. Enter           |
> |                                                             |
> |     nc-config --help                                        |
> |                                                             |
> | for additional information.                                 |
> |                                                             |
> | CAUTION:                                                    |
> |                                                             |
> | If you have not already run "make check", then we strongly  |
> | recommend you do so. It does not take very long.            |
> |                                                             |
> | Before using netCDF to store important data, test your      |
> | build with "make check".                                    |
> 
> ==============================================
> ============================================================================
> Testsuite summary for netCDF 4.3.3.1
> ============================================================================
> # TOTAL: 2
> # PASS:  2
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  0
> # XPASS: 0
> # ERROR: 0
> ============================================================================
>  
> After 'export NETCDF=/home/user_pc/NCDF/' (and check 'echo $NETCDF'    /home/user_pc/NCDF/)
> I apply './configure' inside WRFV3 and choose 40:
> "40.  x86_64 Linux, gfortran compiler with gcc   (serial)"
>  
> I get an error:
> ===================
> Settings listed above are written to configure.wrf.
> If you wish to change settings, please edit that file.
> If you wish to change the default options, edit the file:
>      arch/configure_new.defaults
> Error : Not found /home/user_pc/NCDF/include/netcdf.inc
>         Please check this installation of NetCDF and re-run this configure script
> ./configure: 651: exit: Illegal number: -1
> ==========================
> And this is correct - I DON'T HAVE NETCDF.INC in /home/user_pc/NCDF/include/ sub-directory.
> ===================================
> user_pc at SperPC:~/NCDF/include$ ls -l
> total 64
> -rw-r--r-- 1 root root 60074 нояб. 12 19:23 netcdf.h
> -rw-r--r-- 1 root root  2053 нояб. 12 19:23 netcdf_meta.h
> user_pc at SperPC:~/NCDF/include$ pwd
> /home/user_pc/NCDF/include
> ===================================
>  
> Any help how to install classic netCDF-3/netCDF-4 in Ubuntu OS with gfortran compiler correctly is highly appreciable.
>  
> Dr Michael Titov (research professor)
>  
>  
>  
>  
> _______________________________________________
> Wrf-users mailing list
> Wrf-users at ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/wrf-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20151112/fea13a96/attachment.html 


More information about the Wrf-users mailing list