<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Dear users,</div>
<div> </div>
<div>Thanks a lot for your help as I managed to install netCDF-3 classic (without installation of HDF5 - netCDF-4).</div>
<div>I would like to describe my steps as this maybe will be in use to someone else.</div>
<div><u>If there isany mistake in my netCDF-3 building you are more than welcome to CORRECT and LET me know!</u></div>
<div><u>I stage</u>: <strong>netCDF-C</strong></div>
<div>
<div style="font-family: Verdana;font-size: 12.0px;font-style: italic;line-height: 19.2px;">I have Ubuntu OS, Bourne Shell, GNU gcc-4.8.4 with gfortran at my computer.</div>
<div style="font-family: Verdana;font-size: 12.0px;font-style: italic;line-height: 19.2px;">I downloaded "netcdf-c-4.4.0-rc4.zip" from UNIDATA site, unziped it and moved in 'netcdf-c-4.4.0-rc4' main directory.</div>
<div style="font-family: Verdana;font-size: 12.0px;font-style: italic;line-height: 19.2px;">In "netcdf-c-4.4.0-rc4" I used commands:</div>
<div style="font-family: Verdana;font-size: 12.0px;font-style: italic;line-height: 19.2px;"> </div>
<div style="font-family: Verdana;font-size: 12.0px;font-style: italic;line-height: 19.2px;">./configure --prefix=/home/user_pc/NCDFC --disable-netcdf-4</div>
<div style="font-family: Verdana;font-size: 12.0px;font-style: italic;line-height: 19.2px;">make</div>
<div style="font-family: Verdana;font-size: 12.0px;font-style: italic;line-height: 19.2px;">sudo make install</div>
<div style="font-family: Verdana;font-size: 12.0px;font-style: italic;line-height: 19.2px;">make check</div>
</div>
<div>=================================</div>
<div><u>II stage:</u> <strong>netCDF-Fortran 4.4.2 (Shared Library)</strong></div>
<div>I downloaded "netcdf-fortran-4.4.2.tar", 'tar -xvf <span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">netcdf-fortran-4.4.2.tar</span>' and moved in "<span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">netcdf-fortran-4.4.2" main directory.</span></div>
<div><span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">In "netcdf-fortran-4.4.2" root directory" I applied commands to make "netcdf-fortran-4.4.2" shared with "netcdf-c-4.4.0-rc4":</span></div>
<div> </div>
<div>
<div>CC=/usr/bin/cc<br/>
echo $CC<br/>
FC=/usr/bin/gfortran<br/>
echo $FC</div>
<div>NCDIR=/home/user_pc/NCDFC<br/>
echo $NCDIR<br/>
export LD_LIBRARY_PATH=${NCDIR}/lib:${LD_LIBRARY_PATH}<br/>
echo $LD_LIBRARY_PATH<br/>
NFDIR=/home/user_pc/NCDFC<br/>
echo $NFDIR<br/>
CPPFLAGS=-I${NCDIR}/include LDFLAGS=-L${NCDIR}/lib ./configure --prefix=${NFDIR} --disable-fortran-type-check<br/>
make check<br/>
sudo make install</div>
<div>./nf-config --all</div>
<div>====================================</div>
<div>
<div>This netCDF-Fortran 4.4.2 has been built with the following features:</div>
<div> --cc -> gcc<br/>
--cflags -> -I/home/user_pc/NCDFC/include -I/home/user_pc/NCDFC/include</div>
<div> --fc -> gfortran<br/>
--fflags -> -I/home/user_pc/NCDFC/include<br/>
--flibs -> -L/home/user_pc/NCDFC/lib -lnetcdff -L/home/user_pc/NCDFC/lib -lnetcdf -lnetcdf<br/>
--has-f90 -> no<br/>
--has-f03 -> yes</div>
<div> --has-nc2 -> yes<br/>
--has-nc4 -> no</div>
<div> --prefix -> /home/user_pc/NCDFC<br/>
--includedir-> /home/user_pc/NCDFC/include<br/>
--version -> netCDF-Fortran 4.4.2</div>
<div>=====================================</div>
</div>
<div> </div>
<div>Regards</div>
<div>Dr Michael Titov</div>
</div>
<div>
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Sent:</b> Thursday, November 12, 2015 at 8:56 AM<br/>
<b>From:</b> "Dominikus Heinzeller" <climbfuji@ymail.com><br/>
<b>To:</b> "Mikhail Titov" <titovm@mail.com><br/>
<b>Cc:</b> wrf-users@ucar.edu<br/>
<b>Subject:</b> Re: [Wrf-users] Installation of HDF5 and netCDF in Ubuntu OS</div>
<div>
<div>Hello Mikhail,
<div> </div>
<div>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.</div>
<div> </div>
<div>Cheers</div>
<div> </div>
<div>Dom/</div>
<div>
<div>
<blockquote>
<div>On 12/11/2015, at 5:52 PM, Mikhail Titov <<a>titovm@mail.com</a>> wrote:</div>
<div>
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>Dear WRF users,</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div>=====================================</div>
<div>
<div><strong>It seems like netCDF building was OK</strong></div>
<div>+-------------------------------------------------------------+<br/>
| Congratulations! You have successfully installed netCDF! |<br/>
| |<br/>
| You can use script "nc-config" to find out the relevant |<br/>
| compiler options to build your application. Enter |<br/>
| |<br/>
| nc-config --help |<br/>
| |<br/>
| for additional information. |<br/>
| |<br/>
| CAUTION: |<br/>
| |<br/>
| If you have not already run "make check", then we strongly |<br/>
| recommend you do so. It does not take very long. |<br/>
| |<br/>
| Before using netCDF to store important data, test your |<br/>
| build with "make check". |</div>
<div><br/>
==============================================</div>
<div>
<div>============================================================================<br/>
Testsuite summary for netCDF 4.3.3.1<br/>
============================================================================<br/>
# TOTAL: 2<br/>
# PASS: 2<br/>
# SKIP: 0<br/>
# XFAIL: 0<br/>
# FAIL: 0<br/>
# XPASS: 0<br/>
# ERROR: 0<br/>
============================================================================</div>
<div> </div>
<div>After 'export NETCDF=/home/user_pc/NCDF/' (and check 'echo $NETCDF' /home/user_pc/NCDF/)</div>
<div>I apply './configure' inside WRFV3 and choose 40:</div>
<div>
<div>"40. x86_64 Linux, gfortran compiler with gcc (serial)"</div>
<div> </div>
<div>I get an error:</div>
<div>===================</div>
<div>Settings listed above are written to configure.wrf.<br/>
If you wish to change settings, please edit that file.<br/>
If you wish to change the default options, edit the file:<br/>
arch/configure_new.defaults</div>
</div>
</div>
<div>
<div>E<strong>rror : Not found /home/user_pc/NCDF/include/netcdf.inc</strong><br/>
Please check this installation of NetCDF and re-run this configure script</div>
<div>./configure: 651: exit: Illegal number: -1<br/>
==========================</div>
<div><strong>And this is correct - I DON'T HAVE NETCDF.INC in /home/user_pc/NCDF/include/ sub-directory.</strong></div>
<div>
<div>===================================</div>
<div>user_pc@SperPC:~/NCDF/include$ ls -l<br/>
total 64<br/>
-rw-r--r-- 1 root root 60074 нояб. 12 19:23 netcdf.h<br/>
-rw-r--r-- 1 root root 2053 нояб. 12 19:23 netcdf_meta.h<br/>
user_pc@SperPC:~/NCDF/include$ pwd<br/>
/home/user_pc/NCDF/include</div>
<div>===================================</div>
<div> </div>
<div><strong>Any help how to install classic netCDF-3/netCDF-4 in Ubuntu OS with gfortran compiler correctly is highly appreciable. </strong></div>
<div> </div>
<div>Dr Michael Titov (research professor)</div>
</div>
<div> </div>
</div>
</div>
<div> </div>
<div> </div>
<div> </div>
</div>
</div>
_______________________________________________<br/>
Wrf-users mailing list<br/>
<a>Wrf-users@ucar.edu</a><br/>
<a href="http://mailman.ucar.edu/mailman/listinfo/wrf-users" target="_blank">http://mailman.ucar.edu/mailman/listinfo/wrf-users</a></div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div></div></body></html>