Deflate filter not found

HI:

I got this error when I call H5Dwrite on a compressed dataset with the default deflate filter.
Isn’t deflate built into HDF5? Do I need to add any option to configure? It seems the library cannot locate the filter and tries to search external one.

Anyone know what went wrong?

My configure command is:
CC=mpicc CXX=mpicxx FC=mpif90 ./configure --prefix=/home/khl7265/.local/hdf5_eval --enable-build-mode=debug --enable-parallel --enable-hl --disable-shared CFLAGS="-O0 -ggdb"

I am on HDF5 tag hdf5-1_10_5. My gcc is 9.1.0, mpi is mpich 3.3

#000: H5Dio.c line 197 in H5Dread(): can’t read data
major: Dataset
minor: Read failed
#001: H5VLcallback.c line 2058 in H5VL_dataset_read(): dataset read failed
major: Virtual Object Layer
minor: Read failed
#002: H5VLcallback.c line 2024 in H5VL__dataset_read(): dataset read failed
major: Virtual Object Layer
minor: Read failed
#003: H5VLnative_dataset.c line 167 in H5VL__native_dataset_read(): can’t read data
major: Dataset
minor: Read failed
#004: H5Dio.c line 575 in H5D__read(): can’t read data
major: Dataset
minor: Read failed
#005: H5Dchunk.c line 2460 in H5D__chunk_read(): unable to read raw data chunk
major: Low-level I/O
minor: Read failed
#006: H5Dchunk.c line 3824 in H5D__chunk_lock(): data pipeline read failed
major: Dataset
minor: Filter operation failed
#007: H5Z.c line 1309 in H5Z_pipeline(): required filter ‘deflate’ is not registered
major: Data filters
minor: Read failed
#008: H5PLint.c line 274 in H5PL_load(): search in path table failed
major: Plugin for dynamically loaded library
minor: Can’t get value
#009: H5PLpath.c line 604 in H5PL__find_plugin_in_path_table(): search in path /usr/local/hdf5/lib/plugin encountered an error
major: Plugin for dynamically loaded library
minor: Can’t get value
#010: H5PLpath.c line 656 in H5PL__find_plugin_in_path(): can’t open directory: /usr/local/hdf5/lib/plugin
major: Plugin for dynamically loaded library
minor: Can’t open directory or file