Installing Luarocks in CentOS

There seems to be something wrong with CentOS' lua package (version 5.1.4). After installing lua via yum, compiling luarocks in /usr/local/src/ and running the luarocks command, you will end up with the following error:

"Your version of Lua does not support io.popen,
which is required by LuaRocks. Please check your Lua installation."

The issue seems to persist even in CentOS 6. So we suggest building lua and luarocks directly from the source after some OS library dependencies are met:

# yum install gcc gcc-c++ kernel-devel
# yum install readline-dev
# yum install ncurses-devel.i386

Proceed to download and compile lua:

# wget http://www.lua.org/ftp/lua-5.1.4.tar.gz
# tar zxvf lua-5.1.4.tar.gz
# cd lua-5.1.4
# make linux

Download and install luarocks:

# wget http://luarocks.org/releases/luarocks-2.0.6.tar.gz
# tar zxvf luarocks-2.0.6.tar.gz 
# cd luarocks-2.0.6
# ./configure
# make
# make install

This should help you have luarocks properly installed and ready to fetch lua modules from the repo. Have fun!

Posted by Administrator on Fri, 4 Nov 2011

Installing Luarocks in CentOS

Posted on Fri, 4 Nov 2011

There seems to be something wrong with CentOS' lua package (version 5.1.4). After installing lua via yum, compiling luarocks in /usr/local/src/ and running the luarocks command, you will end up with the following error:

Continue Reading…

SSH Keep-Alive

Posted on Wed, 2 Nov 2011

Some firewall / router configurations doesn't treat SSH (TCP 22) as a high priority service. Some also keep the service low in the IP connection tracking table. This, among other possible reasons, break our SSH connections making the administrative work to be very annoying. Here is a tip for configuring SSH Keep-alives properly in OpenSSH.

Continue Reading…

E.164, ENUM & NATPR

Posted on Mon, 27 Dec 2010

First of all, the acronym ENUM stands for E.164 NUmber Mapping. ENUM is an specification on how to use the DNS system to map telephone numbers (in E.164 format) to an URI, email address or internet protocol address. E.164 is the number format for national and international telephone numbers, normal telephone numbers. The E.164 notation is documented in the ITU E.123 standard.

Continue Reading…