王老师您好!我是一名在读的博士生,最近的安装hdf5的过程中遇到了错误:
ld: /home/luhui/usr/local/lib/libz.a(inflate.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/home/luhui/usr/local/lib/libz.a: could not read symbols: Bad value
libtool: install: error: relink `libhdf5_hl.la' with the above command before installing it
make[3]: *** [install-libLTLIBRARIES] Error 1
make[3]: Leaving directory `/home/luhui/hdf5-1.8.9/hl/src'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/luhui/hdf5-1.8.9/hl/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/luhui/hdf5-1.8.9/hl'
make: *** [install-recursive] Error 1
我按照网上的方法在把编译方式改写成-fPIC之后在”make&make check"进行到testing iopipe会卡住。
我想问下您这个问题怎么解决,我被这个问题困扰很久了,希望得到您的指导。