Friday 30 January 2009

Compiling lighty with lua for mod_magnet

Compiling mod_magnet for lighttpd requires the lua libraries to be available.
This is pretty easy if you have a package manager installed (yum install lua-devel), but I didnt

Solution:

Grab the latest lua libraries from
http://luabinaries.luaforge.net/download.html

Extract and move the libraries to /usr/local/include and the include files to /usr/local/include

The you need to set some environment variables so lighty knows where they are
export LUA_CFLAGS="-I/usr/local/include -L/usr/local/lib"
export LUA_LIBS="/usr/local/lib"

After that, lighty should compile fine. Be sure to pass --with-lua
./configure --prefix=/usr/local --with-lua

Welcome

This blog is really just a scratchpad for keeping a record of various webdev tasks Ive struggled with in the past

Its not really meant for public reading, although if you happen to land here and you're having a similar problem to one Ive had, drop me a line and I'll see if I can help.