![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
安装杂记
我头疼
这个作者很懒,什么都没留下…
展开
-
【Linux】python多版本安装
源码安装Python3.7首先在官网下载所需要的python版本,格式为tgzhttps://www.python.org/downloads/release/python-371/下载完成后在解压的后的跟目录下输入./configure --with-sslmakesudo make install编译安装时需要提前安装好所需的依赖文件,否则会在make那一步报错。按照它提示的缺少信息安装即可sudo apt-get install libbz2-dev libc6-dev libffi原创 2021-03-01 18:32:25 · 642 阅读 · 0 评论 -
/usr/bin/ld: cannot find -lhdf5_hl 和 /usr/bin/ld: cannot find -lhdf5
原问题:/usr/bin/ld: cannot find -lhdf5_hl/usr/bin/ld: cannot find -lhdf5/usr/bin/ld: cannot find -lboost_python3这种问题是没有找到动态链接库(注意前面的-l前缀)解决方法还是用find去查找文件所在位置,但是得知道链接库的名字如上示问题:-lhdf5_hl == libhdf5_hl.so-lhdf5 == libhdf5.so-lboost_python3' == libboo原创 2020-10-29 20:14:08 · 294 阅读 · 0 评论 -
relocation R_X86_64_32 against `.rodata.str1.8‘ can not be used when making a shared object; recompi
原问题:/usr/local/lib/libpython3.7m.a(call.o): relocation R_X86_64_32 against `.rodata.str1.8’ can not be used when making a shared object; recompile with -fPIC大意就是目前这个python3.7的库是个静态库,不是所需要的动态库,需要重新编译一遍python解决方法首先cd到你的python3.7的解压文件夹下然后配置并编译$ ./conf原创 2020-10-29 19:59:02 · 1352 阅读 · 1 评论 -
fatal error: hdf5.h: No such file or directory
两种可能:库没有安装或者头文件路径不正确下载头文件$ sudo apt-get install libhdf5-10 libhdf5-serial-dev libhdf5-dev libhdf5-cpp-11若下载后仍然有问题,那么就是路径的问题,执行以下内容查找并修改路径根据报错信息我们能得到是一个名为hdf5.h的头文件使用find查找就可以了$ sudo find / -name hdf5.h/usr/local/include/opencv2/flann/hdf5.h/usr/i原创 2020-10-29 19:46:25 · 4094 阅读 · 1 评论