1. “Unable to lock the administration directory (/var/lib/dpkg/)” 错误
原因是上一个apt-get进程没有结束,
解决办法:一是重启计算机 (粗暴)
二是参考以下链接文档 https://linux.cn/article-8040-1.html
2. “fatal: unable to access 'https://github.com/weiliu89/caffe.git'”: server certificate verification failed
解决办法:git config --global http.sslVerify false # 跳过ssl校验即可
3. 关于usr/bin/ld: cannot find -lxxx问题总结
解决办法:一般是系统缺乏对应的库文件,install即可
For example:
/usr/bin/ld: cannot find -openblas
—> sudo apt-get install libopenblas-dev
参考链接:https://blog.51cto.com/eminzhang/1285705
https://www.cnblogs.com/cassvin/archive/2011/07/24/Linux_Qtopia_2.html
https://blog.csdn.net/xiaoqu001/article/details/78261646
https://www.cnblogs.com/zhming26/p/6164131.html
https://blog.51cto.com/eminzhang/1285705
4. 关于undefined reference to `cv::VideoCapture::VideoCapture()'
解决办法:
在Makefile文件中找到第195行并修改:
ifeq ($(USE_OPENCV), 1)
LIBRARIES += opencv_core opencv_highgui opencv_imgproc opencv_videoio
参考链接:https://blog.csdn.net/xunan003/article/details/78429503
https://wisdomai.xyz/tool/caffe/archives/1664
https://github.com/facebook/C3D/issues/253
5. Python 安装库报错SSL: CERTIFICATE_VERIFY_FAILED
解决办法:pip --trusted-host pypi.python.org install pkg
参考链接:https://blog.csdn.net/kongxx/article/details/51187482
https://github.com/pypa/pip/issues/5448
6. bash: ./data/VOC0712/create_list.sh: /bin/bash^M: bad interpreter: No such file or directory
原因:可能是create_list.sh在window上修改过,我自己的锅!!!
解决办法:~/caffe$ sed -i 's/^M//g' .data/VOC0712/create_data.sh
注意: ^M 在linux 下写法,按^M 是回车换行符. 输入方法是按住CTRL+v,松开v,按m
参考链接:https://blog.csdn.net/risingsun001/article/details/49362225
7. ./data/VOC0712/create_data.sh ImportError: dynamic module does not define init function (init_caffe)
原因:我认为是编译时选择了python3版本,而实际上最好使用Python2编译
参考链接:https://blog.csdn.net/ShuqiaoS/article/details/83382191
https://github.com/BVLC/caffe/issues/2770
8. ImportError: No module named google.protobuf.interbal
解决办法:sudo pip install protobuf (或者pip install -i https://pypi.tuna.tsinghua.edu.cn/simple protobuf)
参考链接:https://www.cnblogs.com/happyamyhope/p/9207873.html
9. ImportError:/home/firefly/caffe/python/caffe/_caffe.so:undefined symbol:
_ZN5boost6python6detail11init_moduleER11PymoduleDefPFvvE
原因:忘记了。。。应该是没有make py
10. ImportError: No module named '_caffe'
参考链接:https://blog.csdn.net/u010417185/article/details/53559107
11. ImportError: cannot import name _validate_lengths
原因:Python2的numpy库么有安装.
解决办法:sudo pip install numpy (这一步可能出现无法下载的问题,自行百度或参考我的关于Python的blog)
参考链接:https://blog.csdn.net/qq_22764813/article/details/86534227
12. mportError:dynamic module does not define module export function (PyInit__caffe)
原因:应该是编译python3-caffe的接口导致的,so 最好使用python2
参考链接:https://www.cnblogs.com/wangxiaocvpr/p/6285542.html
参考博客:
https://www.cnblogs.com/zwjhq/p/9258432.html
https://wisdomai.xyz/tool/caffe/archives/1664
https://blog.csdn.net/jiangyanting2011/article/details/78712198
https://blog.csdn.net/muashy/article/details/74897851
https://www.cnblogs.com/springwind2006/p/7635860.html
https://blog.csdn.net/Losteng/article/details/50809753