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

20040817: netcdf-3.5.1installation need help



>From: =?gb2312?q?Grant=20He?= <address@hidden>
>Organization: ?
>Keywords: 200408171517.i7HFHhaW028572 netCDF PGI

Hi Grant,

>Now I want to install the netcdf-3.5.1 into my
>computer, but when I execute the command
>"./configure", it always informs me that it can't find
>the working Fortran-90 compiler. I do have intalled
>the pgi (linux86-HPF-CC) in my computer. What's wrong?

The output from 'configure' shows that it is attempting to use the
'f77' compiler as the F90 compiler:

">checking "f77" as Fortran-90 compiler... failed to
>build test program

and this is not working.  It may well be that the compiler is one
and the same, but it (the compiler) will try in run in Fortran 77
mode if it is run as 'f77'.

I recommend doing the following:

make distclean

<set the Unix environment variable F90 to be the PGI Fortran 90 
compiler, not 'f77'>

./configure

With F90 correctly specified as be the PTI Fortran 90 compiler,
'configure' should say that it found it to be OK.

If you still see a problem, please send us the content of 'config.log'
so we can see exactly what configure finds objectionable.

Cheers,

Tom Yoksas

>The output of command "./configure" is listed below.
>
>[root@localhost src]# ./configure
>creating cache ./config.cache
>checking for top-level source-directory
>/home/he/netcdf/netcdf-3.5.1/src
>checking for m4 preprocessor
>checking for m4... m4
>checking m4 flags... -B10000
>checking for xlc... no
>checking for c89... c89
>checking C compiler "c89"... works
>checking how to make dependencies... false
>checking for CC... no
>checking for cxx... no
>checking for c++... c++
>checking C++ compiler "c++"... works
>checking how to run the C preprocessor... c89 -E
>checking for f77... f77
>checking for Fortran .F compiler...
>checking if Fortran-77 compiler handles *.F files...
>yes
>checking "f77" as Fortran-90 compiler... failed to
>build test program
>checking for xlf90... no
>checking for f90... no
>configure: warning: Could not find working Fortran-90
>compiler
>configure: warning: The Fortran-90 interface will not
>be built
>checking for nm utility
>checking for nm... nm
>checking nm flags...
>checking for C-equivalent to Fortran routine "SUB"...
>sub_
>checking for Fortran "byte"... yes >checking for Fortran "integer*2"... yes
>checking if Fortran "byte" is C "signed char"... yes
>checking if Fortran "byte" is C "short"... no
>checking if Fortran "byte" is C "int"... no
>checking if Fortran "byte" is C "long"... no
>checking if Fortran "integer*2" is C "short"... yes
>checking if Fortran "integer*2" is C "int"... no
>checking if Fortran "integer*2" is C "long"... no
>checking if Fortran "integer" is C "int"... yes
>checking if Fortran "real" is C "float"... yes
>checking if Fortran "doubleprecision" is C "double"...
>yes
>checking for Fortran-equivalent to netCDF "byte"...
>byte
>checking for Fortran-equivalent to netCDF "short"...
>integer*2
>checking for math library
>checking for tanh in -lc... no
>checking for tanh in -lm... yes
>checking for ar utility
>checking for ar... ar
>checking ar flags... cru
>checking for nm utility
>checking for nm... (cached) nm
>checking nm flags...
>checking for ranlib... ranlib
>checking for stdlib.h... yes
>checking for sys/types.h... yes
>checking for strerror... yes
>checking for working ftruncate()... yes
>checking for working alloca.h... yes
>checking for alloca... yes
>checking for st_blksize in struct stat... yes
>checking for IEEE floating point format... yes
>checking for ANSI C header files... yes
>checking for size_t... yes
>checking for off_t... yes
>checking for ssize_t... yes
>checking for ptrdiff_t... yes
>checking for uchar... no
>checking whether char is unsigned... no
>checking whether byte ordering is bigendian... no
>checking size of short... 2
>checking size of int... 4
>checking size of long... 4
>checking size of float... 4
>checking size of double... 8
>checking size of off_t... 4
>checking size of size_t... 4
>checking for manual-page index command...
>checking binary distribution directory...
>/home/ftp/pub/binary/dummy_system
>updating cache ./config.cache
>creating ./config.status
>creating macros.make
>udcreating fortran/nfconfig.inc
>fortran/nfconfig.inc is unchanged
>creating libsrc/ncconfig.h
>libsrc/ncconfig.h is unchanged
>[root@localhost src]#
>
>I'm looking forward to your help.
>
>Thanks!
>
>--Grant Hertz--
>
>_________________________________________________________
>Do You Yahoo!?
>150ÍòÇúMP3·è¿ñËÑ£¬´øÄú´³ÈëÒôÀÖµîÌÃ
>http://music.yisou.com/
>ÃÀÅ®Ã÷ÐÇÓ¦Óо¡ÓУ¬ËѱéÃÀͼ¡¢ÑÞͼºÍ¿áͼ
>http://image.yisou.com
>1G¾ÍÊÇ1000Õ×£¬ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡
>http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/
>
--
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.