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

Re: 970226: Instal.-problem again



>To: address@hidden
>From: address@hidden (Andreas Abels)
>Subject: Instal.-problem again
>Organization: Geological-Palaeontological Institute and Institute of 
>Planetology
>Keywords: 199702261200.FAA13492

Andreas,

> Thanks for Your answer (I work now with version
> netcdf-2.4.3). Unfortunately the make-command produces still
> mistake-infos.
> 
> 1) I've edited the CUSTOMIZE as follows:
> 
>    CC=gcc
>    FC=""
>    prefix=/usr/local
>    OS=linux             (my kernel is vers. 2.0.18)
>    YACC=""
> 
> 2) ./configure 
> 
> (produces accordingly following info at the end)
> 
> 3) "Prompt value for Grammar-Compiler ..." 
>    (This info appears despite the change in the CUSTOMIZE-file !?)
> 
> 4) YACC=""

The "configure" script can't find where the standard yacc tool is.  On
our Linux system (2.0.27), this is in /usr/bin/yacc, and similarly, lex
is in /usr/bin/lex.  The tools lex and yacc generate C programs from the
sources ncgen.l and ncgen.y, and are needed to build the ncgen program,
which is one of the two utility programs that comes with the netCDF
library.

If you have /usr/bin/bison, you may be able to use that instead of yacc
by specifying YACC="/usr/bin/bison".

For lex, you may be able to use /usr/bin/flex.  On our Linux system,
this is actually a symbolic link to /usr/bin/lex:

    $ cd /usr/bin; ls -l lex flex
    -rwxr-xr-x   1 root     root       134252 Aug 14  1996 flex
    lrwxrwxrwx   1 root     root            4 Feb 16 23:58 lex -> flex

> 5) make     (produces at the end following infos)
> 
>    make[1]: Entering directory '/usr/local/netcdf/netcdf-2.4.3/src/ncgen'
>    lex ncgen.l
>    make[1]: lex: Command not found
>    make[1]: *** [ncgenyy.c] Error 127
>    make[1]: leaving directory '/usr/local/netcdf/netc'
>    make: *** [ncgen/all] Error 1
> 
> (Exit is only possible with ctrl + c)
> 
> I think, its a problem with this lex-command, which maybe produces
> indirectly also the other mistake-infos. Could it be, that the missing
> Grammar-Compiler is the reason, because in the directory
> '.../netcdf-2.4.3/src/ncgen' exists a file with the name 'lexyacc.com'
> ?

The lexyacc.com file is just a command script for VMS systems and not
relevant on Linux.

> In Your interesting WWW-homepage I've found unfortunately no hint to
> this problem.  If my infos are not detailed enough, please let me
> know.  Thank You much for an 'enlightening' hint !

If the above hints don't work, you might try building netCDF on a
different Unix system that has lex and yacc, and just copying the
generated output (files ncgenyy.c, ncgentab.c, ncgentab.h in the ncgen/
directory) to your Linux system and then executing "make" again.  Or we
could make these three files available for FTP if you can't find any
other way to generate them.

--Russ

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
address@hidden                     http://www.unidata.ucar.edu