bbqe597
bbqe597
采纳率0%
2019-02-27 16:31

Ubuntu配置caffe执行make all命令报错(各位大哥 救救孩子吧~~折腾一整天了)

做一个项目需要配置caffe环境 之前从来没接触过 然后在caffe下执行make all就报错:
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: cannot find -lhdf5_hl
/usr/bin/ld: cannot find -lhdf5
collect2: error: ld returned 1 exit status
Makefile:582: recipe for target '.build_release/lib/libcaffe.so.1.0.0' failed
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1

百度到的
修改Makefile.config和
修改Makefile文件的LIBRARIES+=
以及sudo apt-get install libopenblas-dev
的方法都试过了没用啊
真是没辙了 求助万能的网友 救救孩子吧~~~感激不尽

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • qq_36764147 16TLLUO 2年前

    http://caffe.berkeleyvision.org/install_apt.html

    Ubuntu Installation
    For Ubuntu (>= 17.04)
    Installing pre-compiled Caffe

    Everything including caffe itself is packaged in 17.04 and higher versions. To install pre-compiled Caffe package, just do it by

    sudo apt install caffe-cpu
    
    

    for CPU-only version, or

    sudo apt install caffe-cuda
    

    for CUDA version. Note, the cuda version may break if your NVIDIA driver and CUDA toolkit are not installed by APT.

    Package status of CPU-only version

    Package status of CUDA version

    Installing Caffe from source

    We may install the dependencies by merely one line

    sudo apt build-dep caffe-cpu        # dependencies for CPU-only version
    sudo apt build-dep caffe-cuda       # dependencies for CUDA versino
    

    It requires a deb-src line in your sources.list. Continue with compilation.

    点赞 1 评论 复制链接分享
  • weixin_40103562 phoenix-bai 2年前

    你得认真读报错信息才是, 它说它缺的是hdf5, 这些相关的包都得手动安装一下才行.
    你认真读caffe的安装tutorial, 严格按照上面的来 , 必然能成功. caffe文档很全不说, ubuntu上安装更简单些.多些耐心嘛.

    点赞 评论 复制链接分享

相关推荐