Installing additional LUA modules into Redis

No worries, all I required was a nights sleep to have a fresh mind.

I downloaded http://files.luaforge.net/releases/luacurl/luacurl and move the luacurl.c into the /deps/lua/src/ folder and edited line 23 from

#include <lauxlib.h>

to

#include "lauxlib.h"

and then in /deps/lua/src/Makefile (Lua's makefile, not Redis's) go to line 30 and find

lua_cjson.o

add "luacurl.o" spaced next to it like so

lua_cjson.o luacurl.o

and then in /src/Makefile (Redis's makefile, not Lua's) change line 54 from

FINAL_LIBS=-lm

to

FINAL_LIBS=-lm -lcurl

Finally, make sure you have installed "yum install curl-devel" and then compile it.

Keep in mind that no other client can execute commands whilst the server is busy with Lua scripts.

Tags:

Lua

Redis