首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为lua/torch安装hdf5、mattorch/matio

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

Stack Overflow用户
提问于 2016-04-07 07:37:17
回答 1查看 2.4K关注 0票数 2

我正在为torch.I配置软件包,我不能使用luarocks安装这些软件包。

对于matio,我按照github上的说明进行了安装。但我不能要求它。有关hdf5,请参见以下内容。

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

代码语言:javascript
复制
$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.
EN

回答 1

Stack Overflow用户

发布于 2016-08-04 22:12:14

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

代码语言:javascript
复制
sudo apt-get install libhdf5-serial-dev hdf5-tools

然后,您可以使用luarock来安装hdf5

代码语言:javascript
复制
luarocks install hdf5

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

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36464163

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档