Make sure you have the following packages: # apt-get install lua50 liblua50 liblualib50 liblua50-dev liblualib50-dev libssl0.9.7 libssl-dev Build and install like this: $ make INCDIRS=-I/usr/include/lua50 LIBS="-lm -ldl -llua50 -llualib50 -lssl -lcrypto" $ make install