lua - 为 lua/torch 安装 hdf5、mattorch/matio

标签 lua torch

我正在为 torch 配置软件包。我无法使用 luarocks 安装这些软件包。

对于matio,我按照github上的说明进行操作,matio已安装。但我不能要求它。 对于 hdf5,请参阅以下内容。

有谁知道问题出在哪里吗?我是 Lua 新手。非常感谢!

$luarocks install hdf5
then I got the error information:
CMake Error at /usr/local/Cellar/cmake/3.5.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find HDF5: Found unsuitable version "", but required is at least
  "1.8" (found HDF5_hdf5_LIBRARY-NOTFOUND)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.5.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:386 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.5.1/share/cmake/Modules/FindHDF5.cmake:398 (find_package_handle_standard_args)
  CMakeLists.txt:4 (FIND_PACKAGE)


-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_hdf5-20-0-5408/torch-hdf5/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.

Error: Build error: Failed building.

最佳答案

我在 ubuntu >= 13.04 上遇到了同样的问题,这个命令解决了我的问题:

sudo apt-get install libhdf5-serial-dev hdf5-tools

然后就可以使用luarocks安装hdf5了

luarocks install hdf5

其他系统可以引用this link对于依赖项。

关于lua - 为 lua/torch 安装 hdf5、mattorch/matio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36464163/

相关文章:

python - 如何保存 torchtext 数据集?

anaconda - 通过 Conda 安装 PyTorch

python - 在torch.distributed中,如何正确平均不同GPU上的梯度?

torch - Torch 中的 setNumInputDims 应该做什么?

lua - 数据源与 torch/dp 库的正确用法是什么

c++ - 如何在 C++ 中创建 Lua 表,并将其传递给 Lua 函数?

redis - 在redis集群模式下,我们加载脚本时返回的SHA值是否相同?

c++ - 如何确定 lightuserdata 的类型?

lua - Lua中模式匹配的几个模式匹配问题

将C函数转换为Lua函数