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:
...
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.
Posted in MySQL
May 15th, 2008 at 10:19 am
Cheers for that - appreciated.
May 16th, 2008 at 12:56 pm
FYI If you’re just looking at mysql-proxy for load balancing / failover purposes, and don’t need lua scripting, you can ./configure –without-lua …
May 16th, 2008 at 10:44 pm
Yes, this is true. Should’ve mentioned that! Thanks for the comment!