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.
Cheers for that – appreciated.
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 …
Yes, this is true. Should’ve mentioned that! Thanks for the comment!
Latest MySQL proxy requires lua 5.1 regardless of –without-lua argument:
checking if with lua… configure: error: MySQL Proxy can’t be built using –without-lua, lua 5.1 is required
Just fyi :)
i have installed all the rpm’s but still getting these erros
checking for LUA… no
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.