Skip to content

Instantly share code, notes, and snippets.

@donglixp
Last active January 30, 2017 09:33
Show Gist options
  • Save donglixp/e3c0d656aea05a3136a552f720254c9b to your computer and use it in GitHub Desktop.
Save donglixp/e3c0d656aea05a3136a552f720254c9b to your computer and use it in GitHub Desktop.
luarocks install penlight
luarocks install dpnn
luarocks install json
luarocks install xlua
luarocks install tds
luarocks install threads
luarocks install httpclient
luarocks install sys
luarocks install luafilesystem
luarocks install lua-cjson
luarocks install yaml
luarocks install paths
luarocks install https://raw.github.com/jucor/torch-distributions/master/distributions-0-0.rockspec
git clone https://github.com/facebook/fblualib.git
cd fblualib/fblualib/python
luarocks make rockspec/*
https://github.com/deepmind/torch-hdf5/blob/master/doc/usage.md
modify ~\torch\install\share\lua\5.1\hdf5\config.lua (if necessary):
hdf5._config = {
HDF5_INCLUDE_PATH = "/usr/include",
HDF5_LIBRARIES = "debug;/usr/lib64/libhdf5.so;debug;/afs/inf.ed.ac.uk/user/s14/s1478528/usr/lib/libz.so;debug;/usr/lib64/libm.so;optimized;/usr/lib64/libhdf5.so;optimized;/afs/inf.ed.ac.uk/user/s14/s1478528/usr/lib/libz.so;optimized;/usr/lib64/libm.so"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment