Open QuestionPython opened 7 years ago
This is not how you install Torch, please use install.sh
script or follow official instructions here.
I think if you want to build the basic 'core' for torch, you will need to refer to the install.sh: https://github.com/torch/distro/blob/master/install.sh#L110 It seems there are around 15 'core' packages needed to build it.
There is a way to do it without a big install process (would be nice if there was a little install sh for this repo). Following these steps for luajit based setup:
package.path = package.path..";./?/init.lua"
luajit random.lua random.c
luajit TensorMath.lua TensorMath.c
This successfully builds libtorch.so, libTH.so, libluaT.so . But remember you will need the other packages to do things with it :) I found this useful to be able to bind torch into other projects.