Я получаю эту ошибку при компиляции HDF5 в виртуальной машине Ubuntu 18.04, которую я не могу решить
LD_LIBRARY_PATH="$LD_LIBRARY_PATH`echo -L/usr/local/lib | \
sed -e 's/-L/:/g' -e 's/ //g'`" \
./H5make_libsettings > H5lib_settings.c || \
(test $HDF5_Make_Ignore && echo "*** Error ignored") || \
(rm -f H5lib_settings.c ; exit 1)
CC H5lib_settings.lo
H5lib_settings.c:31:6: warning: size of ‘H5libhdf5_settings’ is 3849 bytes [-Wlarger-than=]
char H5libhdf5_settings[]=
^
CCLD libhdf5.la
/usr/bin/ld: /usr/local/lib/libz.a(inflate.o): relocation R_X86_64_32S against `zcalloc' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libz.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:1092: recipe for target 'libhdf5.la' failed
make[1]: *** [libhdf5.la] Error 1`