MySQL Proxy on RHEL5

Just a little timesaver; When attempting to install mysql proxy on RHEL5, you will most likely soon be staring at this message:

1
2
3
4
5
6
7
8
9
10
11
...
checking for LUA... checking for LUA... configure: error: Package requirements (lua5.1 >= 5.1) were not met:

No package 'lua5.1' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LUA_CFLAGS
and LUA_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

First thing you do is: yum install lua-devel, but sadly, RHEL5 ships with LUA 5.0, and the latest release of mysql proxy requires LUA 5.1. Luckily there are RPMs around which works perfectly fine unless you absolutely want to compile from source. RPMs can be found here.

Once LUA is installed, you’ll also need libevent which is a straight forward compile.

Apr 10th, 2008