1. > export LIBS=”-lnetcdf -lz”, gives the error:
"export: `-lz”': not a valid identifier"
Bash does not recognize smart quotes (" ") as quote delimiters and treats them as literal characters within variable names or values.
To correct this, replace the smart quotes with standard double quotes:
> export LIBS="-lnetcdf -lz"
2. export LDFLAGS="-L$NETCDF/lib -L$DIR/grib2/lib"
The NETCDF library is located in $NETCDF/lib64, ZLIB in /grib2/lib, and Jasper in /grib2/lib64, so the libraries will not be found unless the path is corrected, i.e.
> LDFLAGS="-L$NETCDF/lib64 -L$DIR/grib2/lib -L$DIR/grib2/lib64"
Other than those two minor issues, everything worked fine.
Andy Ward
"export: `-lz”': not a valid identifier"
Bash does not recognize smart quotes (" ") as quote delimiters and treats them as literal characters within variable names or values.
To correct this, replace the smart quotes with standard double quotes:
> export LIBS="-lnetcdf -lz"
2. export LDFLAGS="-L$NETCDF/lib -L$DIR/grib2/lib"
The NETCDF library is located in $NETCDF/lib64, ZLIB in /grib2/lib, and Jasper in /grib2/lib64, so the libraries will not be found unless the path is corrected, i.e.
> LDFLAGS="-L$NETCDF/lib64 -L$DIR/grib2/lib -L$DIR/grib2/lib64"
Other than those two minor issues, everything worked fine.
Andy Ward
Last edited: