Caffe2 Compilation Error gflags.cc' is being linked both statically and dynamically into this execut
生活随笔
收集整理的這篇文章主要介紹了
Caffe2 Compilation Error gflags.cc' is being linked both statically and dynamically into this execut
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
問題描述
python -c 'from caffe2.python import core' 2>/dev/null && echo "Success" || echo "Failure"
出現這個問題
ERROR: something wrong with flag 'flagfile' in file '/home/bids/softwares/gflags-2.2.0/src/gflags.cc'. One possibility: file '/home/bids/softwares/gflags-2.2.0/src/gflags.cc' is being linked both statically and dynamically into this executable.這是因為之前設置 Ubuntu 15.04 安裝 boost-python , 導致 gflags.cc 指向了
/usr/local/lib/libgflags.a /usr/local/lib/libgflags_nothreads.a 和 /usr/local/include/gflagscaffe2調用gflags會出現矛盾。
解決方法
#Uninstall libgflags sudo apt-get remove -y libgflags #Delete make install versions sudo rm -f /usr/local/lib/libgflags.a /usr/local/lib/libgflags_nothreads.a sudo rm -rf /usr/local/include/gflags#Re-install libgflags package sudo apt-get install -y libgflags-dev
參考文獻
Caffe Compilation Error: gflags.cc’ is being linked both statically and dynamically into this executable
caffe2 安裝與介紹
caffe2
總結
以上是生活随笔為你收集整理的Caffe2 Compilation Error gflags.cc' is being linked both statically and dynamically into this execut的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: [转] Nook Glowlight P
- 下一篇: AutoCAD中程序创建Ribbon界面