我正在为 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/