Installation of Parallel netCDF

Rob Latham robl at mcs.anl.gov
Thu May 22 11:25:07 CDT 2014



On 05/22/2014 10:42 AM, clopezsisterna at casleo.gov.ar wrote:
> Dear Robl,
>
> I have been trying to install parallel netCDF on a computer that works
> with Debian. I succeed in configure PnetCDF, but I can't build it. After
> doing "make" the next message shows:
>
> ": -Pncmpi ./ncmpigen.l; \
> 	cp -f lex.ncmpi.c ncmpigenyy.c
> cp: no se puede efectuar `stat' sobre «lex.ncmpi.c»: No existe el fichero
> o el directorio "
>

That is unexpected, for certain.

Configure should have looked for a lexer (either flex or lex) and a 
compiler-compiler (either bison or yacc).  It appears configure found 
neither, but proceeded anyway.

> It seems the problem is that I don't have the file lex.ncmpi.c nor
> ncmpigenyy.c (I already look for them on the libraries).
> In any case of having relevance, I need parallel to run the Flash Code.
> Therefore any assist on this will help me greatly.

The lex.ncmpi.c and ncmpigenyy.c files are generated from 
./src/utils/ncmpigen/ncmpigen.y and ./src/utils/ncmpigen/ncmpigen.l

I would like to draw your attention to this section of the README:

     - To build parallel-netcdf you will need some additional programs:
         - either yacc or bison
         - either lex or flex
       These are usually part of your operating system's development tools.

On debian, those packages would be 'flex' and 'bison' and you may as 
well install 'build-essential'

the good news is that those tools are only needed for ncmpigen.  If you 
really truly cannot install flex and bison, ncmpigen is not needed for 
libpnetcdf.a and pnetcdf.h to function.

==rob

>
> I apologise for any inconvenience. Yours sincerely,
>
> Cecilia Lopez
>
>
>
>

-- 
Rob Latham
Mathematics and Computer Science Division
Argonne National Lab, IL USA


More information about the parallel-netcdf mailing list