caffe problem
Ubuntu16.04+Cuda8.0(gtx1060)+OpenCV2.4.13+anaconda2+caffe詳細(xì)配置
http://blog.csdn.net/ccemmawatson/article/details/42004105Ubuntu14.04 Caffe安裝
http://blog.csdn.net/fansetcool/article/details/51569374Caffe + CUDA8.0 + CuDNNv5.1 + OpenCV3.1 + Ubuntu14.04? 配置參考文獻(xiàn)
http://jiepai99.com/houchaoqun_xmu/article/details/72822199
【CPU + GPU版】Ubuntu16.04 + caffe + Anaconda2 + OpenCV3.x(附:問題集錦+測試案例)
http://blog.csdn.net/autocyz/article/details/51783857
ubuntu16.04安裝caffe以及各種問題匯總
Makefile:581: recipe for target '.build_release/src/caffe/layer_factory.o' failed
這個問題疑似跟Ubuntu16.04的版本有關(guān)系,google到一個方法:在caffe的Makefile里面第409行(我的)
NVCCFLAGS += -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)更改為
NVCCFLAGS += -D_FORCE_INLINES -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)
zhuan:
http://www.th7.cn/system/lin/201702/202453.shtml
ubuntu 16.04配置Python(anaconda2)+opencv后的錯誤提示解決方法
author@jason_ql
http://blog.csdn.net/lql0716/article/details/54909440
- 安裝Python或anaconda2之后,提示以下錯誤:
ImportError: /home/jason/anaconda2/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.21’ not found (required by /home/jason/anaconda2/lib/python2.7/site-packages/cv2.so)
- 解決方法:
打開終端輸入命令:pip install opencv-python
Caffe 錯誤:采用make方式編譯時遇到如下錯誤 In file included from /usr/include/boost/python/detail/prefix.hpp:13:0, from /usr/include/boost/python/args.hpp:8, from /usr/include/boost/python.hpp:11, from tools/caffe.cpp:2: /usr/include/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory compilation terminated. Makefile:575: recipe for target '.build_release/tools/caffe.o' failed make: *** [.build_release/tools/caffe.o] Error 1 解決方案:修改Makefile.config,將 PYTHON_INCLUDE := $(ANACONDA_HOME)/include \ # ? ? ? ? ? ? ? ? $(ANACONDA_HOME)/include/python2.7 \ # ? ? ? ? ? ? ? ? $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include \ 取消以下2行注釋 PYTHON_INCLUDE := $(ANACONDA_HOME)/include \ $(ANACONDA_HOME)/include/python2.7 \ $(ANACONDA_HOME)/lib/python2.7/site-packages/numpy/core/include \ Note:$(ANACONDA_HOME) #虛擬環(huán)境Anaconda2的根目錄
http://www.voidcn.com/blog/u010900574/article/p-6243308.html
1. 錯誤信息(沒有pyconfig.h文件)
fatal error: pyconfig.h: No such file or directory #include "pyconfig.h"網(wǎng)上有答案說要增加PYTHONPATH的路徑如下export PYTHONPATH=/path/to/caffe/python 可是這個對我來說并沒有解決錯誤。
通過locate pyconfig.h發(fā)現(xiàn)系統(tǒng)中其實很多位置都有這個文件,應(yīng)該是當(dāng)前環(huán)境變量找不到這個文件導(dǎo)致。
真正的解決方法是:
/home/lab/anaconda2/include/python2.7/因為我用的anaconda。如果沒有裝執(zhí)行下面這個估計也可以,反正你用locate pyconfig.h看看哪里有這個文件,給環(huán)境變量一個路徑就可以了
export CPLUS_INCLUDE_PATH=/usr/include/python2.7
2.錯誤信息(沒有定義的引用 //usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to lzma_index_end@XZ_5.0)
//usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_buffer_decode@XZ_5.0' //usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_size@XZ_5.0' //usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_uncompressed_size@XZ_5.0' //usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_stream_footer_decode@XZ_5.0' //usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_end@XZ_5.0' //usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_stream_buffer_decode@XZ_5.0' usr/lib/x86_64-linux-gnu/libunwind.so.8: undefined reference to `lzma_index_end@XZ_5.0' collect2: error: ld returned 1 exit status解決方案
同樣是環(huán)境變量問題
我在~/.bashrc里面增加了下面一條命令
export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
其實我估計再終端里面直接輸出`export LD_LIBRARY_PATH=/lib/x86_64-linux-gnu也應(yīng)該能夠解決問題
http://blog.csdn.net/darren2015zdc/article/details/73770744
今天我在UNUNTU系統(tǒng)上配置CUDA,添加PATH,source ~/.bashrc 后
卻出現(xiàn)了下面的問題:
? 命令 'ls' 可在 '/bin/ls' 處找到
? 由于/bin 不在PATH 環(huán)境變量中,故無法找到該命令。
? Command 'vim' is available in '/usr/bin/'
??The command could not be located because '/usr/bin' is not included in the PATH environment variable.
查了兩個小時,發(fā)現(xiàn)問題竟然出現(xiàn)在自己的理解層次上,我在bashrc文件中寫了下面的信息
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin/:/sbin:/bin:/usr/game:$PATH
export PATH=/home/nick/mpich-install/bin:$PATH
export PATH=/home/nick/Qt5.2.1/5.2.1/gcc/bin/:$PATH
export LD_LIBRARY_PATH=/opt/matlab2009b/bin/glnx86/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/opt/matlab2009b/extern/include/:$LD_LIBRARY_PATH
export PATH=/usr/local/cuda-6.0/bin:$PTAH
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/cuda-6.0/lib:$LD_LIBRARY_PATH
#export LD_LIBRARY_PATH=/opt/matlab2009b/extern/include/:$LD_LIBRARY_PATH
#source /opt/intel/composer_xe_2013_sp1.0.080/bin/iccvars.sh ia32
自己照著別人的東西抄的,沒有理解,結(jié)果漏洞百出啊,開始時,我竟然沒有發(fā)現(xiàn),以后真要深入理解啊,不能機(jī)械式的抄襲啊。
知道畫紅色的為什么錯了嗎?
另外,這方面發(fā)現(xiàn) kiwi小白總結(jié)的不錯?點擊打開鏈接?我摘抄下來了
一、臨時設(shè)置
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64export PATH=$JAVA_HOME/:$PATH
二、當(dāng)前用戶的全局設(shè)置
打開~/.bashrc,添加行:export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
export PATH=$JAVA_HOME/:$PATH
使生效
source .bashrc?
三、所有用戶的全局設(shè)置
$?sudo gedit?/etc/profile?在里面加入:
在命令行中,輸入命令$ls 提示:
?命令 'ls' 可在 '/bin/ls' 處找到? 由于/bin 不在PATH 環(huán)境變量中,故無法找到該命令。
轉(zhuǎn)到自己沒有修改過PATH的文件,比如$cd /etc/environment,執(zhí)行 $source /etc/environment,這是ls命令可以用了,不再提醒錯誤。
或者執(zhí)行命令
$export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin/:/sbin:/bin:/usr/game:$PATH
徹底修改錯誤,就打開自己修改過的PATH的文件。比如?/etc/profile?/etc/environment?~/.profile?~/.bashrc?
我修改過的PATH為?
export PATH=/usr/local/cuda-6.0/bin:$PTAHexport PATH=/usr/local/bin:$PATHexport PATH=/usr/local/cuda-6.0/lib:$LD_LIBRARY_PATH
大家看到錯誤了嗎,把錯誤信息改正,再用source命令即可。
總結(jié)
以上是生活随笔為你收集整理的caffe problem的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Ubuntu 16.04卸载CUDA 6
- 下一篇: FCN网络的训练——以SIFT-Flow