当前位置:   article > 正文

caffe错误记录_libgflags_nothreads.a

libgflags_nothreads.a

1.error while loading shared libraries: .so: cannot open shared object file: No such file or directory

可使用ldd查看依赖库的信息
然后可以sudo cp (lib_path)/.so. /usr/local/lib/so. && sudo ldconfig
  • 1
  • 2

2.刚安装完能跑,重启后出现Check failed: error == cudaSuccess (30 vs. 0) unknown error

卸载NVIDIA驱动,使用安装cuda的.run文件安装驱动
以前是使用第三方库安装的367版本NVIDIA驱动
  • 1
  • 2

3.ImportError: /usr/lib/liblapack.so.3gf: undefined symbol: ATL_chemv

sudo apt-get remove libopenblas-base
  • 1

4.ImportError: No module named google.protobuf.internal

 sudo apt-get install python-protobuf
  • 1

5.ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory

git clone https://github.com/xianyi/OpenBLAS.git
cd OpenBLAS
make
sudo make install
sudo ln -s /opt/OpenBLAS/lib/libopenblas.so.0 /usr/lib/libopenblas.so.0
  • 1
  • 2
  • 3
  • 4
  • 5

6.json_parser_read.hpp:257:264: error: ‘type name’ declared as function returning an array escape

sudo gedit /usr/include/boost/property_tree/detail/json_parser_read.hpp
注释257~262行
  • 1
  • 2

7.H5public.h: No such file or directory

Makefile.config中添加 INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial
  • 1

8.libgflags.a(gflags.cc.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5’

重新编译gflags:export CXXFLAGS="-fPIC" && cmake .. && make
sudo make install
  • 1
  • 2

9.libcaffe.so: undefined reference to `cv::

 Makefile.config中加上 LIBRARIES += opencv_core opencv_highgui opencv_imgproc opencv_videoio opencv_imgcodecs
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/weixin_40725706/article/detail/200971?site
推荐阅读
相关标签
  

闽ICP备14008679号