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

Leonid Gonchukov gonchukovlv at gmail.com
Thu Nov 12 19:12:58 MST 2015


and as far as i remember in ubuntu you can just install all necessary libs
from repositories. via e.g.
sudo apt-get install netcdf-dev
or smth similar to it

2015-11-13 2:52 GMT+10:00 Mikhail Titov <titovm at mail.com>:

> 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
> E*rror : 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
>
>


-- 
Leonid Gonchukov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20151113/81e73eca/attachment.html 


More information about the Wrf-users mailing list