Open mainka opened 7 years ago
Confirming, tried to run experiments today after reinstalling torch. Same issue.
"luarocks install torch" followed by "luarocks install nn" works for me.
I followed the procedure described in http://torch.ch/docs/getting-started.html
# in a terminal, run the commands WITHOUT sudo
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
I confirm that doing luarocks install torch && luarocks install nn
afterwards, everything works. Maybe it should be documented somewhere?
I get the same error. Linux Mint 18 which is based on Ubuntu 16.04 LTS. But the error is against code that luarocks downloaded o_O.
@mainka Are you saying that after doing that first step of cloning from git, building and installing, and THEN doing a luarocks install of torch was the key? If so, that seems to imply that version of torch from git is not compatible with the version of nn from luarocks.
This worked for me too. I guess the nn project has some work to do getting it compatible with the HEAD of torch.
working on this.
luarocks install torch && luarocks install nn
it works for me
May be luarocks install torch && luarocks install nn work. I am also getting error in luarocks install nn but error code is different Installing https://luarocks.org/nn-1.0.4-1.src.rock gcc -O2 -fPIC -I/usr/include/lua5.2 -c lnn.c -o lnn.o lnn.c:4:23: fatal error: nanomsg/nn.h: No such file or directory
^
compilation terminated.
Error: Build error: Failed compiling object lnn.o
shamin@shamin-System-Product-Name:~$ luarocks install torch
Error: Your user does not have write permissions in /usr/local/lib/luarocks/rocks -- you may want to run as a privileged user or use your local tree with --local. shamin@shamin-System-Product-Name:~$ Whats wrong here?
I want to install nn to use as dependence of lua and torch code.
since pytorch coming, we don't need torch anymore, bye!
Hi,
A fresh torch install on Ubuntu 16.
luarocks install nn
fails. Logs attached.