[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #TMC-532805]: Netcdf 4.1.3 error installing



Hello,

NetCDF 4.1.3 is quite an old version; I am unable to get it to compile on OSX, 
for example.  It appears to be failing at the C++ interface compilation.  I 
notice on the tutorial page you provided, there are a number of test programs 
that you can download to test your system before trying to install netCDF.  Do 
all of the tests pass?  Can you provide the 'config.log' file generated when 
you run 'configure'? 

Thank you,

-Ward


> Hello,
> 
> I'm trying to install netcdf 4.1.3 following the instrutions from WRF
> online tutorial
> 
> http://www2.mmm.ucar.edu/wrf/OnLineTutorial/compilation_tutorial.php#STEP1
> 
> tar xzvf netcdf-4.1.3.tar.gz     #or just .tar if no .gz present
> cd netcdf-4.1.3
> ./configure --prefix=$DIR/netcdf --disable-dap \
> --disable-netcdf-4 --disable-shared
> make
> make install
> 
> But when I perform the make sentence I get this error:
> 
> make[2]: se entra en el directorio 
> '/home/usuario/Build_WRF/LIBRARIES/netcdf-4.1.3/cxx'
> /bin/bash ../libtool --tag=CXX   --mode=link g++  -g -O2 -version-number 
> 4:1:0   -o libnetcdf_c++.la -rpath 
> /home/usuario/Build_WRF/LIBRARIES/netcdf/lib libnetcdf_c___la-netcdf.lo 
> libnetcdf_c___la-ncvalues.lo ../liblib/libnetcdf.la -lm
> libtool: link: ar cru .libs/libnetcdf_c++.a  libnetcdf_c___la-netcdf.o 
> libnetcdf_c___la-ncvalues.o
> ar: `u' modifier ignored since `D' is the default (see `U')
> ar: libnetcdf_c___la-netcdf.o: No such file or directory
> Makefile:406: fallo en las instrucciones para el objetivo 'libnetcdf_c++.la'
> make[2]: *** [libnetcdf_c++.la] Error 1
> make[2]: se sale del directorio 
> '/home/usuario/Build_WRF/LIBRARIES/netcdf-4.1.3/cxx'
> Makefile:551: fallo en las instrucciones para el objetivo 'all-recursive'
> make[1]: *** [all-recursive] Error 1
> make[1]: se sale del directorio 
> '/home/usuario/Build_WRF/LIBRARIES/netcdf-4.1.3'
> Makefile:422: fallo en las instrucciones para el objetivo 'all'
> make: *** [all] Error 2
> 
> My envinronmental variables are:
> OLDPWD=/home/usuario/Build_WRF/LIBRARIES
> CC=gcc
> XDG_SESSION_ID=36
> USER=usuario
> PWD=/home/usuario/Build_WRF/LIBRARIES/netcdf-4.1.3
> HOME=/home/usuario
> DIR=/home/usuario/Build_WRF/LIBRARIES
> F77=gfortran
> FCFLAGS=-m64
> FC=gfortran
> SSH_TTY=/dev/pts/4
> MAIL=/var/mail/usuario
> CXX=g++
> TERM=xterm
> SHELL=/bin/bash
> SHLVL=1
> LANGUAGE=es_AR:es
> FFLAGS=-m64
> LOGNAME=usuario
> DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
> XDG_RUNTIME_DIR=/run/user/1000
> PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
> _=/usr/bin/printenv
> 
> I'm using debiant stretch:
> uname -a
> Linux WRF 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u3 (2019-06-16) x86_64 
> GNU/Linux
> 
> It's a fresh new debian install.
> 
> Hope you can guide me with this error.
> 
> Best regards
> 
> Carina
> 
> Enviado desde Outlook<http://aka.ms/weboutlook>
> 
> 


Ticket Details
===================
Ticket ID: TMC-532805
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.