这个错误提示是在编译安装某个软件时出现的,缺少了 HDF5 的编译辅助脚本。解决方法是安装 HDF5 并指定路径:

  1. 下载 HDF5 并解压:
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-1.12.1/src/hdf5-1.12.1.tar.gz
tar -zxvf hdf5-1.12.1.tar.gz
  1. 进入 HDF5 目录,配置、编译、安装:
cd hdf5-1.12.1
./configure --prefix=/usr/local/hdf5
make
sudo make install
  1. 在编译目标软件时指定 HDF5 路径:
./configure --with-hdf5=/usr/local/hdf5
make
sudo make install

注意:如果出现其他错误,可以根据提示进行修复或搜索解决方案。

Unable to locate HDF5 compilation helper scripts 'h5cc' or 'h5pcc'.
Please specify --with-hdf5=<LOCATION> as the full path to h5cc or h5pcc.
HDF5 support is being disabled (equivalent to --with-hdf5=no).
怎么办

原文地址: https://www.cveoy.top/t/topic/ACD 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录