构建 caffe 时出错 - 找不到 -lhdf5_hl
Error building caffe - cannot find -lhdf5_hl
我正在按照本指南安装 caffe。我正在使用 ubuntu 16.04 并仅为 cpu 安装 caffe(我没有 Nvidia gpu)。
https://chunml.github.io/ChunML.github.io/project/Installing-Caffe-CPU-Only/
但是遇到以下错误:
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: cannot find -lhdf5_hl
collect2: error: ld returned 1 exit status
Makefile:572: recipe for target '.build_release/lib/libcaffe.so.1.0.0'
failed
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1
有人可以帮我弄清楚如何解决这个问题吗?谢谢
/usr/bin/ld: cannot find -lhdf5_hl
-lhdf5_hl
表示 libhdf5_hl.so
sudo apt install apt-file
sudo apt-file update
apt-file search libhdf5_hl.so
libhdf5-dev: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.so
libhdf5-mpich-dev: /usr/lib/x86_64-linux-gnu/hdf5/mpich/libhdf5_hl.so
libhdf5-openmpi-dev: /usr/lib/x86_64-linux-gnu/hdf5/openmp/libhdf5_hl.so
或者使用在线Debian搜索https://packages.debian.org/search?suite=buster§ion=all&arch=any&searchon=contents&keywords=libhdf5_hl.so
这帮我解决了
sudo ln -sf libhdf5_serial.so libhdf5.so
sudo ln -sf libhdf5_serial_hl.so libhdf5_hl.so
如何对 linux 中的文件进行符号链接 -
我正在按照本指南安装 caffe。我正在使用 ubuntu 16.04 并仅为 cpu 安装 caffe(我没有 Nvidia gpu)。
https://chunml.github.io/ChunML.github.io/project/Installing-Caffe-CPU-Only/
但是遇到以下错误:
LD -o .build_release/lib/libcaffe.so.1.0.0
/usr/bin/ld: cannot find -lhdf5_hl
collect2: error: ld returned 1 exit status
Makefile:572: recipe for target '.build_release/lib/libcaffe.so.1.0.0'
failed
make: *** [.build_release/lib/libcaffe.so.1.0.0] Error 1
有人可以帮我弄清楚如何解决这个问题吗?谢谢
/usr/bin/ld: cannot find -lhdf5_hl
-lhdf5_hl
表示 libhdf5_hl.so
sudo apt install apt-file
sudo apt-file update
apt-file search libhdf5_hl.so
libhdf5-dev: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.so
libhdf5-mpich-dev: /usr/lib/x86_64-linux-gnu/hdf5/mpich/libhdf5_hl.so
libhdf5-openmpi-dev: /usr/lib/x86_64-linux-gnu/hdf5/openmp/libhdf5_hl.so
或者使用在线Debian搜索https://packages.debian.org/search?suite=buster§ion=all&arch=any&searchon=contents&keywords=libhdf5_hl.so
这帮我解决了
sudo ln -sf libhdf5_serial.so libhdf5.so
sudo ln -sf libhdf5_serial_hl.so libhdf5_hl.so
如何对 linux 中的文件进行符号链接 -