在linux下安装软件遇到问题,求指导。 50
安装hdf5时,makeinstall遇到如下问题:ld:/home/luhui/usr/local/lib/libz.a(inflate.o):relocationR_...
安装hdf5时,make install遇到如下问题:
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
请问应该怎么解决?谢谢各位了! 展开
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
请问应该怎么解决?谢谢各位了! 展开
3个回答
展开全部
sudo make install 试试
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
把原来路径下的那个文件暂时移除试试
追问
您好,我问下具体是移除哪个文件,我刚开始接触linux,所以完全小白。。
追答
就是第一句话,home/luhui....
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |