[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20040712: netCDF 3.5.1 install problems
- Subject: Re: 20040712: netCDF 3.5.1 install problems
- Date: 12 Jul 2004 11:01:58 -0600
Unidata Support <address@hidden> writes:
Howdy!
Looks like you need to set environmental var CPPFLAGS to -Df2cFortran
and try again, if you want the fortran interface.
Good luck!
Ed
> ------- Forwarded Message
>
> >To: <address@hidden>
> >From: "CJ-Yang" <address@hidden>
> >Subject: Error for install netcdf-3.5.1
> >Organization: ?
> >Keywords: 200407120432.i6C4WnaW027774 netCDF -Df2cFortran
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0005_01C4680C.3CF25FF0
> Content-Type: text/plain;
> charset="gb2312"
> Content-Transfer-Encoding: 7bit
>
> Hi,
>
> I encountered a problem during the installation of netcdf-3.5.1
>
> Installation information:
> --------------------------------
> [cjyang@jupiter netcdf-3.5.1]$ uname -a
> Linux jupiter.cluster.clc.cuhk.edu.hk 2.4.22-2mosixclc #1 SMP Sun Dec 21
> 18:57:04 HKT 2003 i686 unknown unknown GNU/Linux
>
> Installation script (includes ENV variables): install_netcdf_cj.sh (See,
> attachment)
>
> Error messages: make.out (See, attachment)
>
> Could you tell me how to fix this error?
>
> Thanks and best regards,
> CJ
>
> ------=_NextPart_000_0005_01C4680C.3CF25FF0
> Content-Type: application/octet-stream;
> name="make.out"
> Content-Transfer-Encoding: quoted-printable
> Content-Disposition: attachment;
> filename="make.out"
>
> make[1]: Entering directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src'=0A=
> =0A=
> Making `all' in directory =
> /home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5.1/sr=
> c/libsrc=0A=
> =0A=
> make[2]: Entering directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src/libsrc'=0A=
> /usr/bin/gcc -c -O -I. -DNDEBUG attr.c=0A=
> /usr/bin/gcc -c -O -I. -DNDEBUG dim.c=0A=
> /usr/bin/gcc -c -O -I. -DNDEBUG error.c=0A=
> /usr/bin/gcc -c -O -I. -DNDEBUG -DVERSION=3D`cat ../VERSION` libvers.c=0A=
> /usr/bin/gcc -c -O -I. -DNDEBUG nc.c=0A=
> /usr/bin/gcc -c -O -I. -DNDEBUG ncio.c=0A=
> /usr/bin/gcc -c -O -I. -DNDEBUG ncx.c=0A=
> /usr/bin/gcc -c -O -I. -DNDEBUG putget.c=0A=
> /usr/bin/gcc -c -O -I. -DNDEBUG string.c=0A=
> /usr/bin/gcc -c -O -I. -DNDEBUG v1hpg.c=0A=
> /usr/bin/gcc -c -O -I. -DNDEBUG v2i.c=0A=
> /usr/bin/gcc -c -O -I. -DNDEBUG var.c=0A=
> ar cru libnetcdf.a attr.o dim.o error.o libvers.o nc.o ncio.o ncx.o =
> putget.o string.o v1hpg.o v2i.o var.o=0A=
> ranlib libnetcdf.a=0A=
> make[2]: Leaving directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src/libsrc'=0A=
> =0A=
> Returning to directory =
> /home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5.1/sr=
> c=0A=
> =0A=
> make[1]: Leaving directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src'=0A=
> make[1]: Entering directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src'=0A=
> =0A=
> Making `all' in directory =
> /home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5.1/sr=
> c/ncdump=0A=
> =0A=
> make[2]: Entering directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src/ncdump'=0A=
> /usr/bin/gcc -c -O -I../libsrc -DNDEBUG ncdump.c=0A=
> /usr/bin/gcc -c -O -I../libsrc -DNDEBUG vardata.c=0A=
> /usr/bin/gcc -c -O -I../libsrc -DNDEBUG dumplib.c=0A=
> /usr/bin/gcc -o ncdump -O ncdump.o vardata.o dumplib.o =
> ../libsrc/libnetcdf.a =0A=
> make[2]: Leaving directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src/ncdump'=0A=
> =0A=
> Returning to directory =
> /home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5.1/sr=
> c=0A=
> =0A=
> make[1]: Leaving directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src'=0A=
> make[1]: Entering directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src'=0A=
> =0A=
> Making `all' in directory =
> /home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5.1/sr=
> c/ncgen=0A=
> =0A=
> make[2]: Entering directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src/ncgen'=0A=
> /usr/bin/gcc -c -O -I../libsrc -I. -DNDEBUG main.c=0A=
> /usr/bin/gcc -c -O -I../libsrc -I. -DNDEBUG load.c=0A=
> Warning: ncgentab.c is out-of-date with respect to ncgen.y=0A=
> Warning: It should be recreated via yacc on an OSF/1 system=0A=
> /usr/bin/gcc -c -O -I../libsrc -I. -DNDEBUG ncgentab.c=0A=
> /usr/bin/gcc -c -O -I../libsrc -I. -DNDEBUG escapes.c=0A=
> /usr/bin/gcc -c -O -I../libsrc -I. -DNDEBUG getfill.c=0A=
> /usr/bin/gcc -c -O -I../libsrc -I. -DNDEBUG init.c=0A=
> /usr/bin/gcc -c -O -I../libsrc -I. -DNDEBUG genlib.c=0A=
> /usr/bin/gcc -o ncgen -O main.o load.o ncgentab.o escapes.o getfill.o =
> init.o genlib.o ../libsrc/libnetcdf.a =0A=
> make[2]: Leaving directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src/ncgen'=0A=
> =0A=
> Returning to directory =
> /home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5.1/sr=
> c=0A=
> =0A=
> make[1]: Leaving directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src'=0A=
> make[1]: Entering directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src'=0A=
> =0A=
> Making `all' in directory =
> /home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5.1/sr=
> c/cxx=0A=
> =0A=
> make[2]: Entering directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src/cxx'=0A=
> /usr/bin/g++ -c -O2 -g -I../libsrc -I. -DNDEBUG netcdf.cpp=0A=
> /usr/bin/g++ -c -O2 -g -I../libsrc -I. -DNDEBUG ncvalues.cpp=0A=
> ar cru libnetcdf_c++.a netcdf.o ncvalues.o=0A=
> ranlib libnetcdf_c++.a=0A=
> /usr/bin/g++ -c -O2 -g -I../libsrc -I. -DNDEBUG nctst.cpp=0A=
> /usr/bin/g++ -o nctst -O2 -g nctst.o libnetcdf_c++.a -L../libsrc =
> -lnetcdf =0A=
> make[2]: Leaving directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src/cxx'=0A=
> =0A=
> Returning to directory =
> /home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5.1/sr=
> c=0A=
> =0A=
> make[1]: Leaving directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src'=0A=
> make[1]: Entering directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src'=0A=
> =0A=
> Making `all' in directory =
> /home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5.1/sr=
> c/fortran=0A=
> =0A=
> make[2]: Entering directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src/fortran'=0A=
> /usr/bin/gcc -c -O -I../libsrc -DNDEBUG fort-attio.c=0A=
> In file included from ncfortran.h:13,=0A=
> from fort-attio.c:6:=0A=
> cfortran.h:134:3: #error ""cfortran.h: Can't find your environment =
> among: - MIPS cc and f77 2.0. (e.g. Silicon Graphics, DECstations, =
> ...) - IBM AIX XL C and FORTRAN Compiler/6000 Version =
> 01.01.0000.0000 - VAX VMS CC 3.1 and FORTRAN 5.4. =
> - Alpha VMS DEC C 1.3 and DEC FORTRAN 6.0. =
> - Alpha OSF DEC C and DEC Fortran for OSF/1 AXP =
> Version 1.2 - Apollo DomainOS 10.2 (sys5.3) with f77 10.7 =
> and cc 6.7. - CRAY =
> - NEC SX-4 SUPER-UX =
> - CONVEX =
> - Sun =
> - PowerStation Fortran with Visual C++ =
> - HP9000s300/s700/s800 Latest test with: =
> HP-UX A.08.07 A 9000/730 - LynxOS: cc or gcc with f2c. =
> - VAXUltrix: vcc,cc or gcc with f2c. gcc =
> or cc with f77. - f77 with vcc works; but =
> missing link magic for f77 I/O. - NO fort. None of gcc, =
> cc or vcc generate required names. - f2c : Use #define =
> f2cFortran, or cc -Df2cFortran - NAG f90: Use #define =
> NAGf90Fortran, or cc -DNAGf90Fortran - Absoft UNIX F77: Use =
> #define AbsoftUNIXFortran or cc -DAbsoftUNIXFortran - Absoft Pro =
> Fortran: Use #define AbsoftProFortran - Portland Group Fortran: Use =
> #define pgiFortra"=0A=
> make[2]: *** [fort-attio.o] Error 1=0A=
> make[2]: Leaving directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src/fortran'=0A=
> make[1]: *** [subdir_target] Error 1=0A=
> make[1]: Leaving directory =
> `/nfs/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/netcdf-3.5=
> .1/src'=0A=
> make: *** [fortran/all] Error 2=0A=
>
> ------=_NextPart_000_0005_01C4680C.3CF25FF0
> Content-Type: application/octet-stream;
> name="install_netcdf_cj.sh"
> Content-Transfer-Encoding: quoted-printable
> Content-Disposition: attachment;
> filename="install_netcdf_cj.sh"
>
> #!/bin/bash=0A=
> #=0A=
> # Install netcdf: netcdf-3.5.1/src/INSTALL.html=0A=
> #=0A=
> =0A=
> NETCDF_ROOT=3D/home/user/cjyang/cluster/app_and_benchmark/ccsm/download/n=
> etcdf-3.5.1=0A=
> cd $NETCDF_ROOT/src=0A=
> =0A=
> # CC=3D/home/user/cjyang/BENCHMARK/local/pgi/linux86/5.1/bin/pgcc=0A=
> # FC=3D/home/user/cjyang/BENCHMARK/local/pgi/linux86/5.1/bin/pgf77=0A=
> # ## F77=3D/home/user/cjyang/BENCHMARK/local/pgi/linux86/5.1/bin/pgf77=0A=
> # F90=3D/home/user/cjyang/BENCHMARK/local/pgi/linux86/5.1/bin/pgf90=0A=
> # CXX=3D/home/user/cjyang/BENCHMARK/local/pgi/linux86/5.1/bin/pgCC=0A=
> # CFLAGS=3D"-O2 -g"=0A=
> # CPPFLAGS=3D"-O2 -g"=0A=
> # FFLAGS=3D"-O2 -g"=0A=
> # ## F77FLAGS=3D"-O2 -g"=0A=
> # F90FLAGS=3D"-O2 -g"=0A=
> # CXXFLAGS=3D"-O2 -g"=0A=
> =0A=
> # ARFLAGS=0A=
> # NMFLAGS=0A=
> # FPP=0A=
> # M4FLAGS=0A=
> # LIBS=0A=
> # FLIBS=0A=
> # FLDFLAGS=0A=
> #=0A=
> =0A=
> CC=3D/usr/bin/gcc=0A=
> CFLAGS=3D-O=0A=
> =0A=
> #CPPFLAGS=3D'-DNDEBUG -DpgiFortran'=0A=
> #CPPFLAGS=3D'-DNDEBUG'=0A=
> CPPFLAGS=3D-Df2cFortran=0A=
> =0A=
> =0A=
> #FC=3D/opt/pgi/linux86/bin/pgf90=0A=
> #FC=3D/home/user/cjyang/BENCHMARK/local/pgi/linux86/5.1/bin/pgf90=0A=
> =0A=
> FC=3D/usr/bin/g77=0A=
> FFLAGS=3D'-O -w'=0A=
> =0A=
> F77=3D/usr/bin/g77=0A=
> F77FLAGS=3D"-O2 -g"=0A=
> =0A=
> F90=3D/usr/bin/f90=0A=
> F90FLAGS=3D"-O2 -g"=0A=
> =0A=
> CXX=3D/usr/bin/g++=0A=
> CXXFLAGS=3D"-O2 -g"=0A=
> =0A=
> make clean=0A=
> make distclean=0A=
> =0A=
> ./configure --prefix=3D/home/user/cjyang/cluster/app_and_benchmark/local=0A=
> =0A=
> make 2>&1 | tee make.out=0A=
> =0A=
>
> ------=_NextPart_000_0005_01C4680C.3CF25FF0--
>
> --
> NOTE: All email exchanges with Unidata User Support are recorded in the
> Unidata inquiry tracking system and then made publically 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.
>
> ------- End of Forwarded Message