if (a.isMultiGpuBoard && b.isMultiGpuBoard) {
can not find
solution :modify the makefile CUDAPATH ,USECUDNN
opencv package install all
solution:
缺少动态连接库.so--cannot open shared object file: No such file or directory
export LD_LIBRARY_PATH=/where/you/install/lib:$LD_LIBRARY_PATH
eg:
export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64
export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:$LD_LIBRARY_PATH(LD_LIBRARY_PATH = null)
sudo ldconfig
4 cp: cannot stat ‘/home/ruyunli/data/VOCdevkit//VOC2007/ImageSets/Main/trainval.txt’: No such file or directorysolution:
http://www.cnblogs.com/smartvessel/archive/2011/01/21/1940868.html
the $HOMEPATH is wrong
5 File "/home/ruyunli/caffe/caffe/data/VOC0712/../../scripts/create_annoset.py", line 7, in <module>
from caffe.proto import caffe_pb2
ImportError: No module named caffe.proto
solution:
This happens when you have not run make for the python files separately.
Run make pycaffe soon after running make in the Caffe directory.
You may have to set the path to the python library correctly in Makefile.config
ruyunli@ruyunli-All-Series:~/caffe$ make -j12 pycaffe
touch python/caffe/proto/__init__.py
CXX/LD -o python/caffe/_caffe.so python/caffe/_caffe.cpp
PROTOC (python) src/caffe/proto/caffe.proto
8 ImportError: No module named google.protobuf.internal
solution:
pip 路径错误
安装了多个版本的pip
9 df -hl
硬盘内存分配
10 vim ~/env/set_env.sh
查看环境变量
11 git clone https://github.com/weiliu89/caffe.git
12 make -j 在多CPU上编译Linux内核时可以用 make -jn 多个任务并行编译加快速度。印象中在某个文档看到过 n 选择为 ncpu + 1,但不清楚理论依据何在。13 htop
输入命令cat /proc/cpuinfo 查看physical id有几个,上述结果显示只有0,所以只有一个物理cpu;查看processor有几个,上述结果显示有0和1两个,所以有两个逻辑cpu。
15 ICU
/home/env/common_caffe/lib/libboost_regex.so: undefined reference to `u_digit_48'
/home/env/common_caffe/lib/libboost_regex.so: undefined reference to `icu_48::Locale::Locale(icu_48::Locale const&)'
/home/env/common_caffe/lib/libboost_regex.so: undefined reference to `u_tolower_48'
/home/env/common_caffe/lib/libboost_regex.so: undefined reference to `icu_48::Locale::Locale()'
/home/env/common_caffe/lib/libboost_regex.so: undefined reference to `u_isblank_48'
/home/env/common_caffe/lib/libboost_regex.so: undefined reference to `u_charFromName_48'
/home/env/common_caffe/lib/libboost_regex.so: undefined reference to `u_isspace_48'