Operating System - HP-UX
1826592 Members
3754 Online
109695 Solutions
New Discussion

How to compile the NETCDF on hpux?

 
MA Qiang
Regular Advisor

How to compile the NETCDF on hpux?

When I compiled the netcdf-3.5.0, I got the the following error:

c89 -c -O -I. -DNDEBUG nc.c
cc: "nc.c", line 780: error 1588: "EEXIST" undefined.
cc: "nc.c", line 780: error 1563: Expression in if must be scalar.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

###############################################
I found the EEXIST was defined in .

URL of netcdf-3.5.0:
ftp://ftp.unidata.ucar.edu/pub/netcdf/old/netcdf-3.5.0.tar.Z
###############################################

When I compiled the netcdf-3.6.0, I got another error:

Warning: ncgenyy.c is out-of-date with respect to ncgen.l
Warning: It should be recreated via flex on a SunOS 5 system
+ flex ncgen.l
sh[10]: flex: not found.
+ mv lex.yy.c ncgenyy.c
mv: lex.yy.c: cannot access: No such file or directory
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

##############################################
URL of netcdf-3.6.0:

ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf.tar.gz

How to resolve these problems? Thanks!
##############################################
1 REPLY 1
MA Qiang
Regular Advisor

Re: How to compile the NETCDF on hpux?

Sorry for take your time! I forgot to read the INSTALL file before configuring the package. I should set the required ENV first.