Caffe2 Compilation Error gflags.cc' is being linked both statically and dynamically into this execut
来源:互联网 发布:百电通软件 编辑:程序博客网 时间:2024/05/27 00:42
问题描述
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/gflags
caffe2调用gflags会出现矛盾。
解决方法
#Uninstall libgflagssudo apt-get remove -y libgflags#Delete make install versionssudo rm -f /usr/local/lib/libgflags.a /usr/local/lib/libgflags_nothreads.asudo rm -rf /usr/local/include/gflags#Re-install libgflags packagesudo apt-get install -y libgflags-dev
参考文献
Caffe Compilation Error: gflags.cc’ is being linked both statically and dynamically into this executable
caffe2 安装与介绍
caffe2
0 0
- Caffe2 Compilation Error gflags.cc' is being linked both statically and dynamically into this execut
- [zt] What do 'statically linked' and 'dynamically linked' mean?
- What do 'statically linked' and 'dynamically linked' mean?
- Compilation error and exception
- This can be the result of a merge and the unknown UUID is being discarded.
- Class _NSZombie_xxxxxxx is implemented in both ?? and?
- gcc: statically linked shared library
- Cannot log back into PC after being locked and idle...
- This compilation unit is not on the build path
- This compilation unit is not on the build path SVN
- This compilation unit is not on the build path
- configure: error: C++ compiler cannot create execut
- this is a gaga return into gaga a is this
- This page contains both secure and nonsecure items warning message
- How statically linked programs run on Linux
- There was an internal error, and Internet Explorer is unable to print this document
- 真机file was built for archive which is not the architecture being linked (armv7s)
- file was built for archive which is not the architecture being linked (armv7s)
- 10大改变世界的未来科技
- dbcp连接池等
- hadoop中常用的shell命令
- 递归、迭代、改进的递归
- 神经网络历史(一)
- Caffe2 Compilation Error gflags.cc' is being linked both statically and dynamically into this execut
- BZOJ 2588 Spoj 10628. Count on a tree 主席树
- php四种基础算法:冒泡,选择,插入和快速排序法
- 详细图解如何注册 Navicat for Mysql 11.0.17 企业版(Win7 64bit)
- 常见hash算法的原理
- 如何成为稀缺性人才?
- 设计模式之外观模式
- 汽车租赁(集合框架,封装继承多态等)
- 倩女ol 江湖侠侣4-2数据。以及游戏闪屏问题