karpathy / char-rnn

Multi-layer Recurrent Neural Networks (LSTM, GRU, RNN) for character-level language models in Torch
11.58k stars 2.58k forks source link

Luarocks nn install fail #195

Closed LinuxFTW closed 4 years ago

LinuxFTW commented 7 years ago

So, I was trying to install nn because it was required code. Then, it ended with a build error. Error Code below Error Code: /home/jman/torch/install/include/TH/generic/THTensorMath.h:77:13: note: in expansion of macro ‘THTensor_’ THAPI void THTensor(sum)(THTensor r_, THTensor t, int dimension); ^ lib/THNN/CMakeFiles/THNN.dir/build.make:62: recipe for target 'lib/THNN/CMakeFiles/THNN.dir/init.c.o' failed make[2]: [lib/THNN/CMakeFiles/THNN.dir/init.c.o] Error 1 CMakeFiles/Makefile2:103: recipe for target 'lib/THNN/CMakeFiles/THNN.dir/all' failed make[1]: [lib/THNN/CMakeFiles/THNN.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2

Error: Build error: Failed building. `

woolgathering commented 7 years ago

You're probably working with an old version of Torch. Running luarocks install torch worked for me.