hdf5安装的时候遇到错误

安装hdf5的时候遇到的问题:
/usr/bin/ld: /usr/lib/libz.a(inflate.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
libtool: install: error: relink `libhdf5_hl.la' with the above command before installing it
make[3]: *** [install-libLTLIBRARIES] 错误 1
make[3]: Leaving directory `/root/software/hdf5-1.8.14/hl/src'
make[2]: *** [install-am] 错误 2
make[2]: Leaving directory `/root/software/hdf5-1.8.14/hl/src'
make[1]: *** [install-recursive] 错误 1
make[1]: Leaving directory `/root/software/hdf5-1.8.14/hl'
make: *** [install-recursive] 错误 1

解决方法:
       需要按照netcdf安装包里面的INSTALL文件进行安装,特别注意zlib、hdf5要安装到同一目录,对netcdf源码进行configure的时候要指定CPPFLAGS、LDFLAGS等参数。
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值