<div dir="ltr"><div><div>and as far as i remember in ubuntu you can just install all necessary libs from repositories. via e.g. <br></div>sudo apt-get install netcdf-dev <br></div>or smth similar to it<br><div class="gmail_extra"><br><div class="gmail_quote">2015-11-13 2:52 GMT+10:00 Mikhail Titov <span dir="ltr"><<a href="mailto:titovm@mail.com" target="_blank">titovm@mail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Verdana;font-size:12.0px"><div>Dear WRF users,</div>
<div> </div>
<div>I have Ubuntu OS, Bourne Shell, GNU gcc-4.8.4 with gfortran at my computer.</div>
<div>I tried to build netCDF with classic library only (netCDF-3) from netCDF-4 source.</div>
<div>So I downloaded "netcdf-4.3.3.1.zip" and unziped it and moved in 'netcdf-4.3.3.1' directory.</div>
<div>I used:</div>
<div>=====================================</div>
<div>./configure --prefix=/home/user_pc/NCDF --disable-netcdf-4</div>
<div>make</div>
<div>sudo make install</div>
<div>make check</div>
<div>=====================================</div>
<div>
<div><b>It seems like netCDF building was OK</b></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<b>rror : Not found /home/user_pc/NCDF/include/netcdf.inc</b><br>
Please check this installation of NetCDF and re-run this configure script</div>
<div>./configure: 651: exit: Illegal number: -1<br>
==========================</div>
<div><b>And this is correct - I DON'T HAVE NETCDF.INC in /home/user_pc/NCDF/include/ sub-directory.</b></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><b>Any help how to install classic netCDF-3/netCDF-4 in Ubuntu OS with gfortran compiler correctly is highly appreciable. </b></div>
<div> </div>
<div>Dr Michael Titov (research professor)</div>
</div>
<div> </div>
</div>
</div>
<div> </div>
<div> </div>
<div> </div></div></div>
<br>_______________________________________________<br>
Wrf-users mailing list<br>
<a href="mailto:Wrf-users@ucar.edu">Wrf-users@ucar.edu</a><br>
<a href="http://mailman.ucar.edu/mailman/listinfo/wrf-users" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/wrf-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><span style="color:rgb(153,153,153)">Leonid Gonchukov</span><br style="color:rgb(153,153,153)"><br></div></div>
</div></div>