This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
> Hi, > I'm trying to install Netcdf 3.6.2 on my Intel Pentium 4 with Linux Ubuntu > 7.04. > I initially installed pre-built binaries linux_2.6-i686 but when i was > trying to compile (with g95 fortran compiler) a Netcdf documentation's > sample.f90 file as follow > > g95 -c sample.f90 -I/usr/local/include/ -L/usr/local/lib/ -lnetcdf > Fatal Error: While reading module 'netcdf' found module version 0, expected > 3. > > So i decided to built from source.But the 'make check' doesn't work.I relate > the last part of 'make check',when it stops as follow: > > All 6 tests passed > ================== > make[2]: Leaving directory `/home/michele/Desktop/netcdf3/ncdump' > make[1]: Leaving directory `/home/michele/Desktop/netcdf3/ncdump' > Making check in cxx > make[1]: Entering directory `/home/michele/Desktop/netcdf3/cxx' > depbase=`echo netcdf.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \ > if /bin/bash ../libtool --tag=CXX --mode=compile gcc -DHAVE_CONFIG_H > -I. -I. -I.. -I../fortran -DDEBUG -I../libsrc -MT netcdf.lo -MD -MP > -MF "$depbase.Tpo" -c -o netcdf.lo netcdf.cpp; \ > then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; > exit 1; fi > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../fortran -DDEBUG > -I../libsrc -MT netcdf.lo -MD -MP -MF .deps/netcdf.Tpo -c netcdf.cpp > gcc: error trying to exec 'cc1plus': execvp: No such file or directory > make[1]: *** [netcdf.lo] Error 1 > make[1]: Leaving directory `/home/michele/Desktop/netcdf3/cxx' > make: *** [check-recursive] Error 1 > > > Why prebuilt binary doesn't work? > What's the meaning of 'Fatal error: While reading module 'netcdf' found > module version 0, expected 3.' ? > > _________________________________________________________________ > Personalizza la tua casella di posta con Windows Live Hotmail! > http://imagine-windowslive.com/hotmail/default.aspx?locale=it#5 > > The pre-built binaries used gfortran, not g95, so they will only work with gfortran. The c++ error you are having seems to imply that your c++ compiler is broken. Can you try rerunning configure like this: ./configure --disable-cxx Then make and see if it works. Then, if you don't need the c++ API, you are done. Otherwise, please email back and we will see if we can get it working. Ed Ticket Details =================== Ticket ID: ZHH-706736 Department: Support netCDF Priority: Normal Status: Closed