I am running Ubuntu Server 15.04 on VM , I used these commands to install lua and luarocks
sudo apt-get install unzip
sudo apt-get install gcc
wget http://www.lua.org/ftp/lua-5.3.1.tar.gz
tar zxf lua-5.3.1.tar.gz
cd lua-5.3.1
sudo make solaris test
sudo make solaris install
reboot
wget http://luarocks.org/releases/luarocks-2.2.1.tar.gz
tar zxpf luarocks-2.2.1.tar.gz
cd luarocks-2.2.1
./configure; sudo make bootstrap
sudo luarocks install luasocket
I am running Ubuntu Server 15.04 on VM , I used these commands to install lua and luarocks
sudo apt-get install unzip sudo apt-get install gcc wget http://www.lua.org/ftp/lua-5.3.1.tar.gz tar zxf lua-5.3.1.tar.gz cd lua-5.3.1 sudo make solaris test sudo make solaris install reboot wget http://luarocks.org/releases/luarocks-2.2.1.tar.gz tar zxpf luarocks-2.2.1.tar.gz cd luarocks-2.2.1 ./configure; sudo make bootstrap sudo luarocks install luasocket
lua -lsocket -- It errors.