Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While installing netcdf-4.6.1 problem with zlib location #33

Open
Synkevych opened this issue Sep 7, 2022 · 0 comments
Open

While installing netcdf-4.6.1 problem with zlib location #33

Synkevych opened this issue Sep 7, 2022 · 0 comments

Comments

@Synkevych
Copy link
Owner

The folder where zlib installed we could provide when configure setting:

/configure --prefix=$DIR/netcdf CPPFLAGS="-I$DIR/hdf5/include -I$DIR/grib2/include -I/home/ubuntu/flexpart_libs/zlib/include -O3" LDFLAGS="-L$DIR/hdf5/lib -L$DIR/grib2/lib -L/home/ubuntu/flexpart_libs/zlib/lib" --enable-shared --enable-netcdf-4 --disable-dap --disable-doxygen

Also, you need to indicate where to find the HDF5 library, using CPPFLAGS and
LDFLAGS environment
variables, as described in

http://www.unidata.ucar.edu/netcdf/docs/getting_and_building_netcdf.html#build_default

Note that the "--with-zlib=..." configure option you used is not supported by
the netCDF-4 configure,
as it's not listed in configure --help output. Instead, zlib must be found
either in a default system
directory or in locations listed with the CPPFLAGS and LDFLAGS environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant