2016-04-06 13 views
2

私はtorch用のパッケージを設定しています。luarocksを使ってこれらのパッケージをインストールすることはできません。lua/torch用hdf5、mattorch/matioをインストール

私はgithubの指示に従って、matioがインストールされています。しかし、私はそれを要求することはできません。 hdf5の場合は 、以下を参照してください。

問題は何ですか?私はルアが初めてです。どうもありがとう!

$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. 

答えて

2

私は> = Ubuntuで13.04を同じ問題に遭遇し、このコマンドは私の問題を解決:

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

次に、あなたが他のシステムの場合

luarocks install hdf5 

をHDF5インストールするluarocksを使用することができ、依存関係についてはthis linkを参照できます。

+0

これは私のために働いた、ありがとう!私はこれが受け入れられた答えであるべきだと信じています。 – Brannon

+0

もubuntu 17.10で動作しました。 – Mobeen

関連する問題